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 Please upload reports for the commit 70e6517 to get more accurate results. ❌ 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.45% 52.79% +0.33%
===========================================
Files 743 739 -4
Lines 25795 25732 -63
Branches 4226 4224 -2
===========================================
+ Hits 13530 13584 +54
+ Misses 10970 10839 -131
- Partials 1295 1309 +14
... and 9 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Test Results2 648 tests 2 648 ✅ 1m 32s ⏱️ Results for commit ed51e62. ♻️ 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
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.