File tree 1 file changed +7
-8
lines changed
src/sentry/incidents/endpoints/serializers
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -46,17 +46,16 @@ def get_attrs(
46
46
]
47
47
).values_list ("id" , flat = True )
48
48
)
49
- workflow_ids = Subquery (
50
- DetectorWorkflow .objects .filter (detector__in = detector_ids ).values_list (
51
- "workflow_id" , flat = True
49
+ workflow_dcg_ids = DataConditionGroup .objects .filter (
50
+ workflowdataconditiongroup__workflow__in = Subquery (
51
+ DetectorWorkflow .objects .filter (detector__in = detector_ids ).values_list (
52
+ "workflow_id" , flat = True
53
+ )
52
54
)
53
- )
54
- workflow_dcgs = DataConditionGroup .objects .filter (
55
- workflowdataconditiongroup__workflow__in = workflow_ids
56
- )
55
+ ).values_list ("id" , flat = True )
57
56
action_filter_data_condition_groups = DataCondition .objects .filter (
58
57
comparison__in = [item .condition_result for item in item_list ],
59
- condition_group__in = workflow_dcgs ,
58
+ condition_group__in = Subquery ( workflow_dcg_ids ) ,
60
59
).values_list ("condition_group" , flat = True )
61
60
62
61
action_filter_data_condition_group_action_ids = DataConditionGroupAction .objects .filter (
You can’t perform that action at this time.
0 commit comments