From b4661cc8634b22d6420741affc1d0201990ce155 Mon Sep 17 00:00:00 2001 From: dejafait <10533583+dejafait@users.noreply.github.com> Date: Mon, 13 Jan 2025 15:08:07 +0100 Subject: [PATCH] fix snapshots --- tests/www/search/__snapshots__/tests.ambr | 24 +++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/tests/www/search/__snapshots__/tests.ambr b/tests/www/search/__snapshots__/tests.ambr index 997b2d5428..e2d42f0dea 100644 --- a/tests/www/search/__snapshots__/tests.ambr +++ b/tests/www/search/__snapshots__/tests.ambr @@ -917,10 +917,12 @@ "companies_jobdescription"."field_history", "companies_jobdescription"."creation_source", COUNT("job_applications_jobapplication_selected_jobs"."jobapplication_id") FILTER ( - WHERE "job_applications_jobapplication"."state" IN (%s, %s, %s)) AS "job_applications_count", + WHERE ("job_applications_jobapplication"."archived_at" IS NULL + AND "job_applications_jobapplication"."state" IN (%s, %s, %s))) AS "job_applications_count", CASE WHEN COUNT("job_applications_jobapplication_selected_jobs"."jobapplication_id") FILTER ( - WHERE ("job_applications_jobapplication"."state" IN (%s, %s, %s))) >= %s THEN %s + WHERE ("job_applications_jobapplication"."archived_at" IS NULL + AND "job_applications_jobapplication"."state" IN (%s, %s, %s))) >= %s THEN %s ELSE %s END AS "is_popular", "jobs_appellation"."updated_at", @@ -1302,10 +1304,12 @@ "companies_jobdescription"."field_history", "companies_jobdescription"."creation_source", COUNT("job_applications_jobapplication_selected_jobs"."jobapplication_id") FILTER ( - WHERE "job_applications_jobapplication"."state" IN (%s, %s, %s)) AS "job_applications_count", + WHERE ("job_applications_jobapplication"."archived_at" IS NULL + AND "job_applications_jobapplication"."state" IN (%s, %s, %s))) AS "job_applications_count", CASE WHEN COUNT("job_applications_jobapplication_selected_jobs"."jobapplication_id") FILTER ( - WHERE ("job_applications_jobapplication"."state" IN (%s, %s, %s))) >= %s THEN %s + WHERE ("job_applications_jobapplication"."archived_at" IS NULL + AND "job_applications_jobapplication"."state" IN (%s, %s, %s))) >= %s THEN %s ELSE %s END AS "is_popular", "jobs_appellation"."updated_at", @@ -1688,10 +1692,12 @@ "companies_jobdescription"."field_history", "companies_jobdescription"."creation_source", COUNT("job_applications_jobapplication_selected_jobs"."jobapplication_id") FILTER ( - WHERE "job_applications_jobapplication"."state" IN (%s, %s, %s)) AS "job_applications_count", + WHERE ("job_applications_jobapplication"."archived_at" IS NULL + AND "job_applications_jobapplication"."state" IN (%s, %s, %s))) AS "job_applications_count", CASE WHEN COUNT("job_applications_jobapplication_selected_jobs"."jobapplication_id") FILTER ( - WHERE ("job_applications_jobapplication"."state" IN (%s, %s, %s))) >= %s THEN %s + WHERE ("job_applications_jobapplication"."archived_at" IS NULL + AND "job_applications_jobapplication"."state" IN (%s, %s, %s))) >= %s THEN %s ELSE %s END AS "is_popular", "jobs_appellation"."updated_at", @@ -2073,10 +2079,12 @@ "companies_jobdescription"."field_history", "companies_jobdescription"."creation_source", COUNT("job_applications_jobapplication_selected_jobs"."jobapplication_id") FILTER ( - WHERE "job_applications_jobapplication"."state" IN (%s, %s, %s)) AS "job_applications_count", + WHERE ("job_applications_jobapplication"."archived_at" IS NULL + AND "job_applications_jobapplication"."state" IN (%s, %s, %s))) AS "job_applications_count", CASE WHEN COUNT("job_applications_jobapplication_selected_jobs"."jobapplication_id") FILTER ( - WHERE ("job_applications_jobapplication"."state" IN (%s, %s, %s))) >= %s THEN %s + WHERE ("job_applications_jobapplication"."archived_at" IS NULL + AND "job_applications_jobapplication"."state" IN (%s, %s, %s))) >= %s THEN %s ELSE %s END AS "is_popular", "jobs_appellation"."updated_at",