fix(ACI): Update detector to be monitor for the UI in issue search#114819
fix(ACI): Update detector to be monitor for the UI in issue search#114819saponifi3d wants to merge 2 commits intomasterfrom
detector to be monitor for the UI in issue search#114819Conversation
| @@ -587,9 +587,6 @@ def _get_queryset_conditions( | |||
| "regressed_in_release": QCallbackCondition( | |||
| functools.partial(regressed_in_release_filter, projects=projects) | |||
There was a problem hiding this comment.
Bug: Removing the detector search filter alias breaks UI components and user-saved searches that still rely on it, causing them to return empty results.
Severity: HIGH
Suggested Fix
Reinstate the detector search alias to maintain backward compatibility. Alternatively, update all locations that use the detector: keyword, including UI components like ongoingIssues.tsx, and create a data migration to update existing SavedSearches and AlertRules to use the new query format.
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.
Location: src/sentry/search/snuba/backend.py#L588
Potential issue: The removal of the `detector` search filter alias will break existing
functionality that relies on it. Specifically, UI components like `ongoingIssues.tsx`
and `openPeriodIssues.tsx` contain hardcoded queries such as `is:unresolved
detector:${detector.id}`. With the alias removed, these queries will be interpreted as a
search for a tag named `detector`, which will not match any issues, causing these
components to display no results. This change also breaks existing user-created
`SavedSearches` and `AlertRules` that use the `detector:` keyword, causing them to fail
silently.
Did we get this right? 👍 / 👎 to inform future reviews.
There was a problem hiding this comment.
User-saved searches will fail, but this is before launch so we should reduce issues there. We are safe from the UI failing by breaking this work into many PRs.
9bbf802 to
0f7123e
Compare
…been safely rolled out
fa9babc to
d7470e3
Compare
Backend Test FailuresFailures on
|
Description
Last phase of the rename / cleanup; this will remove the legacy references to detector and only support monitor.