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

fix model group auto-deletion when last version is deleted #1444

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

rbhavna
Copy link
Collaborator

@rbhavna rbhavna commented Oct 6, 2023

Description

Currently, when the last version of a model group is being deleted, the model group also gets deleted automatically along with the version. Due to this, the access control information stored in model group is getting deleted without user's knowledge and user is required to create a new model group which is undesirable. With this PR, we ensure even if the last existing version of a model group is deleted, the model group still remains without getting deleted.

Issues Resolved

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@rbhavna rbhavna temporarily deployed to ml-commons-cicd-env October 6, 2023 16:16 — with GitHub Actions Inactive
@rbhavna rbhavna temporarily deployed to ml-commons-cicd-env October 6, 2023 16:16 — with GitHub Actions Inactive
@rbhavna rbhavna temporarily deployed to ml-commons-cicd-env October 6, 2023 16:16 — with GitHub Actions Inactive
@rbhavna rbhavna temporarily deployed to ml-commons-cicd-env October 6, 2023 16:16 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #1444 (3e81f00) into 2.x (bb84282) will decrease coverage by 0.02%.
The diff coverage is 50.00%.

@@             Coverage Diff              @@
##                2.x    #1444      +/-   ##
============================================
- Coverage     78.41%   78.39%   -0.02%     
+ Complexity     2387     2379       -8     
============================================
  Files           196      196              
  Lines          9622     9591      -31     
  Branches        961      955       -6     
============================================
- Hits           7545     7519      -26     
+ Misses         1640     1637       -3     
+ Partials        437      435       -2     
Flag Coverage Δ
ml-commons 78.39% <50.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...h/ml/action/models/DeleteModelTransportAction.java 82.75% <50.00%> (-1.14%) ⬇️

... and 1 file with indirect coverage changes

b4sjoo
b4sjoo previously approved these changes Oct 6, 2023
Signed-off-by: Bhavana Ramaram <[email protected]>
Signed-off-by: Bhavana Ramaram <[email protected]>
@rbhavna rbhavna temporarily deployed to ml-commons-cicd-env October 6, 2023 18:10 — with GitHub Actions Inactive
@rbhavna rbhavna temporarily deployed to ml-commons-cicd-env October 6, 2023 18:10 — with GitHub Actions Inactive
@rbhavna rbhavna temporarily deployed to ml-commons-cicd-env October 6, 2023 18:10 — with GitHub Actions Inactive
@rbhavna rbhavna temporarily deployed to ml-commons-cicd-env October 6, 2023 18:10 — with GitHub Actions Inactive
@rbhavna rbhavna merged commit 1f43b28 into opensearch-project:2.x Oct 6, 2023
9 checks passed
@rbhavna rbhavna deleted the 2.x_modelRegistry branch October 6, 2023 18:41
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 6, 2023
* fix model group auto-deletion when last version is deleted

Signed-off-by: Bhavana Ramaram <[email protected]>
(cherry picked from commit 1f43b28)
rbhavna added a commit that referenced this pull request Oct 6, 2023
…1446)

* fix model group auto-deletion when last version is deleted

Signed-off-by: Bhavana Ramaram <[email protected]>
(cherry picked from commit 1f43b28)

Co-authored-by: Bhavana Ramaram <[email protected]>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 16, 2023
* fix model group auto-deletion when last version is deleted

Signed-off-by: Bhavana Ramaram <[email protected]>
(cherry picked from commit 1f43b28)
ylwu-amzn pushed a commit that referenced this pull request Oct 17, 2023
…1523)

* fix model group auto-deletion when last version is deleted

Signed-off-by: Bhavana Ramaram <[email protected]>
(cherry picked from commit 1f43b28)

Co-authored-by: Bhavana Ramaram <[email protected]>
TrungBui59 pushed a commit to TrungBui59/ml-commons that referenced this pull request Nov 21, 2023
…h-project#1444) (opensearch-project#1523)

* fix model group auto-deletion when last version is deleted

Signed-off-by: Bhavana Ramaram <[email protected]>
(cherry picked from commit 1f43b28)

Co-authored-by: Bhavana Ramaram <[email protected]>
Signed-off-by: TrungBui59 <[email protected]>
austintlee pushed a commit to austintlee/ml-commons that referenced this pull request Feb 29, 2024
…h-project#1444) (opensearch-project#1523)

* fix model group auto-deletion when last version is deleted

Signed-off-by: Bhavana Ramaram <[email protected]>
(cherry picked from commit 1f43b28)

Co-authored-by: Bhavana Ramaram <[email protected]>
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.

4 participants