Err/app 556/null columns dm inv generic v2#882
Conversation
Were the |
Didn't know there was a PR for that. I'll wait for it to merge and see it if fixes the known error. |
I'm wondering about the order of our db initialization scripts. Would it help if we ran the 04 and 05 migrations before we copy RDB -> RDB_Modern? |
|
does this fix the issue in the ticket of the discrepancy in |
@ericbuckley not sure what issues reordering would cause. |
@eliSkylight its mainly this call. https://github.com/CDCgov/NEDSS-DataReporting/blob/main/containers/db/initialize/005-prep-for-masterEtl-trace.sql#L6. If we delete the D_INVESTIGATION_REPEAT table in RDB, before we duplicate that to RDB_Modern, then it will be missing when RDB_Modern starts up and we run RTR. I was thinking if its missing then RTR would create the table with the proper table structure and the ALTER statements wouldn't be required. maybe not though 🤷 |
Description
sp_organization_eventhas been updated to properly handing empty spaces for several organization columns. Previously, these empty spaces caused downstream datamart tables to contain inaccurate data. A functional test step has also been added to solidfy the changes. I also modified the expected values for theorganizationEventunit test to account for the NULL values that are now being returned from the stored procedure.Related Issue
APP-556
Additional Notes
The
bmirdCasefunctional test was renamed tocasesBmirdGenericsince a GCD investigation was added as a step. Also, I added ALTER statements to theD_INVESTIGATION_REPEATtable for columns known to cause datamart-related issues in our local deployment. More information on that here.Checklist