From f24660083370d903c12e5829b38826dcbdd10025 Mon Sep 17 00:00:00 2001 From: V Date: Wed, 2 Oct 2024 15:49:08 -0700 Subject: [PATCH] fix(reports): changes report evaluations for MTC from regional to sub-feed instead --- .../fct_daily_organization_combined_guideline_checks.sql | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/warehouse/models/mart/gtfs_quality/fct_daily_organization_combined_guideline_checks.sql b/warehouse/models/mart/gtfs_quality/fct_daily_organization_combined_guideline_checks.sql index 8dc0158ef8..0f4c89d993 100644 --- a/warehouse/models/mart/gtfs_quality/fct_daily_organization_combined_guideline_checks.sql +++ b/warehouse/models/mart/gtfs_quality/fct_daily_organization_combined_guideline_checks.sql @@ -3,7 +3,12 @@ WITH int_gtfs_quality__guideline_checks_long AS ( SELECT * FROM {{ ref('int_gtfs_quality__guideline_checks_long') }} - WHERE organization_key IS NOT NULL AND public_customer_facing_fixed_route + WHERE organization_key IS NOT NULL + AND ( + (use_subfeed_for_reports AND public_customer_facing_or_regional_subfeed_fixed_route) + OR + (NOT use_subfeed_for_reports AND public_customer_facing_fixed_route) + ) ), fct_daily_organization_combined_guideline_checks AS (