bcgov / BCHeritage

Branch level repository for documentation and product issues.
Apache License 2.0
4 stars 0 forks source link

Sandcastle RM Issue #1019

Closed emjohnst closed 1 month ago

emjohnst commented 1 month ago

In Test, Geometry for Sandcastle Resource is not displaying on the map. If the geometry doesn't display on the map it can't be selected for analysis of sites within or around its boundaries. Verified that sandcastle map overlay is turned on and still not displaying.

Example of Test Sandcastle resource: 2024-07-17 Translink Stations

Attached image of where sandscastle resource should display in search Attached image of editing sandcastle resource and what geometry should look like

Image Image

bferguso commented 1 month ago

This actually affected all resource models with permissions associated with them. Prior to Arches Core 7.6, MVT tiles were not cached on a user-by-user bases so the most restrictive permissions were always applied to them. To resolve this the following was done:

  1. Copied the MVT class back from 7.6 to our release
  2. Ignored the restrictions for superusers
  3. Added a management command to clear the MVT tile cache
  4. Added a management command to reset the resource instance permissions based on the business rules.

Right now the view is an all-or-nothing (ie - you either get everything for superusers or the anonymous limited view for the rest of the world). This should be corrected if/when local governments are given access.

Also - the temporary fix in the views/mvt_core.py file should be removed once we move to 7.6.x.

emjohnst commented 1 month ago

Done in test