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

Encode searchId as it tends to be decoded after adds into url #8530

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

zhyuanqi
Copy link
Collaborator

@zhyuanqi zhyuanqi commented Oct 9, 2024

Description

Fix the issue that when adding a new visualization, the visualization id would be decoded and leads to not found.

Screenshot

Screenshot 2024-10-07 at 11 52 58 PM

Changelog

  • fix: Encode searchId as it tends to be decoded after adds into url.

Check List

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

Copy link
Contributor

github-actions bot commented Oct 9, 2024

❌ Empty Changelog Section

The Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section.

Copy link
Contributor

github-actions bot commented Oct 9, 2024

❌ Entry Too Long

Entry is 114 characters long, which is 14 characters longer than the maximum allowed length of 100 characters. Please revise your entry to be within the maximum length.

@opensearch-project opensearch-project deleted a comment from github-actions bot Oct 9, 2024
Copy link
Contributor

github-actions bot commented Oct 9, 2024

❌ Entry Too Long

Entry is 105 characters long, which is 5 characters longer than the maximum allowed length of 100 characters. Please revise your entry to be within the maximum length.

Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.93%. Comparing base (98df4dd) to head (a9b5802).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8530   +/-   ##
=======================================
  Coverage   60.93%   60.93%           
=======================================
  Files        3769     3769           
  Lines       89506    89507    +1     
  Branches    14012    14013    +1     
=======================================
+ Hits        54539    54542    +3     
+ Misses      31557    31556    -1     
+ Partials     3410     3409    -1     
Flag Coverage Δ
Linux_1 29.00% <100.00%> (+<0.01%) ⬆️
Linux_2 56.25% <ø> (ø)
Linux_3 37.75% <0.00%> (+<0.01%) ⬆️
Linux_4 29.91% <ø> (ø)
Windows_1 29.02% <100.00%> (+<0.01%) ⬆️
Windows_2 56.20% <ø> (ø)
Windows_3 37.75% <0.00%> (-0.01%) ⬇️
Windows_4 29.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

SuZhou-Joe
SuZhou-Joe previously approved these changes Oct 9, 2024
Copy link
Member

@zhongnansu zhongnansu left a comment

Choose a reason for hiding this comment

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

can you remove the slack link, as community user has no access to that

@zhyuanqi zhyuanqi merged commit 9eae148 into opensearch-project:main Oct 9, 2024
70 of 71 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 9, 2024
* Encode searchId as it tends to be decoded after adds into url

Signed-off-by: Yuanqi(Ella) Zhu <[email protected]>

* Changeset file for PR #8530 created/updated

* Changeset file for PR #8530 created/updated

---------

Signed-off-by: Yuanqi(Ella) Zhu <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 9eae148)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@zhyuanqi zhyuanqi removed visualizations Issues and PRs related to visualizations backport 2.x v2.18.0 labels Oct 10, 2024
zhyuanqi added a commit to zhyuanqi/OpenSearch-Dashboards that referenced this pull request Oct 10, 2024
LDrago27 pushed a commit to LDrago27/OpenSearch-Dashboards that referenced this pull request Oct 11, 2024
…arch-project#8530)

* Encode searchId as it tends to be decoded after adds into url

Signed-off-by: Yuanqi(Ella) Zhu <[email protected]>

* Changeset file for PR opensearch-project#8530 created/updated

* Changeset file for PR opensearch-project#8530 created/updated

---------

Signed-off-by: Yuanqi(Ella) Zhu <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Qxisylolo pushed a commit to Qxisylolo/OpenSearch-Dashboards that referenced this pull request Oct 30, 2024
…arch-project#8530)

* Encode searchId as it tends to be decoded after adds into url

Signed-off-by: Yuanqi(Ella) Zhu <[email protected]>

* Changeset file for PR opensearch-project#8530 created/updated

* Changeset file for PR opensearch-project#8530 created/updated

---------

Signed-off-by: Yuanqi(Ella) Zhu <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
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.

3 participants