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

[Manual][Backport 2.x][Workspace]Hide create workspace button for non dashboard admin #7382

Merged

Conversation

wanglam
Copy link
Contributor

@wanglam wanglam commented Jul 23, 2024

Description

Manual backport #7357 to 2.x, only conflict with src/plugins/workspace/public/components/workspace_list/index.tsx

Issues Resolved

Screenshot

Testing the changes

Changelog

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

…search-project#7357)

* Hide create workspace for non dashboard admin

Signed-off-by: Lin Wang <[email protected]>

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

* Add more cases and update snapshot

Signed-off-by: Lin Wang <[email protected]>

* Update match rule

Signed-off-by: Lin Wang <[email protected]>

---------

Signed-off-by: Lin Wang <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Copy link
Contributor

❌ 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

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.83%. Comparing base (5944bd7) to head (5e76cc1).
Report is 1 commits behind head on 2.x.

Additional details and impacted files
@@           Coverage Diff           @@
##              2.x    #7382   +/-   ##
=======================================
  Coverage   67.83%   67.83%           
=======================================
  Files        3520     3520           
  Lines       69758    69762    +4     
  Branches    11368    11370    +2     
=======================================
+ Hits        47320    47324    +4     
  Misses      19652    19652           
  Partials     2786     2786           
Flag Coverage Δ
Linux_1 33.17% <100.00%> (+<0.01%) ⬆️
Linux_2 55.61% <ø> (ø)
Linux_3 43.28% <ø> (ø)
Linux_4 34.96% <ø> (ø)
Windows_1 33.19% <100.00%> (+<0.01%) ⬆️
Windows_2 55.56% <ø> (ø)
Windows_3 43.29% <ø> (ø)
Windows_4 34.96% <ø> (ø)

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.

@wanglam wanglam changed the title [Manual][Backport 2.x][Workspace] [Workspace]Hide create workspace button for non dashboard admin [Manual][Backport 2.x][Workspace]Hide create workspace button for non dashboard admin Jul 23, 2024
Copy link
Contributor

❌ 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.

@ruanyl ruanyl merged commit 1f5f461 into opensearch-project:2.x Jul 23, 2024
65 of 67 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 23, 2024
… (#7382)

* Hide create workspace for non dashboard admin

* Changeset file for PR #7357 created/updated

* Add more cases and update snapshot

* Update match rule

---------

Signed-off-by: Lin Wang <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 1f5f461)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ruanyl pushed a commit that referenced this pull request Jul 23, 2024
… (#7382) (#7390)

* Hide create workspace for non dashboard admin

* Changeset file for PR #7357 created/updated

* Add more cases and update snapshot

* Update match rule

---------



(cherry picked from commit 1f5f461)

Signed-off-by: Lin Wang <[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>
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