Repository navigation
fix(workflow_engine): Match no detectors for my_teams when the caller has no teams - #129608
Merged
gricha merged 1 commit intoNov 4, 2026
Merged
Conversation
gricha
force-pushed
the
fix/detector-my-teams-no-teams
branch
from
November 3, 2026 00:27
32f6865 to
9a4a5b8
Compare
Contributor
Sentry Snapshot Testing
|
cvxluo
approved these changes
Nov 3, 2026
gricha
force-pushed
the
fix/detector-my-teams-no-teams
branch
from
November 3, 2026 00:34
9a4a5b8 to
cffa64c
Compare
gricha
force-pushed
the
fix/detector-my-teams-no-teams
branch
from
November 3, 2026 04:03
cffa64c to
4dd60b4
Compare
gricha
force-pushed
the
fix/detector-my-teams-no-teams
branch
from
November 3, 2026 04:41
4dd60b4 to
042bfb6
Compare
gricha
force-pushed
the
fix/detector-my-teams-no-teams
branch
from
November 3, 2026 19:53
042bfb6 to
ae51908
Compare
gricha
force-pushed
the
fix/detector-my-teams-no-teams
branch
2 times, most recently
from
November 3, 2026 20:09
6ff27cd to
2da7f25
Compare
azulus
approved these changes
Nov 3, 2026
gricha
force-pushed
the
fix/detector-my-teams-no-teams
branch
3 times, most recently
from
November 3, 2026 23:19
c065a3a to
6fe85ad
Compare
… has no teams assignee:my_teams ORed nothing onto Q() for a caller on no teams, and filter(Q()) matches every detector. Return Q(pk__in=[]) instead, as #129424 did for issue search.
gricha
force-pushed
the
fix/detector-my-teams-no-teams
branch
from
November 4, 2026 00:44
6fe85ad to
dc6e44d
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 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.
assignee:my_teamson the detector list returned every detector when the caller is on no teams.convert_assignee_valuesORs oneQper resolved actor onto an emptyQ().my_teamsresolves to no actors for a member with no teams, so the result staysQ(), andfilter(Q())matches every row. #129424 fixed the same thing for issue search; this does it for detectors. Negation is unchanged:exclude(Q(pk__in=[]))still keeps every row. The test checks!assignee:my_teamsstill returns all three detectors.test_query_by_assignee_my_teams_without_teamsfails without the fix, returning all 3 detectors (one owned by a team the caller isn't on, two unowned):With it, the file passes:
102 passed, 7 subtests passed. An emptyvalueslist (not reachable from the endpoint) now matches nothing instead of everything; its unit test is updated.