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: generate short url with workspace info #8719

Merged

Conversation

SuZhou-Joe
Copy link
Member

@SuZhou-Joe SuZhou-Joe commented Oct 28, 2024

Description

This PR is to fix the issue that short url generated from visualizations / dashboards / index patterns page does not include workspace info.

Issues Resolved

Screenshot

Before fix

20241026170617265.mp4

After fix

20241026165425689.mp4

Testing the changes

Changelog

  • fix: generate short url with workspace info

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

@SuZhou-Joe
Copy link
Member Author

This PR can not be merged until revert #8709

Copy link

codecov bot commented Oct 28, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 60.74%. Comparing base (7d53be7) to head (8472b2d).
Report is 16 commits behind head on main.

Files with missing lines Patch % Lines
.../share/server/routes/lib/short_url_assert_valid.ts 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8719   +/-   ##
=======================================
  Coverage   60.73%   60.74%           
=======================================
  Files        3798     3798           
  Lines       90650    90662   +12     
  Branches    14254    14260    +6     
=======================================
+ Hits        55060    55074   +14     
+ Misses      32094    32092    -2     
  Partials     3496     3496           
Flag Coverage Δ
Linux_1 29.06% <ø> (-0.01%) ⬇️
Linux_2 56.39% <ø> (-0.01%) ⬇️
Linux_3 37.58% <ø> (+0.01%) ⬆️
Linux_4 29.83% <66.66%> (-0.01%) ⬇️
Windows_1 29.08% <ø> (-0.01%) ⬇️
Windows_2 56.34% <ø> (-0.01%) ⬇️
Windows_3 37.58% <ø> (+0.01%) ⬆️
Windows_4 29.83% <66.66%> (-0.01%) ⬇️

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 merged commit 54fd87d into opensearch-project:main Oct 28, 2024
68 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 28, 2024
* fix: generate short url with workspace info

Signed-off-by: SuZhou-Joe <[email protected]>

* Changeset file for PR #8719 created/updated

---------

Signed-off-by: SuZhou-Joe <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 54fd87d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
SuZhou-Joe pushed a commit that referenced this pull request Oct 29, 2024
* fix: generate short url with workspace info



* Changeset file for PR #8719 created/updated

---------



(cherry picked from commit 54fd87d)

Signed-off-by: SuZhou-Joe <[email protected]>
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>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 29, 2024
* fix: generate short url with workspace info

Signed-off-by: SuZhou-Joe <[email protected]>

* Changeset file for PR #8719 created/updated

---------

Signed-off-by: SuZhou-Joe <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 54fd87d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ananzh pushed a commit that referenced this pull request Oct 29, 2024
* fix: generate short url with workspace info



* Changeset file for PR #8719 created/updated

---------



(cherry picked from commit 54fd87d)

Signed-off-by: SuZhou-Joe <[email protected]>
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>
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
* fix: generate short url with workspace info

Signed-off-by: SuZhou-Joe <[email protected]>

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

---------

Signed-off-by: SuZhou-Joe <[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