-
Notifications
You must be signed in to change notification settings - Fork 19
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
#3320: Remove portfolios that are not in use on stable - [NL] #3383
base: main
Are you sure you want to change the base?
Conversation
🥳 Successfully deployed to developer sandbox nl. |
1 similar comment
🥳 Successfully deployed to developer sandbox nl. |
🥳 Successfully deployed to developer sandbox nl. |
🥳 Successfully deployed to developer sandbox nl. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran well on getgov-za. Just missing some run documentation in data_migration.md and a unit test. Runs well enough on that amount of data. Will re-review and probably approve after those are in!
I will note though that it might be a good idea to wrap it in transaction.atomic() as noted below
🥳 Successfully deployed to developer sandbox nl. |
🥳 Successfully deployed to developer sandbox nl. |
1 similar comment
🥳 Successfully deployed to developer sandbox nl. |
🥳 Successfully deployed to developer sandbox nl. |
🥳 Successfully deployed to developer sandbox nl. |
1 similar comment
🥳 Successfully deployed to developer sandbox nl. |
…script' into nl/3320-remove-unused-portfolio-script
🥳 Successfully deployed to developer sandbox nl. |
🥳 Successfully deployed to developer sandbox nl. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your changes look good. Going to push this up to my sandbox with a fresh db, test again, then approve
def tearDown(self): | ||
self.logger_patcher.stop() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should do some cleanup on suborg, domain info, domain group, portfolioinvitation, domainrequest, domaininfo, portfolio, and user. If you look at the class MockDb (or called something similar) you should be able to just copy that
Won't block the approval on it as its easy to change, but remember to do this before merging!
Ticket 3320
Resolves #3320
Changes
remove_unused_portfolios
management script to remove portfolios not in theALLOWED_PORTFOLIOS
list.Context for reviewers
Setup
Code Review Verification Steps
As the original developer, I have
Satisfied acceptance criteria and met development standards
Ensured code standards are met (Original Developer)
Validated user-facing changes (if applicable)
As a code reviewer, I have
Reviewed, tested, and left feedback about the changes
Validated user-facing changes as a developer
Note: Multiple code reviewers can share the checklists above, a second reviewer should not make a duplicate checklist. All checks should be checked before approving, even those labeled N/A.
As a designer reviewer, I have
Verified that the changes match the design intention
Validated user-facing changes as a designer
References
Screenshots