Skip to content

Merge pull request #827 from WebJamApps/feature/venue-crud-api-819 feat(venue): venue collection + CRUD REST API (#819)#828

Merged
JoshuaVSherman merged 4 commits into
mainfrom
dev
Jun 19, 2026
Merged

Merge pull request #827 from WebJamApps/feature/venue-crud-api-819 feat(venue): venue collection + CRUD REST API (#819)#828
JoshuaVSherman merged 4 commits into
mainfrom
dev

Conversation

@JoshuaVSherman

Copy link
Copy Markdown
Contributor

No description provided.

JoshuaVSherman and others added 4 commits June 19, 2026 10:53
Mongo becomes the master store for booking venues. Adds the Venue
collection in web-jam-back's own DB, with gated CRUD at /venue:

- privilege-first authorization (venue:create/edit/delete on the shared
  web-jam-llm AI-agent identity; admin-role fallback). No venue:read cap
  per the repo convention — reads require any venue write cap or admin.
- create-time upsert/dedupe on a natural key (email, else name+city) so
  agents that re-add a known venue update it instead of duplicating.
- DELETE is a soft-delete (status: archived), never a hard remove.
- GET /venue?eligibleFor=<date> applies the ±2-month clear-window rule
  against the gig calendar (cross-DB read via gigModel).
- each write stamps the acting agent in lastModifiedBy (actor field).

21 unit tests; typecheck + lint clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
App stays on Node 24.17.0 (engines/.nvmrc); only the CI image is held
back because cimg/node:24.17-browsers is not yet published.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
feat(venue): venue collection + CRUD REST API (#819)
@JoshuaVSherman JoshuaVSherman merged commit ee06ae0 into main Jun 19, 2026
2 checks 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.

1 participant