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 version selector for parity with previous version #1205

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BSFishy
Copy link
Contributor

@BSFishy BSFishy commented Jan 11, 2024

Description

The current version selector navigates to <url>/<version> instead of <url>/<version>/. The trailing / is necessary to navigate to the correct version. Currently, if you try navigating to a different version on https://oui.opensearch.org/1.4/, it won't change the version.

Additionally, I made a change to the way the response promise is handled to properly handle case where there is an error with the fetch.

I think a change was made to the CDK to fix this as well, but I wanted to keep parity with the previous version of the version selector

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • All tests pass
    • yarn lint
    • yarn test-unit
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

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

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Matt Provost <provomat@amazon.com>
@BSFishy
Copy link
Contributor Author

BSFishy commented Jan 11, 2024

Does this need a changelog entry?

@ashwin-pc
Copy link
Member

No this does not need a changelog entry :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants