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 Apr 25, 2023
1 parent a05ed6f commit 7ee304d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion models/marts/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,10 @@ metrics:
time_grains: [ day, week, month ]
dimensions: [ repo ]

filters:
- field: author
operator: '!='
value: "'github-actions[bot]'"

tags:
- piperider
- piperider
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 7ee304d

Please sign in to comment.