Open ms0ur1s opened 1 year ago
Tested on a previous branch #228, following the same process with similar results.
I wanted to recreate the previous conditions as faithfully as possible, so I closed the browser window after creating the first map and polygons, as before. I will perform another test without this step and perhaps repeat that using a regular browser window (not incognito).
Performed a further test without closing the browser mid session. On this occasion I was able to:
Conclusion If it wasn't obvious before, there seems a clear correlation between the bleed through of polygons between maps and the erroring and inability to edit polygons native to maps suffering from bleed through. It is also possible that there is a data leak between maps even when no polygons exist, which may or may not cause polygons to error when attempting to edit.
Proposed Resolution Ensure previous map data is cleared when switching between maps.
Map 1's polygons visible on Map 2
Map 1's polygons visible on Map 3
Map 1's polygons no longer visible on Map 2
That's what I thought, so I tried it on the #228 branch where I fixed this problem, but I received the same results as above. #228 relates more to data leaking between sessions after logging out and between different accounts using the same browser, whereas the above relates to data leaking between maps within the same account, regardless of session.
So similar but different. And it feels like it requires a similar fix but in different context.
Great! Nice find :)
I’ve encountered this error locally and on staging. It is not present on live. My first thought was that I’d introduced it while working on my current issue, #230, but found it intermittently appearing on staging. Still attempting to map out the steps to recreate. When thrown this error prevents the selected polygon from being edited.
The account I used for the tests below is virgin, has never been used locally and is only being used on staging via incognito.
Testing process
featureId errors
Private Zenhub Image
Private Zenhub Image
Private Zenhub Image
Polygon from third map visible on Map 2
Private Zenhub Image
Polygon from third map made selectable on Map 2
Polygon from third map being edited on Map 2
Private Zenhub Image