Skip to content

Consolidate tile rebuild pipeline#99

Merged
shaddi merged 2 commits into
mainfrom
exact-edit-reapply
Jun 10, 2026
Merged

Consolidate tile rebuild pipeline#99
shaddi merged 2 commits into
mainfrom
exact-edit-reapply

Conversation

@shaddi

@shaddi shaddi commented Jun 10, 2026

Copy link
Copy Markdown
Member

Two related changes to the tile update/edit/rebuild pipeline. First, we now preserve the exact BSLs edited at edit time rather than just capturing the edit polygon; this keeps later recomputes (e.g. after deleting an edit) from re-applying an edit more broadly than the user's original selection. Existing edits without stored selections keep the old polygon-based behavior. Second, the map update path (e.g., uploading new coverage files) now uses the same rebuild path as the edit flow, which serializes simultaneous rebuilds of a filing and reduces unnecessary rebuilds.

shaddi added 2 commits June 9, 2026 21:48
process_data (upload, import, delete-recompute, regenerate-map) built its
vector tiles inline, so its rebuilds could race the edit chain's
regenerate_tiles on the same folder. Its tile step now delegates to the
same per-folder lock + dirty-flag path: concurrent rebuilds of one folder
are single-flight, rapid changes coalesce into ~one rebuild, and a task
still returns only once the tiles cover its own change — so chain/taskinfo
semantics are unchanged for every caller.
An exclusion edit knows exactly which locations it excluded from which
coverage files, but only the drawn polygon was persisted. Any later
recompute (e.g. after deleting another editfile) therefore re-applied
edits geometrically — every point inside the polygon, for every linked
coverage — which is broader than the user's original picks: a
multi-coverage partial pick silently became a blanket exclusion.

Editfiles now store their markers (a JSON column, with an Alembic
migration), filing copies carry them over, and the recompute filter
applies marker-bearing editfiles exactly: only the marked locations, only
for the coverage files each pick names. Editfiles created before this
change have no markers and keep the geometric behavior, so existing
filings reproduce their current results unchanged.
@shaddi shaddi merged commit ccf137d into main Jun 10, 2026
3 checks passed
@shaddi shaddi deleted the exact-edit-reapply branch June 10, 2026 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant