-
Notifications
You must be signed in to change notification settings - Fork 13k
chore: Streaming images for pdf transcript #38263
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
base: develop
Are you sure you want to change the base?
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #38263 +/- ##
===========================================
+ Coverage 70.71% 70.77% +0.06%
===========================================
Files 3142 3142
Lines 108925 108953 +28
Branches 19577 19652 +75
===========================================
+ Hits 77022 77108 +86
+ Misses 29902 29848 -54
+ Partials 2001 1997 -4
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
| // We can't use _streamToTmpFile at this stage since the file hasn't been validated yet, | ||
| // and for security reasons we must not write it to disk before validation | ||
| content = await streamToBuffer(content); | ||
| fileData.size = fileData.size ?? (content as Buffer).length; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could stream the contents to a temp file here and overwrite content with the file path - then it's gonna follow the new file upload flow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can change the service to upload to a temp file right before calling this one 👀

Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments
Memory Measurements
programs/server: +822.7 MiBapps/omnichannel-transcript: +980.2 MiBprograms/server: +426.8 MiBapps/omnichannel-transcript: +152.6 MiBConclusions
Extra