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

DataSourceModule providers #712

Merged
merged 7 commits into from
Apr 15, 2024
Merged

Conversation

nelsitoPuglisi
Copy link
Contributor

@nelsitoPuglisi nelsitoPuglisi commented Apr 12, 2024

Goal

Using DataSourceModule to provide data sources to services.

Testing

Unit and Integration

Copy link
Contributor Author

nelsitoPuglisi commented Apr 12, 2024

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

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

Copy link

codecov bot commented Apr 12, 2024

Codecov Report

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

Project coverage is 80.31%. Comparing base (5c0e82c) to head (621086a).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #712      +/-   ##
==========================================
- Coverage   80.40%   80.31%   -0.10%     
==========================================
  Files         426      426              
  Lines       11274    11270       -4     
  Branches     1703     1708       +5     
==========================================
- Hits         9065     9051      -14     
- Misses       1487     1492       +5     
- Partials      722      727       +5     
Files Coverage Δ
...d/embracesdk/injection/DataCaptureServiceModule.kt 100.00% <100.00%> (ø)
...e/android/embracesdk/injection/DataSourceModule.kt 100.00% <100.00%> (ø)
...oid/embracesdk/injection/ModuleInitBootstrapper.kt 95.43% <100.00%> (+0.01%) ⬆️
...racesdk/capture/crumbs/EmbraceBreadcrumbService.kt 85.71% <28.57%> (-10.59%) ⬇️

... and 4 files with indirect coverage changes

@nelsitoPuglisi nelsitoPuglisi changed the title DataSourceModule injected DataSourceModule providers Apr 13, 2024
@nelsitoPuglisi nelsitoPuglisi marked this pull request as ready for review April 13, 2024 18:51
@nelsitoPuglisi nelsitoPuglisi requested a review from a team as a code owner April 13, 2024 18:51
This was referenced Apr 13, 2024
@@ -108,7 +110,8 @@ internal class IntegrationTestRule(
workerThreadModuleSupplier = { _ -> workerThreadModule },
storageModuleSupplier = { _, _, _ -> storageModule },
essentialServiceModuleSupplier = { _, _, _, _, _, _, _, _, _ -> essentialServiceModule },
dataCaptureServiceModuleSupplier = { _, _, _, _, _, _, _ -> dataCaptureServiceModule },
dataSourceModuleSupplier = { _, _, _, _, _, _ -> dataSourceModule },
Copy link
Collaborator

Choose a reason for hiding this comment

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

I tweaked how this works in #716 but I'll rebase off this to make sure your tests still pass

sessionSpanWriter: SessionSpanWriter,
spanService: SpanService,
private val logger: InternalEmbraceLogger
private val dataSourceModuleProvider: Provider<DataSourceModule?>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

As discussed, because you reordered the module init, you shouldn't need a provider here. But lets merge it and we can fix it later.

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

@nelsitoPuglisi nelsitoPuglisi merged commit 27f8563 into master Apr 15, 2024
6 checks passed
@nelsitoPuglisi nelsitoPuglisi deleted the nelson/inject-data-sources branch April 15, 2024 13:02
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

2 participants