Repository navigation
Exclude merged events from MCP discovery and snapshots - #16
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 NULLalongside 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.