Skip to content

Commit

Permalink
Bug fixes for frontend build (#1189)
Browse files Browse the repository at this point in the history
* Add Google Project ID

* Fix code_metrics_by_collection
  • Loading branch information
ravenac95 authored Apr 5, 2024
1 parent 040467b commit 89dff35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-hasura.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ env:
HASURA_GRAPHQL_ENDPOINT: ${{ vars.HASURA_GRAPHQL_ENDPOINT }}
HASURA_GRAPHQL_DATABASE_URL: ${{ secrets.HASURA_GRAPHQL_DATABASE_URL }}
GOOGLE_CREDENTIALS_JSON: ${{ vars.GOOGLE_TEST_DUMMY_CREDENTIALS_JSON }}
GOOGLE_PROJECT_ID: opensource-observer

# Trigger the workflow when:
on:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ collection_contributors AS (
DISTINCT CASE
WHEN
d.bucket_month
>= DATE_SUB(CURRENT_DATE(), INTERVAL 6 MONTH)
>= CAST(DATE_SUB(CURRENT_DATE(), INTERVAL 6 MONTH) AS TIMESTAMP)
THEN d.from_id
END
) AS contributors_6_months,
COUNT(
DISTINCT CASE
WHEN
d.bucket_month
>= DATE_SUB(CURRENT_DATE(), INTERVAL 6 MONTH)
>= CAST(DATE_SUB(CURRENT_DATE(), INTERVAL 6 MONTH) AS TIMESTAMP)
AND d.user_segment_type = 'FULL_TIME_DEV'
THEN CONCAT(d.from_id, '_', d.bucket_month)
END
Expand All @@ -91,7 +91,7 @@ collection_contributors AS (
DISTINCT CASE
WHEN
d.bucket_month
>= DATE_SUB(CURRENT_DATE(), INTERVAL 6 MONTH)
>= CAST(DATE_SUB(CURRENT_DATE(), INTERVAL 6 MONTH) AS TIMESTAMP)
AND d.user_segment_type IN ('FULL_TIME_DEV', 'PART_TIME_DEV')
THEN CONCAT(d.from_id, '_', d.bucket_month)
END
Expand All @@ -101,7 +101,7 @@ collection_contributors AS (
DISTINCT CASE
WHEN
d.first_contribution_date
>= DATE_SUB(CURRENT_DATE(), INTERVAL 6 MONTH)
>= CAST(DATE_SUB(CURRENT_DATE(), INTERVAL 6 MONTH) AS TIMESTAMP)
THEN d.from_id
END
) AS new_contributors_6_months
Expand Down

0 comments on commit 89dff35

Please sign in to comment.