8000 Exclude merged events from MCP discovery and snapshots by alcylu · Pull Request #16 · alcylu/nightlife-mcp · GitHub
[go: up one dir, main page]

Skip to content

Exclude merged events from MCP discovery and snapshots - #16

Merged
alcylu merged 1 commit into
mainfrom
fix/canonical-event-readers-20261116
Nov 15, 2026
Merged

alcylu merged 1 commit into
mainfrom
fix/canonical-event-readers-20261116

Conversation

@alcylu
@alcylu alcylu commented Nov 15, 2026
Copy link
Copy Markdown
Owner

A merged event can remain marked published in legacy data. MCP discovery currently checks only publication, allowing that archived record to appear in results, consume a page slot or supply venue-opening/event-name context.

Require merged_into_id IS NULL alongside publication in all eleven occurrence queries: normal/genre event searches, direct details, venue search/fuzzy/detail, performer search/detail, recommendations and VIP event context. Filter in the database before ordering and pagination. A direct merged ID retains the existing not-found result; no automatic alias or response shape changes.

Validation: all 163 offline tests pass and the production TypeScript build passes. Four new regressions execute the actual services with the real Supabase client and an entirely offline REST transport. They cover a published archive before a one-result page, direct archive/draft/live lookup, every query branch including genre batches/fuzzy venues, and archive-versus-live VIP open-date context. The same tests fail against the previous reader code. Existing series and pricing stubs support the added query method without removing assertions.

No migration, data mutation, role/quota/credential change, provider request, ingestion job or spending change. Existing booking/pricing/operating-hours rules remain unchanged; archived occurrences no longer stand in for live events. This is part of the canonical-reader validation needed for recoverable duplicate review in Admin #730, and does not release that separate draft.

@alcylu
alcylu merged commit 894a0f8 into main Nov 15, 2026
2 checks passed
@alcylu
alcylu deleted the fix/canonical-event-readers-20261116 branch November 15, 2026 20:04
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

0