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

Navigate to Import Sample Data Page without Refresh when New Home is Enabled #457

Conversation

wanglam
Copy link
Contributor

@wanglam wanglam commented Oct 21, 2024

Description

This PR addresses the issue of navigating to the import sample data page without causing a page refresh when the new home page and workspace are enabled.

Changes:

  • Modified the CreateIndex component to check if the new home page and workspace are enabled.
  • Added an onClick handler to the "Add Sample Data" link when the new home page and workspace are enabled.
  • In the onClick handler, called application.navigateToApp with import_sample_data to navigate to the import sample data page without causing a page refresh.

Issues Resolved

#456

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: Lin Wang <wonglam@amazon.com>
Copy link
Member

@sejli sejli left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for updating the tests as well! Does this need a backport?

@wanglam
Copy link
Contributor Author

wanglam commented Oct 21, 2024

Hi @sejli , Yes. I think this changes should be backport to 2.x branch. Feel free to help me add the label, thank you.

@sejli sejli merged commit d01d2ff into opensearch-project:main Oct 21, 2024
13 checks passed
github-actions bot added a commit that referenced this pull request Oct 21, 2024
Signed-off-by: Lin Wang <wonglam@amazon.com>
(cherry picked from commit d01d2ff)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
sejli pushed a commit that referenced this pull request Oct 21, 2024
(cherry picked from commit d01d2ff)

Signed-off-by: Lin Wang <wonglam@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants