-
Notifications
You must be signed in to change notification settings - Fork 24
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
BB2-2829 update script for access grants #1147
BB2-2829 update script for access grants #1147
Conversation
…o handle change to 13-month apps.
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.
@ajshred Looking good. Still doing some more local testing.
Found one error. Just needing to remove the True param.
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.
The revisions look good to me, with caveat I have not checked out and tried it.
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.
Just a few change requests and suggestion for naming.
For the naming, I was thinking we should change the following log type naming to:
Would change the " " to "_" to better match our other type names.
"type": "application_data_access_type_change",
Local testing was looking good. Seeing expected grant updates when performing saves in the Admin and using the Django command.
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.
@ajshred This looks good to me!
Good work on this!
JIRA Ticket:
BB2-2829
What Does This PR Do?
Adding a script to update existing access grants.
13-month type application grants will update to 13 months from the date the script is run.
One time access grants will be deleted by the script.
Research study grants will be ignored.
Also, this changes the save function on an application.
Previously when an application's data access type changed,
it would delete all existing access grants associated.
The update changes this to mirror the script's function.
So it now behaves the same way as the script.
What Should Reviewers Watch For?
If you're reviewing this PR, please check these things, in particular:
What Security Implications Does This PR Have?
Submitters should complete the following questionnaire:
Any Migrations?
Submitter Checklist
I have gone through and verified that...:
README
updates and changelog / release notes entries.TODO
and/orFIXME
comments, which include a JIRA ticket ID for any items that require urgent attention.