Skip to content

RUMM-2568: Remove DataReader v1 usages#1071

Merged
0xnm merged 1 commit into
feature/sdkv2from
nogorodnikov/rumm-2568/remove-datareader-v1-usages
Oct 6, 2022
Merged

RUMM-2568: Remove DataReader v1 usages#1071
0xnm merged 1 commit into
feature/sdkv2from
nogorodnikov/rumm-2568/remove-datareader-v1-usages

Conversation

@0xnm

@0xnm 0xnm commented Oct 5, 2022

Copy link
Copy Markdown
Member

What does this PR do?

Remove the remaining usages of DataReader used in v1, because we are now using Storage for reading raw data and de-serialization is not needed anyway.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@0xnm
0xnm requested a review from a team as a code owner October 5, 2022 12:24
@codecov-commenter

codecov-commenter commented Oct 5, 2022

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.20%. Comparing base (86e2a3f) to head (4051a19).

Files with missing lines Patch % Lines
...id/v2/core/internal/storage/ConsentAwareStorage.kt 92.31% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##           feature/sdkv2    #1071      +/-   ##
=================================================
+ Coverage          83.16%   83.20%   +0.04%     
=================================================
  Files                306      306              
  Lines              10176    10173       -3     
  Branches            1649     1649              
=================================================
+ Hits                8462     8464       +2     
+ Misses              1213     1209       -4     
+ Partials             501      500       -1     
Files with missing lines Coverage Δ
...in/com/datadog/android/core/internal/SdkFeature.kt 91.23% <100.00%> (ø)
...istence/file/batch/BatchFilePersistenceStrategy.kt 100.00% <ø> (ø)
...ror/internal/CrashReportFilePersistenceStrategy.kt 100.00% <ø> (ø)
.../log/internal/domain/LogFilePersistenceStrategy.kt 100.00% <ø> (ø)
.../rum/internal/domain/RumFilePersistenceStrategy.kt 100.00% <ø> (ø)
...g/internal/domain/TracesFilePersistenceStrategy.kt 100.00% <ø> (ø)
...atadog/android/v2/core/internal/storage/Storage.kt 0.00% <ø> (ø)
.../internal/log/WebViewLogFilePersistenceStrategy.kt 100.00% <ø> (ø)
.../internal/rum/WebViewRumFilePersistenceStrategy.kt 64.29% <ø> (-1.23%) ⬇️
...id/v2/core/internal/storage/ConsentAwareStorage.kt 97.09% <92.31%> (+0.31%) ⬆️

... and 7 files with indirect coverage changes

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

@xgouchet xgouchet added the size-small This PR is small sized label Oct 5, 2022
}

@Test
fun `𝕄 delete everything 𝕎 dropAll() { there is locked batch }`(

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.

I am not seeing where you assert the removed locked batches...am I missing something ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

that is true, there is no assertion of this internal state. We just rely that file was removed.

To assert this we need to make lockedBatches field internal and Batch class as well.

@xgouchet xgouchet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Base automatically changed from nogorodnikov/rumm-2563/create-storage-and-uploader-outside-of-the-feature to feature/sdkv2 October 6, 2022 12:53
@0xnm
0xnm merged commit 32c268d into feature/sdkv2 Oct 6, 2022
@0xnm
0xnm deleted the nogorodnikov/rumm-2568/remove-datareader-v1-usages branch October 6, 2022 12:53
@xgouchet xgouchet added this to the 1.16.0 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-small This PR is small sized

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants