-
Notifications
You must be signed in to change notification settings - Fork 43
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
BulkUpload Fixes #2625
BulkUpload Fixes #2625
Conversation
🚀 Deployment Information The Express API Image has been built with the tag: |
Code Climate has analyzed commit 3f7c3ed and detected 1 issue on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 80.8% (50% is the threshold). This pull request will bring the total coverage in the repository to 93.3%. View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the name field back in, but it should use the existing building's name first, otherwise use the name from the row. This way, it's not going to update the record's name field, but it should allow a building to be inserted with a name, which is what we'd expect given it's a mandatory field.
Co-authored-by: dbarkowsky <dylanbarkowsky@gmail.com>
🎯 Summary
list of changes:
Updated getClassificationOrThrow to match flow of other bulk upload functions.
parcel: added:
as variables that will use the value given in the bulk upload sheet if present, if not it will check if we are updating a parcel, if we are use the old value if we are adding a new parcel set the value to defaults (listed above)
building: added:
as variables that will use the value given in the bulk upload sheet if present, if not it will check if we are updating a building, if we are use the old value if we are adding a new building set the value to defaults (listed above)
updated list of required/ optional headers
included check for all required headers to be present
included check for multiple buildinfs found with name PID combo
removed name field from parcel update/insert
updated how IsSensitive and IsVisableToOtherAgencies is determined
Removed test for active vs. non active statuses and all references to status in testing function for getClassificationOrThrow.
Some things to note:
Testing
try uploading a spreadsheet with bulk upload. Please check if all possible fields update correctly and new properties get added correctly. Bulk upload should be able to add new parcels or buildings as well as update any of the fields (excluding PID and name)
To test how the bulk upload handles matching building name/PID combo I used this query:
On my local database to get a list of buildings that have name PID duplicates. Then i created a test upload file for a building with that name and pid.
🔰 Checklist