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] Delete saved objects by workspace #6424

Merged

Conversation

Hailong-am
Copy link
Collaborator

backport 735424b from #6013

* [API] Delete saved objects by workspace (opensearch-project#216)

* Delete saved objects by workspace

Signed-off-by: Hailong Cui <ihailong@amazon.com>

fix osd boostrap

Signed-off-by: Hailong Cui <ihailong@amazon.com>

* add unit test

Signed-off-by: Hailong Cui <ihailong@amazon.com>

* fix can't delete workspace due to invalid permission

Signed-off-by: Hailong Cui <ihailong@amazon.com>

---------

Signed-off-by: Hailong Cui <ihailong@amazon.com>

* update test case

Signed-off-by: Hailong Cui <ihailong@amazon.com>

* Add change log

Signed-off-by: Hailong Cui <ihailong@amazon.com>

* update change log format

Signed-off-by: Hailong Cui <ihailong@amazon.com>

* update method comments to make it more clear

Signed-off-by: Hailong Cui <ihailong@amazon.com>

---------

Signed-off-by: Hailong Cui <ihailong@amazon.com>
(cherry picked from commit 735424b)
@Hailong-am Hailong-am changed the title [Backport 2.x][Workspace] Delete saved objects by workspace (#6013) [Backport 2.x] [Workspace] Delete saved objects by workspace (#6013) Apr 12, 2024
@Hailong-am Hailong-am changed the title [Backport 2.x] [Workspace] Delete saved objects by workspace (#6013) [Backport 2.x] [Workspace] Delete saved objects by workspace Apr 12, 2024
@SuZhou-Joe SuZhou-Joe added autocut Skip the changelog verification check on backports workspace v2.14.0 labels Apr 12, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: Hailong Cui <ihailong@amazon.com>
Copy link
Member

@SuZhou-Joe SuZhou-Joe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, please make sure all the flows pass.

Copy link

codecov bot commented Apr 12, 2024

Codecov Report

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

Project coverage is 54.73%. Comparing base (730e640) to head (91cfdd6).

Files Patch % Lines
...ore/server/saved_objects/service/lib/repository.ts 0.00% 6 Missing ⚠️
...rver/saved_objects/service/saved_objects_client.ts 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #6424      +/-   ##
==========================================
- Coverage   55.53%   54.73%   -0.81%     
==========================================
  Files        1196     2269    +1073     
  Lines       24167    44436   +20269     
  Branches     4063     8230    +4167     
==========================================
+ Hits        13422    24323   +10901     
- Misses      10108    18362    +8254     
- Partials      637     1751    +1114     
Flag Coverage Δ
Linux_2 ?
Linux_3 45.20% <0.00%> (?)
Linux_4 35.12% <11.11%> (?)

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.

@Hailong-am
Copy link
Collaborator Author

@ZilongX could you help to review the backport PR to 2.x?

@BionIT
Copy link
Collaborator

BionIT commented Apr 12, 2024

code coverage failed, and can we check? @Hailong-am

@Hailong-am
Copy link
Collaborator Author

Hailong-am commented Apr 13, 2024

code coverage failed, and can we check? @Hailong-am

by looking at the coverage report https://app.codecov.io/gh/opensearch-project/OpenSearch-Dashboards/pull/6424/blob/src/core/server/saved_objects/service/lib/repository.ts, it looks like whole file is not covered, And we do have unit test to cover the change.

It might be something wrong with collecting coverage from test run.

@SuZhou-Joe SuZhou-Joe merged commit d31d9de into opensearch-project:2.x Apr 14, 2024
66 of 67 checks passed
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 v2.14.0 workspace
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants