-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c1cacd
commit 9aedb05
Showing
3 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
27 changes: 27 additions & 0 deletions
27
posthog/tasks/test/__snapshots__/test_stop_surveys_reached_target.ambr
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# serializer version: 1 | ||
# name: TestStopSurveysReachedTarget.test_stop_surveys_with_enough_responses | ||
''' | ||
|
||
SELECT JSONExtractString(properties, '$survey_id') as survey_id, | ||
count() | ||
FROM events | ||
WHERE event = 'survey sent' | ||
AND team_id = 2 | ||
AND timestamp >= '2021-12-29 20:00:00' | ||
AND survey_id in ['017e12ef-9c00-0000-8f06-7166eda03e1f', '017e12ef-9c00-0001-ddc8-81795e948930'] | ||
GROUP BY survey_id | ||
''' | ||
# --- | ||
# name: TestStopSurveysReachedTarget.test_stop_surveys_with_enough_responses.1 | ||
''' | ||
|
||
SELECT JSONExtractString(properties, '$survey_id') as survey_id, | ||
count() | ||
FROM events | ||
WHERE event = 'survey sent' | ||
AND team_id = 2 | ||
AND timestamp >= '2022-01-01 00:00:00' | ||
AND survey_id in ['017e12ef-9c00-0002-b9f3-4a4e9794e506'] | ||
GROUP BY survey_id | ||
''' | ||
# --- |
This file contains 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