We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97ad971 commit 1cb8e67Copy full SHA for 1cb8e67
tests/sentry/incidents/subscription_processor/test_subscription_processor_base.py
@@ -160,7 +160,9 @@ def resolve_threshold(self):
160
161
def get_snuba_query(self, detector: Detector):
162
data_source_detector = DataSourceDetector.objects.get(detector=detector)
163
- query_subscription = QuerySubscription.objects.get(id=data_source_detector.data_source.source_id)
+ query_subscription = QuerySubscription.objects.get(
164
+ id=data_source_detector.data_source.source_id
165
+ )
166
snuba_query = SnubaQuery.objects.get(id=query_subscription.snuba_query.id)
167
return snuba_query
168
0 commit comments