-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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: Allow large Parse File uploads #9286
base: alpha
Are you sure you want to change the base?
feat: Allow large Parse File uploads #9286
Conversation
Thanks for opening this pull request! |
spec/FilesRouter.spec.js
Outdated
|
||
afterAll(async () => { | ||
// clean up the server for resuse | ||
if (server && server.close) { |
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.
Wouldn't it be enough to just call await reconfigureServer()
to init the server with the default config?
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.
Your right. Missed that, new to testing here.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## alpha #9286 +/- ##
==========================================
- Coverage 93.49% 84.75% -8.75%
==========================================
Files 186 186
Lines 14811 14835 +24
==========================================
- Hits 13848 12573 -1275
- Misses 963 2262 +1299 ☔ View full report in Codecov by Sentry. |
There seems to be some test coverage missing, could you add that? |
Signed-off-by: Manuel <5673677+mtrezza@users.noreply.github.com>
Signed-off-by: Manuel <5673677+mtrezza@users.noreply.github.com>
Could you take a look at the failing postgres tests? |
Pull Request
Issue
Closes: #9283
Approach
During routing if a file size is larger than can be handled by the V8 engine as a string, it is used as a Blob. This changes touches both the
FilesRouter
andGridFSBucketAdapter
where the creation/upload happens, and the file is handled as a Buffer. I also added a new FilesRouter test spec for these changes.Tasks