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: New messages export overwrites previous one from the same day when using Amazon S3 #32062

Merged
merged 15 commits into from
Apr 8, 2024

Conversation

matheusbsilva137
Copy link
Member

@matheusbsilva137 matheusbsilva137 commented Mar 25, 2024

Proposed changes (including videos or screenshots)

  • Include unique id in message export zip files' names to avoid replacement instead of insertion on external storage services (due to name collision).

Issue(s)

Steps to test or reproduce

Set Amazon S3 as the Storage Type and sequentially export multiple rooms as files.

Current behavior: by accessing the oldest export sent by email and clicking the link, the downloaded file is actually related to the latest export.

Expected behavior: each downloaded file should contain its corresponding export, no overwrites should be made.

Further comments

SUP-522

Copy link

changeset-bot bot commented Mar 25, 2024

🦋 Changeset detected

Latest commit: 8f60224

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

This PR includes changesets to release 31 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron 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/api-client Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/ddp-client Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/models Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/uikit-playground 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 Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.80%. Comparing base (a316c2b) to head (8f60224).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #32062      +/-   ##
===========================================
+ Coverage    53.67%   54.80%   +1.12%     
===========================================
  Files         2223     2301      +78     
  Lines        49680    50793    +1113     
  Branches     10195    10409     +214     
===========================================
+ Hits         26666    27835    +1169     
+ Misses       20594    20453     -141     
- Partials      2420     2505      +85     
Flag Coverage Δ
e2e 53.72% <ø> (+2.13%) ⬆️
unit 75.43% <100.00%> (+0.04%) ⬆️

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

@matheusbsilva137 matheusbsilva137 marked this pull request as ready for review March 25, 2024 23:52
@matheusbsilva137 matheusbsilva137 requested a review from a team as a code owner March 25, 2024 23:52
@matheusbsilva137 matheusbsilva137 changed the title fix: New messages export overwrites previous one when using Amazon S3 fix: New messages export overwrites previous one from the same day when using Amazon S3 Mar 26, 2024
@jessicaschelly jessicaschelly added stat: QA assured Means it has been tested and approved by a company insider and removed stat: needs QA labels Apr 8, 2024
Copy link
Contributor

dionisio-bot bot commented Apr 8, 2024

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

Copy link
Contributor

dionisio-bot bot commented Apr 8, 2024

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

  • This PR is missing the required milestone or project
    Please fix the issues and try again
    If you have any trouble, please check the PR guidelines

@matheusbsilva137 matheusbsilva137 added this to the 6.8 milestone Apr 8, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Apr 8, 2024
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Apr 8, 2024
@kodiakhq kodiakhq bot merged commit 67be331 into develop Apr 8, 2024
43 checks passed
@kodiakhq kodiakhq bot deleted the fix/export-messages-replace-files-s3 branch April 8, 2024 21:46
gabriellsh added a commit that referenced this pull request Apr 9, 2024
 Via GitHub (2) and Guilherme Gazzo (1)
* develop: (40 commits)
  chore: Fix some check/lint warnings (#32048)
  Revert "fix!: api login should not suggest which credential is wrong" (#32156)
  test: Prevent playwright from unselecting options by mistake (#32158)
  chore(meteor/packages): apply code style (#32145)
  fix: New messages export overwrites previous one from the same day when using Amazon S3 (#32062)
  Release 6.7.0
  chore: bump to 6.8.0 (#32153)
  chore: remove unused onStartup function (#32149)
  Release 6.7.0-rc.4
  chore: remove collections when db watcher is disabled (#32150)
  chore: Bump Apps-Engine version (#32144)
  regression(fuselage-ui-kit): Use default translation namespace for `-core` apps (#32105)
  regression(fuselage-ui-kit): Use default translation namespace for `-core` apps (#32105)
  chore: move imported `Apps` to proxy (#32142)
  feat: allowing forward to offline dep (#31976)
  ci: fix services container not building in build step (#32075)
  feat: `Contextualbar` resizable (#29461)
  fix: Missing space between name and user name on system messages (#32136)
  fix: livechat room desync on different windows (#32135)
  fix: livechat room desync on different windows (#32135)
  ...
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.

5 participants