Commit a41492a
committed
fix(trace): Return no results when visible type IDs list is empty
When organization is provided but get_visible(organization) returns an empty list,
the code now returns no results by filtering with an impossible occurrence_type_id (-1),
instead of falling back to an unfiltered query that would return all occurrences.
This matches the behavior in src/sentry/issues/search.py which returns None when
no group types are visible.1 parent 61e5100 commit a41492a
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
338 | 340 | | |
339 | 341 | | |
340 | 342 | | |
| |||
0 commit comments