Repository navigation
Conversation
…ey keeps reporting to it The owner merged Glyco's two apps (the one with the live site's data and the one the plan was bought on) and asked that the key of the app that went away keep working. app_keys maps an extra key to an app's own key; ingest resolves the batch's token to the app's own key (canonicalToken, cached like knownToken was) before observe-only, aggregation, export and forwarding; the raw R2 batch keeps the key the page sent. An app's own key always wins; deleting the app deletes its extra keys. No route writes the table yet (README: Extra keys). Also fixes createProject's cache entry to the new shape. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been 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.
An app can now have extra keys. The owner merged the paying customer Glyco's two apps (the one his live site reports to and the one his plan was bought on) and asked that the key of the app that went away keep reporting into the merged app.
app_keys (token, project_token, created).canonicalToken, cached likeknownTokenwas: 5 min for a known key, 30 s for an unknown one). It does this before the observe-only check, aggregation, the export index and forwarding, so an extra key's batches count on the app. The raw batch in R2 keeps the key the page sent.createProjectnow writes its cache entry in the new shape.Checks:
test/app-keys.test.ts(3 tests) and a strict worker typecheck pass. The whole collector suite passes too, exceptindex.test.ts"a client that goes away cannot cancel ingest".🤖 Generated with Claude Code