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

CLOUDP-175080: Support deletion protection for Atlas projects #1028

Merged

Conversation

helderjs
Copy link
Collaborator

@helderjs helderjs commented Jul 5, 2023

All Submissions:

  • Have you signed our CLA?
  • Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if there is one).
  • Update docs/release-notes/release-notes.md if your changes should be included in the release notes for the next release.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2023

@helderjs helderjs marked this pull request as ready for review July 5, 2023 11:37
@josvazg
Copy link
Collaborator

josvazg commented Jul 5, 2023

LGTM overall
I wonder whether or not we want more tests covering the annotation cases keep vs delete.

@helderjs helderjs force-pushed the CLOUDP-175080-project-deletion-protection branch 2 times, most recently from abe00cf to 3e18e79 Compare July 12, 2023 13:41
@helderjs helderjs requested a review from josvazg July 12, 2023 21:09
@helderjs helderjs force-pushed the CLOUDP-175080-project-deletion-protection branch from 3e18e79 to 286217c Compare July 13, 2023 15:06
Copy link
Collaborator

@igor-karpukhin igor-karpukhin left a comment

Choose a reason for hiding this comment

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

Good job 👍 Looks good in general!

Comment on lines +77 to +78
testProject := &mdbv1.AtlasProject{}
projectName := fmt.Sprintf("existing-project-%s", testNamespace.Name)
Copy link
Collaborator

Choose a reason for hiding this comment

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

non-blocking: this can be moved the the BeforeEach

Comment on lines +113 to +114
_, err := atlasClient.Projects.Delete(context.TODO(), projectID)
Expect(err).To(BeNil())
Copy link
Collaborator

Choose a reason for hiding this comment

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

non-blocking: this can be moved to AfterEach

@helderjs helderjs merged commit 5e6978c into deletion-protection-main Jul 14, 2023
38 checks passed
@helderjs helderjs deleted the CLOUDP-175080-project-deletion-protection branch July 14, 2023 16:33
josvazg added a commit that referenced this pull request Aug 2, 2023
* Add deletion protection flags to manager and support in database_user controller (#1003)

* CLOUDP-175080: Support deletion protection for Atlas projects (#1028)

* Disable and hide deletion protection (#1052)

Signed-off-by: Jose Vazquez <jose.vazquez@mongodb.com>

---------

Signed-off-by: Jose Vazquez <jose.vazquez@mongodb.com>
Co-authored-by: Helder Santana <contato@heldersantana.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants