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

[Backport 2.x] [Workspace] Fix: Show a error toast when workspace read only user delete saved objects #6783

Merged
merged 1 commit into from
May 20, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport c448c52 from #6756.

…ete saved objects (#6756)

* fix: show a error toast when workspace read only user delete saved objects

Signed-off-by: yubonluo <yubonluo@amazon.com>

* Changeset file for PR #6756 created/updated

* Changeset file for PR #6756 created/updated

* optimize the code

Signed-off-by: yubonluo <yubonluo@amazon.com>

* Display the delete modal after failing to delete.

Signed-off-by: yubonluo <yubonluo@amazon.com>

* Add some unit tests

Signed-off-by: yubonluo <yubonluo@amazon.com>

* Add some state assertions

Signed-off-by: yubonluo <yubonluo@amazon.com>

---------

Signed-off-by: yubonluo <yubonluo@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit c448c52)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link

codecov bot commented May 14, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 67.58%. Comparing base (c9613fa) to head (d7e5cd2).

Files Patch % Lines
...ment_section/objects_table/saved_objects_table.tsx 92.85% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##              2.x    #6783   +/-   ##
=======================================
  Coverage   67.58%   67.58%           
=======================================
  Files        3427     3427           
  Lines       67352    67355    +3     
  Branches    10982    10982           
=======================================
+ Hits        45521    45524    +3     
  Misses      19164    19164           
  Partials     2667     2667           
Flag Coverage Δ
Linux_1 33.07% <ø> (ø)
Linux_2 55.16% <ø> (ø)
Linux_3 45.18% <ø> (-0.01%) ⬇️
Linux_4 34.88% <92.85%> (+0.01%) ⬆️
Windows_1 33.10% <ø> (ø)
Windows_2 55.13% <ø> (ø)
Windows_3 45.19% <ø> (ø)
Windows_4 34.88% <92.85%> (+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 3f344c9 into 2.x May 20, 2024
88 of 89 checks passed
@github-actions github-actions bot deleted the backport/backport-6756-to-2.x branch May 20, 2024 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut Skip the changelog verification check on backports repeat-contributor v2.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants