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

fix: Update code to account for params on end of asset url in s3 #1217

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

abbyoung
Copy link
Contributor

@abbyoung abbyoung commented Feb 23, 2024

SC-3219

Proposed changes

  • Fixes extension parsing to work with urls that both end with the extension, and end with additional params (added by s3, in this case).

  • Updates tests

Reviewer notes

Setup

Start the system

yarn services:up
yarn dev
cd ../ussf-portal-cms
yarn dev

Login to the portal http://localhost:3000

Start storybook

yarn storybook

Login to storybook http://localhost:6006, though the command above should open it for you


Code review steps

As the original developer, I have

  • Met the acceptance criteria
  • Created new stories in Storybook if applicable
  • Created/modified automated unit tests in Jest
  • Created/modified automated E2E tests
  • Followed guidelines for zero-downtime deploys, if applicable
  • Use ANDI to check for basic a11y issues

As a reviewer, I have

Check out our How to review a pull request document.


Screenshots

@abbyoung abbyoung marked this pull request as ready for review February 23, 2024 22:45
@abbyoung abbyoung requested a review from a team as a code owner February 23, 2024 22:45
Copy link
Contributor

@gidjin gidjin left a comment

Choose a reason for hiding this comment

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

LGTM, tested while it was on dev!

@abbyoung abbyoung merged commit abb88ac into main Feb 23, 2024
15 checks passed
@abbyoung abbyoung deleted the fix-file-open branch February 23, 2024 23:06
gidjin pushed a commit that referenced this pull request Feb 23, 2024
## [4.31.1](4.31.0...4.31.1) (2024-02-23)


### Bug Fixes

* Update code to account for params on end of asset url in s3 ([#1217](#1217)) ([abb88ac](abb88ac))
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.

2 participants