Issue Number | 5252 |
---|---|
Summary | [Internal] Modify RemoveProdGroups.py |
Created | 2023-06-15 12:58:48 |
Issue Type | Improvement |
Submitted By | Englisch, Volker (NIH/NCI) [C] |
Assigned To | Englisch, Volker (NIH/NCI) [C] |
Status | Closed |
Resolved | 2023-07-13 13:02:56 |
Resolution | Fixed |
Path | /home/bkline/backups/jira/ocecdr/issue.348911 |
The script RemoveProdGroups.py has the notification groups to be updated after a database refresh hard-coded.
It would be better to have these group/recipient pairs stored as control values so they can easily be updated.
I created a new group "DBRefresh" and a value name "RemoveProdGroups" holding the notification groups and accounts to be used for overwriting the PROD groups after a CDR database refresh. [Note: This is a manual process]
The following program has been modified and tested on DEV.
RemoveProdGroups.py
https://github.com/NCIOCPL/cdr-tools/commit/e8224f1
I tested these changes on QA and found that the distribution group information was selected from DEV instead of the current server. This has been fixed and tested on QA:
RemoveProdGroups.py
https://github.com/NCIOCPL/cdr-tools/commit/41c664c
We're not going to run the script on PROD because PROD will never get "refreshed" but I added the new group of control values for consistency across the tiers anyway.
Closing ticket.
Elapsed: 0:00:00.001635