You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MHR API switch to querying the new database for registration information #14551
After the DB2 data migration script is stable, and before post data-migration API can begin, the following API changes are required to switch from DB2 to exclusively PostgreSQL.
Update the DB2 model unit tests to conditionally execute only if the env variable USE_LEGACY_DB is true.
Create or update PostgreSQL registration related unit tests based on the legacy DB2 unit tests. Create reloadable test registrations that will work with both DB2 and PostgreSQL
Update registration data validation status related queries to use PostgreSQL.
Endpoint GET /mhr/api/v1/registrations Create account UI registrations table queries with sorting and filtering to query the modernized PostgreSQL database using the same business requirements as the DB2 queries. Response JSON should match legacy data source JSON.
Endpoints GET /mhr/api/v1/registrations/{mhr_num} and GET /mhr/api/v1/documents/{document_id} add ability to use the modernized PosgreSQL database as the data source. Response JSON should match legacy data source JSON as closely as possible.
Review and update all registration related code to conditionally use DB2 or PostgreSQL as the data source based on the USE_LEGACY_DB environment variable.
Developer Note:
Nothing to QA now: code changes are currently inactive because of an environment variable. Test with data migration testing.
changed the title [-]Switch to querying the new database for registration information[/-][+]MHR API switch to querying the new database for registration information[/+]on Aug 15, 2023
Activity
[-]Switch to querying the new database for registration information[/-][+]MHR API switch to querying the new database for registration information[/+]doug-lovett commentedon Sep 15, 2023
Moving to backlog while I work on something else.