The 'properties' and 'selectedProperties' in RelatedPropertiesReducer are stored in arrays. We regularly filter and search for polygon objects within these arrays by poly_id. This fix improves the efficiency of these operations by converting the arrays to objects, with poly_id as key.
We do the same for 'highlightedProperties' in LandOwnershipReducer too.
What should we test?
There isn't a specific thing to test, since this is a general change to how data is stored in Redux and nothing should change for the user.
Maybe just do a quick test by playing around with Backsearch and selecting/deselecting related properties. Also play around with some standard (non-backsearch) land ownership polygons too.
What? Why?
Closes #287
The 'properties' and 'selectedProperties' in RelatedPropertiesReducer are stored in arrays. We regularly filter and search for polygon objects within these arrays by poly_id. This fix improves the efficiency of these operations by converting the arrays to objects, with poly_id as key.
We do the same for 'highlightedProperties' in LandOwnershipReducer too.
What should we test?
There isn't a specific thing to test, since this is a general change to how data is stored in Redux and nothing should change for the user. Maybe just do a quick test by playing around with Backsearch and selecting/deselecting related properties. Also play around with some standard (non-backsearch) land ownership polygons too.
Release notes
Deployment notes
Documentation updates