Skip to content

MHR API Switch to querying the new database for search information #14552

Closed

Description

@mstanton1
  • 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.

Activity

  1. 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
  2. self-assigned this
    on Aug 24, 2023
  3. doug-lovett commented on Aug 29, 2023

    @doug-lovett
    Collaborator

    All non unit test code changes are conditional on an environment variable and currently disabled.

  4. doug-lovett commented on Aug 29, 2023

    @doug-lovett
    Collaborator

    Moving to done, no QA as the switch to PostgreSQL is disabled until data migration completes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions