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-2568: Remove DataReader v1 usages #1071

Merged

Conversation

0xnm
Copy link
Contributor

@0xnm 0xnm commented Oct 5, 2022

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
Copy link

codecov-commenter commented Oct 5, 2022

Codecov Report

Merging #1071 (4051a19) into nogorodnikov/rumm-2563/create-storage-and-uploader-outside-of-the-feature (86e2a3f) will increase coverage by 0.04%.
The diff coverage is 92.86%.

@@                                              Coverage Diff                                              @@
##           nogorodnikov/rumm-2563/create-storage-and-uploader-outside-of-the-feature    #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     
Impacted Files Coverage Δ
...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%) ⬆️
...in/com/datadog/android/core/internal/SdkFeature.kt 91.23% <100.00%> (ø)
... and 7 more

@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
Collaborator

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
Contributor 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.

Copy link
Collaborator

@xgouchet xgouchet left a comment

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.

None yet

4 participants