Repository navigation
fix(plugin-api): Coerce legacy source visibility on read - #1266
Closed
sentry-junior[bot] wants to merge 4 commits into
Closed
sentry-junior[bot] wants to merge 4 commits into
sentry-junior[bot] wants to merge 4 commits into
Conversation
#1183 hard-cut Source.type to Source.visibility and migrated SQL rows, but Redis-backed turn session summaries still hold type: pub|priv. Parsing those records failed schema validation, skipped session recovery, and left poisoned conversations in an unbounded lost-lease loop. Coerce the legacy shape inside sourceSchema at read time so every consumer of persisted sources upgrades without a state rewrite. Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The previous run failed while resolving action download info (Service Unavailable), not on product code. Empty commit to re-run CI.
Document the Redis TTL window this path covers and add a versioned removal TODO so the compatibility branch does not become permanent. Co-Authored-By: David Cramer <[email protected]>
dcramer
marked this pull request as ready for review
August 6, 2026 15:54
Prior runs failed while resolving action download info (Service Unavailable / runner acquisition). Empty commit to re-run CI. Co-Authored-By: David Cramer <[email protected]>
This branch was successfully deployed
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.
Temporary read-time upgrade for pre-#1183 Redis sources still using
type: "pub" | "priv".SQL already migrated conversation
source_json. Turn-session summaries and other state-adapter records keep the old field until the 7-day thread-state TTL expires, so strictsourceSchemaparsing skipped recovery and poisoned conversations looped onTurnInputCommitLostError.Temporary compatibility
sourceSchemacoerces legacytypeto canonicalvisibilitybefore validation. Canonicalvisibilitystill wins when both fields are present. This is intentionally not a permanent dual contract: the code hasTODO(v0.140.0)to remove the path after deploy + TTL, or earlier if turn sessions leave Redis.Does not change the SQL/redis storage split, and does not yet stop unbounded lost-lease requeue for other deterministic history divergence.
Refs #1183