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: Thumbnails are not deleted on room deletion #34851

Merged
merged 5 commits into from
Dec 31, 2024

Conversation

matheusbsilva137
Copy link
Member

@matheusbsilva137 matheusbsilva137 commented Dec 30, 2024

Proposed changes (including videos or screenshots)

  • Use files (array) field from messages instead of deprecated file field when checking all uploads related to a message that should be deleted with it.

Issue(s)

Steps to test or reproduce

Upload an image in a room, then delete the whole room.
Expected behavior: all uploads related to the uploaded image should be deleted after the room is deleted. Check the rocketchat_uploads collection to make sure both documents related to the image have been deleted (the image itself and the thumbnail).
Current behavior: the image itself is deleted, but RC keeps the thumbnail in the rocketchat_uploads collection and in the selected storage type.

Further comments

SUP-715

@matheusbsilva137 matheusbsilva137 added this to the 7.3.0 milestone Dec 30, 2024
Copy link
Contributor

dionisio-bot bot commented Dec 30, 2024

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is targeting the wrong base branch. It should target 7.3.0, but it targets 7.2.0

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

Copy link

changeset-bot bot commented Dec 30, 2024

🦋 Changeset detected

Latest commit: 9a8146a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 35 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/api-client Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/ddp-client Patch
@rocket.chat/freeswitch Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/gazzodown Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/models Patch
@rocket.chat/network-broker Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/ui-voip Patch
@rocket.chat/web-ui-registration Patch
@rocket.chat/instance-status Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codecov bot commented Dec 30, 2024

Codecov Report

Attention: Patch coverage is 96.29630% with 2 lines in your changes missing coverage. Please review.

Project coverage is 59.16%. Comparing base (1b17bb1) to head (9a8146a).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #34851      +/-   ##
===========================================
- Coverage    59.35%   59.16%   -0.20%     
===========================================
  Files         2819     2821       +2     
  Lines        67650    68045     +395     
  Branches     15022    15116      +94     
===========================================
+ Hits         40157    40261     +104     
- Misses       24678    24959     +281     
- Partials      2815     2825      +10     
Flag Coverage Δ
unit 74.99% <96.29%> (-0.86%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Contributor

PR Preview Action v1.4.8
🚀 Deployed preview to https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-34851/
on branch gh-pages at 2024-12-30 20:39 UTC

@matheusbsilva137 matheusbsilva137 marked this pull request as ready for review December 30, 2024 21:13
@jessicaschelly jessicaschelly added the stat: QA assured Means it has been tested and approved by a company insider label Dec 31, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Dec 31, 2024
@kodiakhq kodiakhq bot merged commit 7619988 into develop Dec 31, 2024
54 checks passed
@kodiakhq kodiakhq bot deleted the fix/thumbnails-not-deleted branch December 31, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants