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

[Workspace] Hide delete button for non OSD admin #7987

Merged

Conversation

Kapian1234
Copy link
Contributor

Description

Hide delete button for non OSD admin in workspace list page and detail page.

Issues Resolved

Screenshot

Testing the changes

Changelog

  • fix: Hide delete button for non OSD admin

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

codecov bot commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.10%. Comparing base (7dedc58) to head (4e95521).
Report is 97 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7987      +/-   ##
==========================================
+ Coverage   61.09%   61.10%   +0.01%     
==========================================
  Files        3691     3691              
  Lines       87310    87312       +2     
  Branches    13433    13434       +1     
==========================================
+ Hits        53340    53356      +16     
+ Misses      30722    30709      -13     
+ Partials     3248     3247       -1     
Flag Coverage Δ
Linux_1 29.32% <100.00%> (+<0.01%) ⬆️
Linux_2 56.24% <ø> (ø)
Linux_3 37.94% <ø> (+<0.01%) ⬆️
Linux_4 29.59% <ø> (ø)
Windows_1 29.36% <100.00%> (+0.02%) ⬆️
Windows_2 56.19% <ø> (ø)
Windows_3 37.94% <ø> (ø)
Windows_4 29.59% <ø> (ø)

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 84d5de3 into opensearch-project:main Sep 5, 2024
73 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 5, 2024
* Hide workspace delete button for non OSD admin

Signed-off-by: Kapian1234 <[email protected]>

* hide delete action instead of disabled

Signed-off-by: Kapian1234 <[email protected]>

* Changeset file for PR #7987 created/updated

---------

Signed-off-by: Kapian1234 <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 84d5de3)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
SuZhou-Joe pushed a commit that referenced this pull request Sep 5, 2024
* Hide workspace delete button for non OSD admin



* hide delete action instead of disabled



* Changeset file for PR #7987 created/updated

---------



(cherry picked from commit 84d5de3)

Signed-off-by: Kapian1234 <[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 Sep 6, 2024
* Hide workspace delete button for non OSD admin

* hide delete action instead of disabled

* Changeset file for PR #7987 created/updated

---------

(cherry picked from commit 84d5de3)

Signed-off-by: Kapian1234 <[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>
(cherry picked from commit a49876b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
SuZhou-Joe pushed a commit that referenced this pull request Sep 6, 2024
* Hide workspace delete button for non OSD admin

* hide delete action instead of disabled

* Changeset file for PR #7987 created/updated

---------

(cherry picked from commit 84d5de3)





(cherry picked from commit a49876b)

Signed-off-by: Kapian1234 <[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.

5 participants