-
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
PIMS-288 Parcel Details Change Unexpectedly Pt.2 #1926
Conversation
🚀 Deployment Information The APP Image has been built with the tag: |
Code Climate has analyzed commit 4e0d74a and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 76.4% (50% is the threshold). This pull request will bring the total coverage in the repository to 55.8%. 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.
dropping pin onto map updates some fields in all three spots. I think that the zoom issue is something larger than this ticket and should be investigated separately.
🎯 Summary
PIMS-288
This is a follow up PR to the original PIMS-288 #1917
Feedback from PO was that parcel details should only update when using the dropped marker, not just when in edit mode.
Current Status
I have it back in the original state before PR #1460, where I think this issue started.This means that only the lat and long update with the marker, but fields aren't auto-populated.
The drop pin seems to be working with the parcels. Info only changes when using the pin, not otherwise.With buildings, there's an issue where using the drop pin picks up the info from the previous click. Not sure where it's being set or how to track it down.
Issue with buildings fixed. It was setting the namespace to undefined before the location was called. One more reason to move away from this giant formik state in the future.
Changes
The pins in the sidemenu for buildings and for parcels now update the location and some details of the properties only when picked up and dropped.
I ended up making a universal pin component. There actually used to be one, but it was taken out at some point.
Testing
There are three places these pins exist:
Issues
Two things I would like to fix, but haven't figured out how:
TODO
Make fields populate on click, but only when dropping the marker pin.Marker pin should work the same on both LandForm and BuildingFormFix bug where building pin jumps to previous click, not current click.Consolidate drop pins into a uniform component.Removedstyled-components
elements.Update text for user.Add tests for coverage🔰 Checklist