Repository navigation
fix(search): Don't call an environment unknown when the search returns rows in it - #2911
Draft
sentry-junior[bot] wants to merge 1 commit into
Draft
sentry-junior[bot] wants to merge 1 commit into
sentry-junior[bot] wants to merge 1 commit into
Conversation
…s rows in it Sentry's environment list only holds environments that its own processing paths record (errors, transactions, spans, crons, feedback), so an environment seen only on logs is missing from it. Search tools then warned that the environment doesn't exist while returning rows in it. Add the unknown-environment note only when the search returned nothing. Fixes #2910
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
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.
Search tools add a "Requested environment not found in this organization" note whenever a requested environment is missing from
GET /organizations/{org}/environments/. That list isn't a full record of environments with data: Sentry only createsEnvironmentProjectrows from its own processing paths (errors, transactions, span segments, crons, feedback, deploys), and leaves out hidden environments by default. An environment seen only on logs is never listed, sosearch_logsreturned production rows and, in the same response, saidproductiondoesn't exist.The note is now added only when the search returned nothing. Rows that match prove the environment exists. Empty results keep the note, so typos are still caught.
Fixes #2910
via automation
evt_905b9c478746fd9deeb853f85ad7441b· Run IDdispatch_0802c12f60839dcdc11d1bae749f3464.--
View Session [Sentry]