Add authority bulk create (backend & frontend) #3708
Merged
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.
Summary
Implement bulk creation of local authorities
Specific Changes in this PR
/api/authority_records/bulk_create
route for submission of CSVBulk Add
button to Local Authorities dashboardVersion bump required by the PR
See Semantic Versioning 2.0.0 for help discerning which is required.
Steps to Test
label
andhint
and several rows of new authorities. Feel free to include labels that already exist to test duplicate handling.Bulk Add
buttonThe modal popup should close, and your browser should download a CSV file containing the results (labels, hints, IDs, and an indication of whether the line item was created or if it was a dupe).
You can do a "bad data" test by:
Bad data should cause a redirect right back to the local authorities page. Due to the nature of how this direct
POST
works, displaying an error message would take a lot more work that might not be worth it.🚀 Deployment Notes
Note - if you check any of these boxes go to the (always open)
main
<-staging
PR and add detailed notes and instructions to help out others who may end up deploying your changes to productionmix meadow.pipeline.setup
run)miscellany
Tested/Verified