NASA-IMPACT / veda-ui

Frontend for the Dashboard Evolution project
Other
22 stars 5 forks source link

[Bug] AOI visualization disappears when map recenters in E&A #1093

Open aboydnw opened 3 months ago

aboydnw commented 3 months ago

Context

From @sandrahoang686 's initial investigation:

in veda-ui, before we were using deprecated staging endpoints (aka delta-backend.com) this has been updated to the new staging openveda endpoint. But before in veda-ui, actually the layer visualization wasn't working so you were able to see the AOI. After updating to the new staging endpoint, veda-ui preview layers visualization is now working.

URL:

Blocking a release? (y/n): n

Regression issue? (y/n): y [If yes, add Regression label]

Priority: P2

Steps to reproduce the issue

  1. Select some layers for visualization in E&A
  2. Using the pen tool, draw an AOI that is relatively small for the current zoom level
  3. Click Run Analysis
  4. Upon map recenter, you should not see the AOI drawn on the map anymore, although it still exists and is selected
  5. If you can still see the AOI drawn on the map, try some other combination of AOI size and zoom level. Anecdotally, I can recreate this ~70% of the time

https://www.loom.com/share/39b8d68a331443629d86910f72272614?sid=20d4ea43-5a7a-48aa-bbe9-36b51489f2d7

aboydnw commented 2 months ago

similar to #949

AliceR commented 5 days ago

I faced the same issue with these steps:

  1. load exploration page from fresh start
  2. draw big area, leave in selected mode
  3. click run analysis
  4. -> drawn area disappears from map
  5. click pen or anywhere on the map
  6. -> new area appears
Screenshot 2024-11-04 at 11 17 47 Screenshot 2024-11-04 at 11 17 58 Screenshot 2024-11-04 at 11 19 01

Alternatively, in case the area remained:

  1. draw another area next to it
  2. click apply
  3. -> new area disappears, old area is being displayed as selected
  4. click pen or anywhere on the map
  5. -> new area appears

And finally, to add some more buggy state issues:

  1. load exploration page from fresh start
  2. draw and analyze some areas
  3. delete all areas
  4. draw new area, leave in selected mode
  5. click apply
  6. -> old areas appear instead of new one! (expected: new area remains)
  7. click pen or anywhere on the map
  8. -> new area appears
  9. click anywhere again
  10. -> old area disappears