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
Populate decision text and conflicts from oracle for all pre-Namex NRs #1096
Comments
Solution - model this on the updater, not extractor, because it has connections set up to oracle (direct, not wrapper) and originates on namex side rather than triggering off an oracle table (extractor). Can also use the flask model functionality nicely from updater-style script. Create table in postgres with list of records to process (one of the three completed states, last updated by NRO_SERVICE_ACCOUNT). Call this script over that list. Create view in Oracle with the data I need, then drop when I'm done. |
View to create in Oracle:
Above with no line breaks or extra spaces:
|
|
Table to create in Postgres, to track records to process (and processing status):
SQL to populate tracking table:
|
Deployment:
Tear down:
|
This script will change data in the names table. Not the requests table. So it will not change the lastUpdate value of the Request record, so it will NOT be picked up by the NRO-Updater, ie: it will not push any data back to Oracle for the changed NRs. |
Replaced by bcgov/entity#19 and completed early December. |
Need to pull decision text and conflicts from oracle for pre-Namex NRs.
Does not need to be part of the extractor, since as of now (post-launch) the only NRs it will pull will be new ones.
Decision text: name_state.state_comment
Conflicts: name_rule (conf_number, conf_name) where rejection_reason_code='CONFLICT'
Should be run once. Probably a script that can run behind the scenes. Could add to extractor and run the extractor over all NRs (PUT for update) but that involves updating the NAMES_VW view and extractor code.
Per @LJTrent : **ENSURE THE UPDATER IS TURNED OFF WHEN THE DATA FIX IS EXECUTED ****
The text was updated successfully, but these errors were encountered: