NRPT 361 amalgamation of NRPTI issuing agency values #882
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.