Skip to content

Commit

Permalink
Add a new column and metric filter
Browse files Browse the repository at this point in the history
Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io>
Co-authored-by: Timothy Lee <ctiml@infuseai.io>
  • Loading branch information
wcchang1115 and ctiml committed Sep 7, 2023
1 parent c04e4a0 commit b7e28e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions models/marts/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ metrics:
label: Active authors
type_params:
measure: active_authors
filter: |
{{ Dimension('repo__author') }} != 'github-actions[bot]'
3 changes: 2 additions & 1 deletion models/staging/stg_commits.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ renamed as (
email,
message,
date as datetime,
raw_date
raw_date,
concat('UTC', substr(raw_date, 20)) as utc_offset
from source

)
Expand Down

0 comments on commit b7e28e1

Please sign in to comment.