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 search information #14552
Update the DB2 model unit tests to conditionally execute only if the env variable USE_LEGACY_DB is true.
Search Step 1 Endpoint POST /mhr/api/v1/searches Create search queries for all existing search types to query the modernized PostgreSQL database using the same business requirements as the DB2 queries. Response JSON should match legacy data source JSON.
Search Step 2 endpoint POST /mhr/api/v1/search-results/{searchId} add ability to use the modernized PosgreSQL database as the data source. Response JSON (used for the search report) should match legacy data source JSON as closely as possible.
Review and update all search related code to conditionally use DB2 or PostgreSQL as the data source based on the USE_LEGACY_DB environment variable.
Create or update PostgreSQL search related unit tests based on the legacy unit tests.
changed the title [-]Switch to querying the new database for search information[/-][+]MHR API Switch to querying the new database for search information[/+]on Aug 15, 2023
Activity
[-]Switch to querying the new database for search information[/-][+]MHR API Switch to querying the new database for search information[/+]doug-lovett commentedon Aug 29, 2023
All non unit test code changes are conditional on an environment variable and currently disabled.
doug-lovett commentedon Aug 29, 2023
Moving to done, no QA as the switch to PostgreSQL is disabled until data migration completes.