Skip to content
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

NRPT 361 amalgamation of NRPTI issuing agency values #882

Merged
merged 6 commits into from
Jul 21, 2021

Conversation

cameronpettit
Copy link
Contributor

A bit of a pervasive bug to fix - issuingAgency values in the db have been amalgamated such that there is one entry per agency. The search filters currently implemented do not allow searching for agency names with commas in them - they are parsed at the commas into individual queries, so the db agency names do not contain commas.

The codebase has been combed and a wrapper function is used everywhere the issuing agency is displayed. There are two wrapper functions: One to display the full agency name (with commas) and the other to display the agency acronym, the latter being used for BCMI and the former everywhere else.

There is a migration to update the existing db entries and the importers & record add/edit pages have been updated to maintain 1 name per agency.

NRPT-361 fixing all records add/edit and detail display

NRPT 361 display name changes for BCMI

NRPT 361 Updating LNG site instances

NRPT-361 changes to NRCED and cleanup
Copy link
Contributor

@BcGovNeal BcGovNeal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the values in the collection agency picklist should be updated to be consistent with records. Will also need to include migrations for the collections.
https://github.com/cameronpettit/NRPTI/blob/239b42696a9fd9741bdf4820be1dd1d9b0fca1b2/angular/projects/common/src/app/utils/record-constants.ts#L269

api/migrations/20210712174600-mergeIssuingAgencyNames.js Outdated Show resolved Hide resolved
Copy link
Contributor

@BcGovNeal BcGovNeal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@cameronpettit cameronpettit merged commit 338a0c2 into bcgov:master Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants