From ca3fc4add9b1d26b868db18c7629073cf8a216d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oriol=20Roqu=C3=A9=20Paniagua?= Date: Fri, 16 May 2025 10:06:08 +0000 Subject: [PATCH] Merged PR 5234: Remove 2 fields that no longer exist # Description Removes 2 fields that no longer exist in the backend. Needed to do since I need to bring another table to sync_core. No PBI dependencies found. Fields are: * flag_as_problem in SH User * autonavigate in VerificationSet # Checklist - [X] The edited models and dependants run properly with production data. - [ ] The edited models are sufficiently documented. - [X] The edited models contain PK tests, and I've ran and passed them. - [ ] I have checked for DRY opportunities with other models and docs. - [ ] I've picked the right materialization for the affected models. # Other - [X] Check if a full-refresh is required after this PR is merged. Related work items: #30229 --- models/intermediate/core/int_core__unified_user.sql | 1 - models/intermediate/core/schema.yml | 4 ---- models/reporting/core/core__unified_user.sql | 1 - models/reporting/core/schema.yml | 4 ---- models/staging/core/stg_core__superhog_user.sql | 1 - models/staging/core/stg_core__verification_set.sql | 1 - 6 files changed, 12 deletions(-) diff --git a/models/intermediate/core/int_core__unified_user.sql b/models/intermediate/core/int_core__unified_user.sql index f024d12..4277f27 100644 --- a/models/intermediate/core/int_core__unified_user.sql +++ b/models/intermediate/core/int_core__unified_user.sql @@ -42,7 +42,6 @@ select su.updated_date_utc, su.verified_at_utc, su.verified_date_utc, - su.flag_as_problem, su.number_of_properties, su.id_superhog_verified_set, su.id_user_verification_status, diff --git a/models/intermediate/core/schema.yml b/models/intermediate/core/schema.yml index 43e1866..6413906 100644 --- a/models/intermediate/core/schema.yml +++ b/models/intermediate/core/schema.yml @@ -288,10 +288,6 @@ models: - name: verified_date_utc data_type: date description: The date when the user was verified. - - name: flag_as_problem - data_type: boolean - description: | - True if the user has been flagged as a problem. False otherwise. - name: number_of_properties data_type: bigint description: | diff --git a/models/reporting/core/core__unified_user.sql b/models/reporting/core/core__unified_user.sql index 2bf04aa..ebdfc28 100644 --- a/models/reporting/core/core__unified_user.sql +++ b/models/reporting/core/core__unified_user.sql @@ -32,7 +32,6 @@ select updated_date_utc as updated_date_utc, verified_at_utc as verified_at_utc, verified_date_utc as verified_date_utc, - flag_as_problem as flag_as_problem, number_of_properties as number_of_properties, id_superhog_verified_set as id_superhog_verified_set, null as platform_comms_recipient, diff --git a/models/reporting/core/schema.yml b/models/reporting/core/schema.yml index 52462e7..40e4e37 100644 --- a/models/reporting/core/schema.yml +++ b/models/reporting/core/schema.yml @@ -590,10 +590,6 @@ models: data_type: date description: "" - - name: flag_as_problem - data_type: boolean - description: "" - - name: number_of_properties data_type: bigint description: "" diff --git a/models/staging/core/stg_core__superhog_user.sql b/models/staging/core/stg_core__superhog_user.sql index 1697f66..6c10d75 100644 --- a/models/staging/core/stg_core__superhog_user.sql +++ b/models/staging/core/stg_core__superhog_user.sql @@ -17,7 +17,6 @@ with date({{ adapter.quote("UpdatedDate") }}) as updated_date_utc, {{ adapter.quote("VerifiedDate") }} as verified_at_utc, cast({{ adapter.quote("VerifiedDate") }} as date) as verified_date_utc, - {{ adapter.quote("FlagAsProblem") }} as flag_as_problem, lower({{ adapter.quote("SuperhogUserId") }}) as id_superhoguser, {{ adapter.quote("NumberOfProperties") }} as number_of_properties, {{ adapter.quote("SuperhogVerifiedSetId") }} id_superhog_verified_set, diff --git a/models/staging/core/stg_core__verification_set.sql b/models/staging/core/stg_core__verification_set.sql index 4e9159f..aa1864f 100644 --- a/models/staging/core/stg_core__verification_set.sql +++ b/models/staging/core/stg_core__verification_set.sql @@ -7,7 +7,6 @@ with {{ adapter.quote("Version") }} as verification_set_version, {{ adapter.quote("AutoFill") }} as autofill, {{ adapter.quote("IsActive") }} as is_active, - {{ adapter.quote("AutoNavigate") }} as autonavigate, {{ adapter.quote("HidePassword") }} as hide_password, {{ adapter.quote("UserVerificationSetType") }} as user_verification_set_type,