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

feat: Add contentDisposition option to file storages #31974

Merged
merged 32 commits into from
May 29, 2024
Merged

Conversation

jeanfbrito
Copy link
Contributor

@jeanfbrito jeanfbrito commented Mar 12, 2024

Proposed changes (including videos or screenshots)

Add the option to change contentDisposition on the download url for file uploads.
So we can make GridFS and FileSystem work with PDF viewer on desktop.

Issue(s)

SUP-516
SUP-494

Steps to test or reproduce

Further comments

@jeanfbrito jeanfbrito requested a review from a team as a code owner March 12, 2024 21:49
Copy link

changeset-bot bot commented Mar 12, 2024

🦋 Changeset detected

Latest commit: 64e29e0

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

This PR includes changesets to release 32 packages
Name Type
@rocket.chat/meteor Minor
@rocket.chat/core-typings Minor
@rocket.chat/rest-typings Minor
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/fuselage-ui-kit Major
@rocket.chat/gazzodown Major
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Major
@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/uikit-playground Patch
@rocket.chat/models Patch
@rocket.chat/ui-avatar Major
@rocket.chat/ui-client Major
@rocket.chat/ui-video-conf Major
@rocket.chat/web-ui-registration Major
@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 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 56.34%. Comparing base (1ac48ae) to head (64e29e0).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #31974      +/-   ##
===========================================
+ Coverage    56.32%   56.34%   +0.01%     
===========================================
  Files         2434     2434              
  Lines        53708    53708              
  Branches     11057    11057              
===========================================
+ Hits         30251    30260       +9     
+ Misses       20812    20804       -8     
+ Partials      2645     2644       -1     
Flag Coverage Δ
e2e 56.03% <0.00%> (+0.04%) ⬆️
unit 72.18% <ø> (-0.03%) ⬇️

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

Copy link
Contributor

@MarcosSpessatto MarcosSpessatto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is more a feat rather than a fix, also we need to add a changeset.

@scuciatto scuciatto modified the milestones: 7.0, 6.8 Apr 2, 2024
Copy link
Contributor

dionisio-bot bot commented Apr 5, 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 6.10.0, but it targets 6.9.0

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

Copy link
Contributor

dionisio-bot bot commented Apr 5, 2024

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

  • This PR is missing the 'stat: QA assured' label
    Please fix the issues and try again
    If you have any trouble, please check the PR guidelines

@scuciatto scuciatto removed this from the 6.8 milestone Apr 18, 2024
@jeanfbrito jeanfbrito changed the title fix: GridFS and FileSystem PDF viewing feat: Add contentDisposition option to file storages May 10, 2024
@scuciatto scuciatto added this to the 6.9 milestone May 13, 2024
@jessicaschelly jessicaschelly added the stat: QA assured Means it has been tested and approved by a company insider label May 14, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label May 14, 2024
Co-authored-by: Kevin Aleman <kaleman960@gmail.com>
KevLehman
KevLehman previously approved these changes May 20, 2024
@scuciatto scuciatto modified the milestones: 6.9, 6.10 May 21, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label May 21, 2024
@kodiakhq kodiakhq bot merged commit 9cd49d5 into develop May 29, 2024
46 checks passed
@kodiakhq kodiakhq bot deleted the fix-pdf-viewer branch May 29, 2024 19:03
matheusbsilva137 pushed a commit that referenced this pull request May 31, 2024
Co-authored-by: Marcos Spessatto Defendi <15324204+MarcosSpessatto@users.noreply.github.com>
gabriellsh added a commit that referenced this pull request Jun 3, 2024
…retention

* 'develop' of github.com:RocketChat/Rocket.Chat:
  Release 6.9.0
  Release 6.9.0-rc.2
  fix: User status when setting "Use REST instead of websocket for Meteor calls" is disabled (#32500)
  fix: User status when setting "Use REST instead of websocket for Meteor calls" is disabled (#32500)
  regression: Hide prune section based on permission (#32531)
  fix: Users in role table not rendering the empty state properly (#32412)
  refactor: EmailInbox out of DB Watcher (#32501)
  ci: increase issue allowed stale time (#32523)
  regression: Remove impossible sorting from users table "registration status" column (#32506)
  feat: Add contentDisposition option to file storages (#31974)
  i18n: Rocket.Chat language update from LingoHub 🤖 on 2024-05-28Z (#32508)
  Release 6.9.0-rc.1
  fix: Re-login same browser tab issues (#32479)
  regression: Replace read receipt single icon (#32486)
  regression: Incorrect retention policy banner's display rule for teams (#32483)
  chore: Publish npm packages again (#32463)
  ci: publish missing Omnichannel services to DockerHub (#32462)
  Release 6.9.0-rc.0
This was referenced Jun 22, 2024
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.

None yet

7 participants