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

Call v2 version of registerRecord on all uploads #498

Merged
merged 3 commits into from
Dec 5, 2024
Merged

Conversation

meisekimiu
Copy link
Member

We previously only used this for multipart uploads. Migrate to the V2 version of this endpoint.

Steps to test:

  1. Verify that uploads of files under 50MB in size still work properly.

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 42.95%. Comparing base (42fbea4) to head (577fa7e).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/app/core/services/upload/uploader.ts 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #498      +/-   ##
==========================================
+ Coverage   42.78%   42.95%   +0.17%     
==========================================
  Files         360      360              
  Lines       10986    10985       -1     
  Branches     1794     1793       -1     
==========================================
+ Hits         4700     4719      +19     
+ Misses       6130     6107      -23     
- Partials      156      159       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@k8lyn6 k8lyn6 left a comment

Choose a reason for hiding this comment

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

Uploaded a few files ranging from a couple of KB to a couple of MB and they all uploaded just fine!

We previously only used this for multipart uploads. Migrate to the V2
version of this endpoint.

PER-9931: Use V2 requests in all calls to /registerRecord
Add a basic test that runs through the expected single-part upload flow
in the Uploader class. This does not cover the entire class, but does
cover the changes made in this pull request.

PER-9931: Use V2 request for registerRecord
@meisekimiu meisekimiu merged commit eccee14 into main Dec 5, 2024
4 checks passed
@meisekimiu meisekimiu deleted the v2-registerrecord branch December 5, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants