Skip to content

(4/4) RUM-2129 Use AbstractStorage when custom persistence strategy provided#1748

Merged
xgouchet merged 2 commits into
developfrom
xgouchet/RUM-2129/4_custom_persistence_mgt
Dec 4, 2023
Merged

(4/4) RUM-2129 Use AbstractStorage when custom persistence strategy provided#1748
xgouchet merged 2 commits into
developfrom
xgouchet/RUM-2129/4_custom_persistence_mgt

Conversation

@xgouchet

@xgouchet xgouchet commented Nov 27, 2023

Copy link
Copy Markdown
Contributor

This PR has been created automatically by splitting a large branch

Pull request 4 out of 4

The overall goal is to create a feature allowing customers to store unsent data any way they want (instead of using the official disk batch files)

This final PR updates the SDK Feature initialisation by choosing the default storage or the new AbstractStorage one depending on the provided PersistenceStrategy.Factory

@xgouchet
xgouchet requested review from a team as code owners November 27, 2023 09:01
persistenceStrategyFactory: PersistenceStrategy.Factory
): Storage {
return AbstractStorage(
coreFeature.variant,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

it seems it should be sdkCoreId here rather than coreFeature.variant?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch indeed

@codecov-commenter

codecov-commenter commented Nov 28, 2023

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.42%. Comparing base (f22729c) to head (05055cf).
⚠️ Report is 3819 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1748      +/-   ##
===========================================
+ Coverage    83.23%   83.42%   +0.19%     
===========================================
  Files          467      467              
  Lines        16242    16258      +16     
  Branches      2418     2419       +1     
===========================================
+ Hits         13518    13562      +44     
+ Misses        2056     2035      -21     
+ Partials       668      661       -7     
Files with missing lines Coverage Δ
...ain/kotlin/com/datadog/android/core/DatadogCore.kt 83.70% <100.00%> (ø)
...in/com/datadog/android/core/internal/SdkFeature.kt 89.40% <100.00%> (+1.26%) ⬆️
...droid/core/internal/persistence/AbstractStorage.kt 100.00% <100.00%> (ø)

... and 21 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Base automatically changed from xgouchet/RUM-2129/3_custom_persistence_mgt to develop November 29, 2023 11:21
@xgouchet
xgouchet force-pushed the xgouchet/RUM-2129/4_custom_persistence_mgt branch from 9094892 to 05055cf Compare December 4, 2023 10:58
@xgouchet
xgouchet requested a review from 0xnm December 4, 2023 13:54
@xgouchet
xgouchet merged commit daee79d into develop Dec 4, 2023
@xgouchet
xgouchet deleted the xgouchet/RUM-2129/4_custom_persistence_mgt branch December 4, 2023 16:42
@xgouchet xgouchet added this to the 2.4.0 milestone Dec 13, 2023
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.

4 participants