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

NetworkStatusDataSource #775

Merged
merged 7 commits into from
Apr 19, 2024
Merged

Conversation

nelsitoPuglisi
Copy link
Contributor

@nelsitoPuglisi nelsitoPuglisi commented Apr 18, 2024

Goal

The goal is to capture network connectivity changes as network status spans, instead of network status breadcrumb

Testing

Unit, integration and manual

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @nelsitoPuglisi and the rest of your teammates on Graphite Graphite

@nelsitoPuglisi nelsitoPuglisi force-pushed the nelson/network-status-data-source branch from 1231352 to 1f07821 Compare April 19, 2024 15:25
@nelsitoPuglisi nelsitoPuglisi marked this pull request as ready for review April 19, 2024 15:39
@nelsitoPuglisi nelsitoPuglisi requested a review from a team as a code owner April 19, 2024 15:39
@@ -96,85 +95,6 @@ internal class EmbraceNetworkConnectivityServiceTest {
verify { context.unregisterReceiver(service) }
}

@Test
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we have equivalent tests for the data source or are these functionality implemented by the infra the data source builds on?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So, the new data source doesn't care about the actual network status or connection type. I can write a new set of unit tests to verify that each type is returned properly by EmbraceNetworkConnectivityService but I don't see much value there TBH.

Copy link
Collaborator

@bidetofevil bidetofevil left a comment

Choose a reason for hiding this comment

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

LGTM. One question about the unit tests - and if there's anything @fractalwrench wants to explicitly look at, feel free to wait for him. But looks good to me

Copy link
Contributor

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

codecov bot commented Apr 19, 2024

Codecov Report

Attention: Patch coverage is 90.19608% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 81.40%. Comparing base (fe20265) to head (acc6a60).
Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #775      +/-   ##
==========================================
- Coverage   81.42%   81.40%   -0.02%     
==========================================
  Files         431      432       +1     
  Lines       11357    11375      +18     
  Branches     1693     1691       -2     
==========================================
+ Hits         9247     9260      +13     
- Misses       1390     1395       +5     
  Partials      720      720              
Files Coverage Δ
.../embrace/android/embracesdk/arch/schema/EmbType.kt 87.50% <100.00%> (+0.32%) ⬆️
...brace/android/embracesdk/arch/schema/SchemaType.kt 76.10% <100.00%> (+1.10%) ⬆️
...mbracesdk/capture/EmbracePerformanceInfoService.kt 92.85% <100.00%> (+5.35%) ⬆️
...ure/connectivity/NoOpNetworkConnectivityService.kt 28.57% <ø> (+3.57%) ⬆️
...roid/embracesdk/gating/PerformanceInfoSanitizer.kt 100.00% <ø> (ø)
...ndroid/embracesdk/injection/DataContainerModule.kt 100.00% <ø> (ø)
...e/android/embracesdk/injection/DataSourceModule.kt 100.00% <100.00%> (ø)
...oid/embracesdk/injection/EssentialServiceModule.kt 94.73% <100.00%> (-0.14%) ⬇️
...oid/embracesdk/injection/ModuleInitBootstrapper.kt 95.41% <100.00%> (+0.01%) ⬆️
...race/android/embracesdk/payload/PerformanceInfo.kt 100.00% <ø> (ø)
... and 4 more

... and 4 files with indirect coverage changes

@nelsitoPuglisi nelsitoPuglisi merged commit c17dc6d into master Apr 19, 2024
6 checks passed
@nelsitoPuglisi nelsitoPuglisi deleted the nelson/network-status-data-source branch April 19, 2024 17:26
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.

None yet

3 participants