Issue Number | 5011 |
---|---|
Summary | [General] Ability to Preserve Testing/Training Documents on QA |
Created | 2021-07-30 15:42:16 |
Issue Type | New Feature |
Submitted By | Osei-Poku, William (NIH/NCI) [C] |
Assigned To | Englisch, Volker (NIH/NCI) [C] |
Status | Closed |
Resolved | 2021-08-10 20:52:52 |
Resolution | Fixed |
Path | /home/bkline/backups/jira/ocecdr/issue.295407 |
Following the modifications done in OCECDR-4631 on DEV, we would like to have similar medications on QA to allow us to preserve testing and training documents on QA.
I created a new program called PullQaData.py which is based on the program we have running on DEV. This program captures all documents identified by the "@KeepAtRefresh" attribute. Once this program ran we can run a regular DB refresh followed by our PushDevData.py script to restore the previously captured documents.
I will need to make some minor changes to these scripts but we can achieve the DB refresh on QA (for content documents only) similar to the refresh on DEV.
The script to restore the documents ( PushDevData.py ) require the modified library cdr_dev_data.py which are part of Ohm. I will therefore move this ticket to the Ohm release as well although we're able to run the new script on QA as long as the modified library file is in place.
The following changes have been made:
PullQaData.py
https://github.com/NCIOCPL/cdr-tools/commit/fba4eb8
PushDevData.py
https://github.com/NCIOCPL/cdr-tools/commit/fba4eb8
Verified on DEV. Thanks!
Elapsed: 0:00:00.001594