Skip to content

Commit

Permalink
Adjust trusted user criteria
Browse files Browse the repository at this point in the history
Signed-off-by: Wei-Chun, Chang <[email protected]>
  • Loading branch information
wcchang1115 committed May 24, 2024
1 parent 9336f2f commit f76ec9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions warehouse/dbt/models/marts/superchain/rf4_trusted_users.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ with user_model as (
artifacts_by_user.user_source_id,
artifacts_by_user.artifact_name,
CAST(
true as string
true as bool
) as eigentrust_verification,
CAST(
passport_scores.evidence_rawscore
>= passport_scores.evidence_threshold as string
> passport_scores.evidence_threshold as bool
) as passport_verification
from {{ ref('int_artifacts_by_user') }} as artifacts_by_user
left join {{ ref('stg_passport__scores') }} as passport_scores
Expand All @@ -23,5 +23,5 @@ select
artifact_name
from user_model
where
passport_verification = "true"
or eigentrust_verification = "true"
passport_verification is true
or eigentrust_verification is true

0 comments on commit f76ec9b

Please sign in to comment.