Skip to content

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

Merged
SuZhou-Joe merged 5 commits intoopensearch-project:mainfrom
Kapian1234:workspace_hide_delete_button
Sep 5, 2024
Merged

[Workspace] Hide delete button for non OSD admin#7987
SuZhou-Joe merged 5 commits intoopensearch-project:mainfrom
Kapian1234:workspace_hide_delete_button

Conversation

@Kapian1234
Copy link
Copy Markdown
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

Signed-off-by: Kapian1234 <wanjinch@amazon.com>
Signed-off-by: Kapian1234 <wanjinch@amazon.com>
opensearch-changeset-bot bot and others added 3 commits September 4, 2024 09:41
/
Signed-off-by: Kapian1234 <wanjinch@amazon.com>
…OpenSearch-Dashboards into workspace_hide_delete_button
@codecov
Copy link
Copy Markdown

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
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 <wanjinch@amazon.com>

* hide delete action instead of disabled

Signed-off-by: Kapian1234 <wanjinch@amazon.com>

* Changeset file for PR #7987 created/updated

---------

Signed-off-by: Kapian1234 <wanjinch@amazon.com>
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 <wanjinch@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>
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 <wanjinch@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>
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 <wanjinch@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>
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