Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new column and metric filter (Don't merge me) #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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