From db19cfb5376858ca651916eed6c647896a449bc7 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 18 Sep 2023 10:51:30 +0000 Subject: [PATCH] Update query snapshots --- .../api/test/__snapshots__/test_decide.ambr | 37 ++++++++----------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/posthog/api/test/__snapshots__/test_decide.ambr b/posthog/api/test/__snapshots__/test_decide.ambr index ae9901067c7d01..1436d88d2876fc 100644 --- a/posthog/api/test/__snapshots__/test_decide.ambr +++ b/posthog/api/test/__snapshots__/test_decide.ambr @@ -124,6 +124,17 @@ ' --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.3 + ' + SELECT "posthog_instancesetting"."id", + "posthog_instancesetting"."key", + "posthog_instancesetting"."raw_value" + FROM "posthog_instancesetting" + WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' + ORDER BY "posthog_instancesetting"."id" ASC + LIMIT 1 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + ' +--- +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.4 ' SELECT (1) AS "a" FROM "posthog_grouptypemapping" @@ -131,7 +142,7 @@ LIMIT 1 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ ' --- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.4 +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.5 ' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", @@ -142,7 +153,7 @@ LIMIT 1 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ ' --- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.5 +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.6 ' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", @@ -153,7 +164,7 @@ LIMIT 1 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ ' --- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.6 +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.7 ' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", @@ -164,7 +175,7 @@ LIMIT 1 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ ' --- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.7 +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.8 ' SELECT "posthog_user"."id", "posthog_user"."password", @@ -193,7 +204,7 @@ LIMIT 21 ' --- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.8 +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.9 ' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", @@ -216,22 +227,6 @@ AND "posthog_featureflag"."team_id" = 2) ' --- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.9 - ' - SELECT "posthog_pluginconfig"."id", - "posthog_pluginconfig"."web_token", - "posthog_pluginsourcefile"."updated_at", - "posthog_plugin"."updated_at", - "posthog_pluginconfig"."updated_at" - FROM "posthog_pluginconfig" - INNER JOIN "posthog_plugin" ON ("posthog_pluginconfig"."plugin_id" = "posthog_plugin"."id") - INNER JOIN "posthog_pluginsourcefile" ON ("posthog_plugin"."id" = "posthog_pluginsourcefile"."plugin_id") - WHERE ("posthog_pluginconfig"."enabled" - AND "posthog_pluginsourcefile"."filename" = 'site.ts' - AND "posthog_pluginsourcefile"."status" = 'TRANSPILED' - AND "posthog_pluginconfig"."team_id" = 2) - ' ---- # name: TestDecide.test_flag_with_behavioural_cohorts ' SELECT "posthog_user"."id",