-
Notifications
You must be signed in to change notification settings - Fork 2k
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 COMPANION_PATH #3515
Fix COMPANION_PATH #3515
Conversation
make sure it serves everything served behind that path fixes #3514
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.
Do you think we could have a test for this?
Regarding the breaking change: can we detect that users are expecting |
Ah, you mean we serve it from both |
as it's considered harmful in this case an error thrown will also be printed to stderr
I added tests and did a few other improvements, as well as backward compatible redirect from /metrics to /subpath/metrics |
Co-authored-by: Antoine du Hamel <[email protected]>
| Package | Version | Package | Version | | ---------------------- | ------- | ---------------------- | ------- | | @uppy/angular | 0.3.0 | @uppy/locales | 2.0.7 | | @uppy/aws-s3-multipart | 2.2.1 | uppy | 2.7.0 | | @uppy/companion | 3.3.1 | | | - @uppy/companion: fix unstable test (Mikael Finstad) - @uppy/companion: replace debug (Mikael Finstad) - @uppy/companion: Fix COMPANION_PATH (Mikael Finstad / #3515) - @uppy/angular: update ng version (Antoine du Hamel / #3503) - @uppy/companion: Upload protocol "s3-multipart" does not use the chunkSize option (Gabi Ganam / #3511) - @uppy/aws-s3-multipart: Add chunks back to prepareUploadParts, indexed by partNumber (Kevin West / #3520) - website: Add “Stop the war” banner (Artur Paikin / #3518) - @uppy/locales: Update zh_CN.js (linxunzyf / #3513) - meta: update remark dependencies (Antoine du Hamel / #3502)
* main: provider-view: fix breadcrumbs (#3535) Update BACKLOG.md Update ru_RU.js (#3529) @uppy/companion: reorder reqToOptions (#3530) meta: Fix yarn caching in github actions (#3526) Release: [email protected] (#3525) fix unstable test replace debug Fix COMPANION_PATH (#3515) @uppy/angular: update ng version (#3503) Upload protocol "s3-multipart" does not use the chunkSize option (#3511) Add chunks back to prepareUploadParts, indexed by partNumber (#3520) website: Add “Stop the war” banner (#3518)
* main: provider-view: fix breadcrumbs (transloadit#3535) Update BACKLOG.md Update ru_RU.js (transloadit#3529) @uppy/companion: reorder reqToOptions (transloadit#3530) meta: Fix yarn caching in github actions (transloadit#3526) Release: [email protected] (transloadit#3525) fix unstable test replace debug Fix COMPANION_PATH (transloadit#3515) @uppy/angular: update ng version (transloadit#3503) Upload protocol "s3-multipart" does not use the chunkSize option (transloadit#3511) Add chunks back to prepareUploadParts, indexed by partNumber (transloadit#3520) website: Add “Stop the war” banner (transloadit#3518)
* Fix COMPANION_PATH make sure it serves everything served behind that path fixes transloadit#3514 * add tests for subpath * chmod +x companion.sh * remove process.exit as it's considered harmful in this case an error thrown will also be printed to stderr * add backward compatible redirect * Apply suggestions from code review Co-authored-by: Antoine du Hamel <[email protected]> * fix oops Co-authored-by: Antoine du Hamel <[email protected]>
| Package | Version | Package | Version | | ---------------------- | ------- | ---------------------- | ------- | | @uppy/angular | 0.3.0 | @uppy/locales | 2.0.7 | | @uppy/aws-s3-multipart | 2.2.1 | uppy | 2.7.0 | | @uppy/companion | 3.3.1 | | | - @uppy/companion: fix unstable test (Mikael Finstad) - @uppy/companion: replace debug (Mikael Finstad) - @uppy/companion: Fix COMPANION_PATH (Mikael Finstad / transloadit#3515) - @uppy/angular: update ng version (Antoine du Hamel / transloadit#3503) - @uppy/companion: Upload protocol "s3-multipart" does not use the chunkSize option (Gabi Ganam / transloadit#3511) - @uppy/aws-s3-multipart: Add chunks back to prepareUploadParts, indexed by partNumber (Kevin West / transloadit#3520) - website: Add “Stop the war” banner (Artur Paikin / transloadit#3518) - @uppy/locales: Update zh_CN.js (linxunzyf / transloadit#3513) - meta: update remark dependencies (Antoine du Hamel / transloadit#3502)
make sure it serves everything served behind that path
fixes #3514
NOTE: This is probably a breaking change if some people expect
/metrics
to be under the root even when specifying a COMPANION_PATH