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

fix: delete assets locally when message is deleted [WPB-9466] #2925

Merged

Conversation

saleniuk
Copy link
Contributor

@saleniuk saleniuk commented Aug 1, 2024

BugWPB-9466 [Android] locally downloaded assets are not deleted when a message is deleted


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

When deleting an assets message the local file inside the app is not deleted.

Solutions

Implement removing asset from assets table and asset file downloaded and stored locally when the message containing this asset is removed. For sent self-deleting message, assets are removed when the message is marked as deleted and content is cleared.

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

How to Test

Remove some messages with assets and check if assets are still in app files directory and/or these assets are still in assets table.


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@echoes-hq echoes-hq bot added the echoes: unplanned Any work item that isn’t part of the product or technical roadmap. label Aug 1, 2024
Copy link
Contributor

github-actions bot commented Aug 1, 2024

Test Results

2 971 tests   2 954 ✔️  1h 2m 53s ⏱️
       5 suites       17 💤
       5 files           0

Results for commit 760b162.

♻️ This comment has been updated with latest results.

@saleniuk saleniuk requested review from a team, yamilmedina, alexandreferris, MohamadJaara, mchenani and Garzas and removed request for a team August 1, 2024 12:53
@datadog-wireapp
Copy link

datadog-wireapp bot commented Aug 1, 2024

Datadog Report

Branch report: fix/delete-assets-locally-when-message-is-deleted
Commit report: c711043
Test service: kalium-jvm

✅ 0 Failed, 3034 Passed, 105 Skipped, 10.13s Total Time

Copy link

sonarqubecloud bot commented Aug 1, 2024

@saleniuk saleniuk added this pull request to the merge queue Aug 2, 2024
Merged via the queue into release/candidate with commit ee2e0bc Aug 2, 2024
22 checks passed
@saleniuk saleniuk deleted the fix/delete-assets-locally-when-message-is-deleted branch August 2, 2024 08:42
github-actions bot pushed a commit that referenced this pull request Aug 2, 2024
* fix: delete assets locally when message is deleted [WPB-9466]

* detekt

* do not return failure when removing asset
github-merge-queue bot pushed a commit that referenced this pull request Aug 2, 2024
* fix: delete assets locally when message is deleted [WPB-9466] (#2925)

* fix: delete assets locally when message is deleted [WPB-9466]

* detekt

* do not return failure when removing asset

* trigger build

---------

Co-authored-by: Michał Saleniuk <[email protected]>
Co-authored-by: Michał Saleniuk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: unplanned Any work item that isn’t part of the product or technical roadmap. 🚨 Potential breaking changes 👕 size: M type: bug / fix 🐞
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants