Skip to content

Map callbacks: public-render outcome, review queue, audit log; coarse-only anonymous listings - #4

Merged
mattiashem merged 1 commit into
masterfrom
spreading-compliance
Nov 12, 2026
Merged

mattiashem merged 1 commit into
masterfrom
spreading-compliance

Conversation

@mattiashem

Copy link
Copy Markdown
Contributor

Part of the spridningstillstånd rollout. Depends on dw migration 028, which is already applied in prod.

map-maker reports to this api (API_ENDPOINT=http://api:8080), so the publish outcome is handled here:

  • Publish result: stored only while publish_status = 'rendering', so a late result can't re-publish an unpublished map.
  • Review and audit: opens compliance_review rows and writes publication_audit rows (policy 5.7).
  • New callback actions: accepts partial (previously rejected), publicReady, publicRefused, unpublished and unpublishFailed.
  • Listings: anonymous GET /maps/ and POST /search/ only list maps with publish_status='public', show the coarse public_tilesurl as tilesurl, and drop mapdata and originfile.
  • Models are never listed publicly.
  • Raw mission pictures now need a token with membership in the mission's space.

🤖 Generated with Claude Code

- publish outcome applied only while publish_status = 'rendering';
  opens compliance_review rows, writes publication_audit rows
- accept partial/publicReady/publicRefused/unpublished/unpublishFailed
- anonymous /maps/ and /search/ only list public maps with the coarse URL
- models never public; raw mission pictures need space membership

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mattiashem
mattiashem merged commit 6d117d0 into master Nov 12, 2026
1 check passed
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.

2 participants