Skip to content

MHR API switch to querying the new database for registration information #14551

Closed

Description

@mstanton1

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.

Activity

  1. 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
  2. self-assigned this
    on Sep 12, 2023
  3. doug-lovett commented on Sep 15, 2023

    @doug-lovett
    Collaborator

    Moving to backlog while I work on something else.

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