Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUMM-2299 Split Device Info and Battery Status #910

Merged
merged 3 commits into from
Jun 29, 2022

Conversation

maxep
Copy link
Member

@maxep maxep commented Jun 28, 2022

What and why?

In preparation of v2 Context, the BatteryStatus monitoring is now extracted from MobileDevice.
The MobileDevice has been renamed to DeviceInfo as it is not representing mobile specific data.

How?

The BatteryStatusProvider now hold the the battery monitoring logic.
The DeviceInfo is part of the core context and is used to build the RUMDevice and RUMOperatingSystem.

TODOs

  • fix/add ref doc

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference
  • Add CHANGELOG entry for user facing changes

Custom CI job configuration (optional)

  • Run unit tests
  • Run integration tests
  • Run smoke tests

@maxep maxep self-assigned this Jun 28, 2022
@maxep maxep force-pushed the maxep/RUMM-2299/datadog-core-context-device branch from e31709e to 619e5f7 Compare June 28, 2022 12:43
@maxep maxep marked this pull request as ready for review June 28, 2022 13:59
@maxep maxep requested a review from a team as a code owner June 28, 2022 13:59
Copy link
Member

@ncreated ncreated left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 🎯👌. Left one feedback on struct instead of class.

Comment on lines 9 to 10
/// Describes current device information.
internal class DeviceInfo {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to do struct, no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, left over from MobileDevice, good catch!

@maxep maxep force-pushed the maxep/RUMM-2299/datadog-core-context-device branch from 4245ceb to 851dacc Compare June 29, 2022 07:59
@maxep maxep force-pushed the maxep/RUMM-2299/datadog-core-context-device branch from 851dacc to d2821db Compare June 29, 2022 08:22
@maxep maxep merged commit f4d9ded into feature/v2 Jun 29, 2022
@maxep maxep deleted the maxep/RUMM-2299/datadog-core-context-device branch March 6, 2023 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants