seasketch / next

A modernization version of the SeaSketch platform, released in 2022.
https://seasketch.org
BSD 3-Clause "New" or "Revised" License
7 stars 0 forks source link

Collection reports don't always update when new sketches are added in FSM project #539

Closed wmcclin closed 1 year ago

wmcclin commented 1 year ago

This needs more testing but this morning I created a network with 5 shapes, ran a report, then added another shape and re-ran the report. The size report didn't appear to update with the additional shape. I then changed the name of the collection (adding "v2) and the size report updated.

Screenshot 2023-01-25 at 12 03 21 PM

Collection added to Admin forum.

underbluewaters commented 1 year ago

This is a tricky one. SeaSketch needs to send an accurate updatedAt date when requesting new reports so that the stale caches are avoided. This means keeping the collection metadata up to date when child sketches are modified. I've handled this correctly when a user edits a sketch that is part of a collection, but there are a whole lot of other cases to handle.

That's a lot to cover. Working on this now.