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

feat(storage): add support for content disposition and content type in getUrl #13615

Merged
merged 16 commits into from
Aug 6, 2024

Conversation

yuhengshs
Copy link
Contributor

Description of changes

  • Added content disposition option and content type option under getUrl in Storage category.
  • Added Unit tests to corresponding parts

Issue #, if available

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes
  • Unit Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

Checklist for repo maintainers

  • Verify E2E tests for existing workflows are working as expected or add E2E tests for newly added workflows
  • New source file paths included in this PR have been added to CODEOWNERS, if appropriate

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@yuhengshs yuhengshs force-pushed the yuhengsh-contentDisposition branch from 64ca761 to 739a1d4 Compare July 19, 2024 22:26
@yuhengshs yuhengshs changed the title Added content disposition and content type for getUrl feat(storage): Added content disposition and content type for getUrl Jul 22, 2024
@yuhengshs yuhengshs changed the title feat(storage): Added content disposition and content type for getUrl feat(storage): add support for content disposition and content type in getUrl Jul 22, 2024
@yuhengshs yuhengshs marked this pull request as ready for review July 22, 2024 20:57
ashika112
ashika112 previously approved these changes Jul 24, 2024
Copy link
Member

@jimblanc jimblanc left a comment

Choose a reason for hiding this comment

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

Overall looks good

@yuhengshs yuhengshs requested a review from jimblanc July 30, 2024 19:44
HuiSF
HuiSF previously approved these changes Aug 1, 2024
@@ -328,20 +328,20 @@ describe('getUrl test with path', () => {
path: 'path',
expectedKey: 'path',
contentDisposition: {
type: 'invalid' as const,
Copy link
Member

Choose a reason for hiding this comment

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

TBH const is legit here. 😄 it turns string into invalid, so it conforms the string union.

ashika112
ashika112 previously approved these changes Aug 1, 2024
@yuhengshs yuhengshs dismissed stale reviews from ashika112 and HuiSF via 40c898f August 6, 2024 16:12
Bump up getUrl package size to 15.63KB
@yuhengshs yuhengshs merged commit 28434a6 into main Aug 6, 2024
31 checks passed
@ashika112 ashika112 deleted the yuhengsh-contentDisposition branch August 9, 2024 05:57
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.

4 participants