Sentry: drop browser-injected script errors in the cloud app; one insert per adapter import - #839
Merged
Merged
Conversation
…ert per adapter import - Frontend: the same filter as the site. Chrome on iOS translating /login overflowed its own injected helper (frames at lines 191 and 425 of a 12-line document). Errors with a frame in our chunks, or without a stack, are still reported. Fixes ANYTHINGMCP-CLOUD-FRONTEND-9, ANYTHINGMCP-CLOUD-FRONTEND-A - Adapter import inserts its tools with one createMany instead of one insert per tool, falling back to one by one if the batch is refused. Fixes ANYTHINGMCP-CLOUD-BACKEND-5
keysersoft
force-pushed
the
keysersoft/sentry-noise-import-batch
branch
from
October 3, 2026 16:06
64ca151 to
417217b
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Open Sentry issues on 3 Oct, checked against the work in the other workspaces and open PRs (none covers them):
ANYTHINGMCP-CLOUD-FRONTEND-9, -A (+ -8): one session, Chrome on iOS 16.7 with a pt-BR locale on
/login, three errors in one second. The frames point at lines 191 and 425 of the document;/loginhas 12 lines and none of our chunks is on the stack: Chrome's injected translate helper. The browser SDK now drops errors with a stack and no frame in a.jsfile, exactly like the site does since anythingmcp-website#297. Frontend test intests/e2e/sentry-injected-scripts.spec.ts. FRONTEND-8 ("Error: La", no stack) cannot be told apart and stays reported.ANYTHINGMCP-CLOUD-BACKEND-5 (N+1,
POST /api/adapters/:slug/import): the import created each tool with its own INSERT (40-odd for Telegram Bot). Now onecreateMany({ skipDuplicates: true }); if the batch is refused, it inserts one by one as before so only a bad row is left out. Checked against a freshly migrated Postgres (null JSON columns, duplicate skipped,isEnabled: falsekept). Tests for the batch and the fallback; adapters suite passes.No overlap with #834 (it touches other hunks of adapters.service.ts).