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(pdf-transcript): Don't error out when trying to process an image bigger than NATS max payload #32318

Merged
merged 8 commits into from
May 9, 2024

Conversation

KevLehman
Copy link
Contributor

@KevLehman KevLehman commented Apr 26, 2024

https://rocketchat.atlassian.net/browse/CORE-398

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

Further comments

Fixed error handling for files bigger than NATS max allowed payload. This should prevent PDFs from erroring out when generating from rooms that contain heavy images. Also added projections to user/rooms db calls

@KevLehman KevLehman requested a review from a team as a code owner April 26, 2024 19:14
Copy link

changeset-bot bot commented Apr 26, 2024

🦋 Changeset detected

Latest commit: effb315

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/omnichannel-services Patch
@rocket.chat/core-services Patch
@rocket.chat/meteor Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/queue-worker Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/presence-service Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/apps 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/api-client Patch
@rocket.chat/license Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/ddp-client Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/models Patch
@rocket.chat/ui-avatar 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
Contributor

dionisio-bot bot commented Apr 26, 2024

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

Copy link

codecov bot commented Apr 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.59%. Comparing base (e0ba4e6) to head (effb315).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #32318   +/-   ##
========================================
  Coverage    55.59%   55.59%           
========================================
  Files         2404     2403    -1     
  Lines        52896    52865   -31     
  Branches     10862    10857    -5     
========================================
- Hits         29409    29392   -17     
+ Misses       20889    20872   -17     
- Partials      2598     2601    +3     
Flag Coverage Δ
e2e 54.92% <ø> (+0.03%) ⬆️
unit 73.47% <ø> (-0.11%) ⬇️

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

@KevLehman KevLehman added this to the 6.9 milestone Apr 26, 2024
.changeset/silly-clocks-return.md Outdated Show resolved Hide resolved
I mean why not

Co-authored-by: Debdut Chakraborty <debdut.chakraborty@rocket.chat>
debdutdeb
debdutdeb previously approved these changes Apr 29, 2024
Copy link
Member

@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.

Unit tests will be added in a subsequent PR.

@jessicaschelly jessicaschelly added the stat: QA assured Means it has been tested and approved by a company insider label May 9, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label May 9, 2024
@kodiakhq kodiakhq bot merged commit 724ba3a into develop May 9, 2024
43 checks passed
@kodiakhq kodiakhq bot deleted the fix/pdf-big-files branch May 9, 2024 16:18
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