fix(drive): store files in Conversation-scoped directories instead of a flat directory (WPB-27627) - #5139
Conversation
…d-storage-and-stale-file-detection-for-Cells-downloads # Conflicts: # kalium
|
@ohassine looks like you are rolling back kalium to a previous commitish. This means that the PR's target branch (develop) is using a newer version of Kalium, and the changes in this PR will rollback Kalium to an older version.
Is this intentional? |
Codecov Report❌ Patch coverage is ❌ Your patch check has failed because the patch coverage (77.77%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #5139 +/- ##
===========================================
+ Coverage 52.26% 52.49% +0.23%
===========================================
Files 745 744 -1
Lines 25897 25884 -13
Branches 4235 4235
===========================================
+ Hits 13534 13588 +54
+ Misses 11066 10985 -81
- Partials 1297 1311 +14
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Test Results2 653 tests +14 2 653 ✅ +14 1m 46s ⏱️ +16s Results for commit 7309418. ± Comparison against base commit e73dcbe. This pull request removes 5 and adds 19 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
MohamadJaara
left a comment
There was a problem hiding this comment.
The Android changes are not part of this ticket.
The ticket is about downloading to a .part file and renaming it only when the download is complete.
This PR changes where files are stored and removes numbered filenames. That is a different problem and should be handled in another ticket or PR.
It may also overwrite files with the same name in one conversation.
This is part of the fix to avoid filename collisions. Files can't have the same name within a conversation, so storing them under the conversationId allows us to use the original filename without needing numbered filenames |
…e-detection-for-Cells-downloads
|
APKs built during tests are available here. Scroll down to Artifacts! |
…e-detection-for-Cells-downloads
|
APKs built during tests are available here. Scroll down to Artifacts! |
|
If I have two folders in one conversation: Playtest_June/findings.txt Will these files collide? As far as I understand now both files will be stored as conversationId/findings.txt |
…d-storage-and-stale-file-detection-for-Cells-downloads # Conflicts: # kalium
…d-storage-and-stale-file-detection-for-Cells-downloads # Conflicts: # kalium
No, we create the subfolder for each file |
|
APKs built during tests are available here. Scroll down to Artifacts! |
…e-detection-for-Cells-downloads
|
APKs built during tests are available here. Scroll down to Artifacts! |
…d-storage-and-stale-file-detection-for-Cells-downloads # Conflicts: # kalium
|
APKs built during tests are available here. Scroll down to Artifacts! |
https://wearezeta.atlassian.net/browse/WPB-27627
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764The PR Description
What's new in this PR?
Issues
All downloaded Cells files were stored flat in a single directory. Files from different conversations with the same name would collide.
Solutions
Needs releases with:
Testing
Test Coverage (Optional)
How to Test
Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.
Notes (Optional)
Specify here any other facts that you think are important for this issue.
Attachments (Optional)
Attachments like images, videos, etc. (drag and drop in the text box)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.