-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Hasura to use dbt metadata (#1188)
* Call dbt from inside the hasura table meta generator * Update workflows
- Loading branch information
Showing
10 changed files
with
134 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,13 @@ jobs: | |
cd ops/external-prs && | ||
bash scripts/rotate-service-account.sh [email protected] bigquery-admin.json && | ||
pnpm tools refresh-gcp-credentials ${{ github.repository }} external-prs-app bigquery-admin.json GOOGLE_BQ_ADMIN_CREDENTIALS_JSON | ||
- name: Refresh credentials for the bigquery-admin user on the deploy environment | ||
shell: bash | ||
run: | | ||
cd ops/external-prs && | ||
bash scripts/rotate-service-account.sh [email protected] bigquery-admin.json && | ||
pnpm tools refresh-gcp-credentials ${{ github.repository }} deploy bigquery-admin.json GOOGLE_BQ_ADMIN_CREDENTIALS_JSON | ||
rebuild-docker-public-vars: | ||
name: rebuild-docker-public-vars | ||
|
2 changes: 1 addition & 1 deletion
2
...sql/tables/github_metrics_by_project.yaml → ...cloudsql/tables/deployers_by_project.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../tables/github_metrics_by_collection.yaml → ...udsql/tables/event_totals_by_project.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../onchain_metrics_by_project_arbitrum.yaml → ...abases/cloudsql/tables/pm_dev_months.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...chain_metrics_by_collection_arbitrum.yaml → ...ases/cloudsql/tables/pm_new_contribs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
apps/hasura/metadata/databases/cloudsql/tables/repos_by_project.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
table: | ||
name: repos_by_project | ||
schema: public | ||
select_permissions: | ||
- role: anonymous | ||
permission: | ||
columns: "*" | ||
filter: {} | ||
allow_aggregations: false | ||
comment: "" | ||
- role: user | ||
permission: | ||
columns: "*" | ||
filter: {} | ||
allow_aggregations: false | ||
comment: "" | ||
- role: developer | ||
permission: | ||
columns: "*" | ||
filter: {} | ||
allow_aggregations: true | ||
comment: "" |
49 changes: 27 additions & 22 deletions
49
apps/hasura/metadata/databases/cloudsql/tables/tables.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,36 @@ | ||
- "!include onchain_metrics_by_collection.yaml" | ||
- "!include onchain_metrics_by_project.yaml" | ||
- "!include artifacts.yaml" | ||
- "!include artifacts_by_project.yaml" | ||
- "!include code_metrics_by_collection.yaml" | ||
- "!include code_metrics_by_project.yaml" | ||
- "!include collections.yaml" | ||
- "!include deployers_by_project.yaml" | ||
- "!include event_totals_by_project.yaml" | ||
- "!include event_types.yaml" | ||
- "!include first_contribution_to_project.yaml" | ||
- "!include last_contribution_to_project.yaml" | ||
- "!include users_monthly_to_project.yaml" | ||
- "!include events_weekly_from_artifact.yaml" | ||
- "!include events_weekly_from_collection.yaml" | ||
- "!include events_weekly_from_project.yaml" | ||
- "!include events_weekly_to_artifact.yaml" | ||
- "!include events_weekly_to_collection.yaml" | ||
- "!include events_weekly_to_project.yaml" | ||
- "!include events_monthly_from_artifact.yaml" | ||
- "!include events_monthly_from_collection.yaml" | ||
- "!include events_monthly_from_project.yaml" | ||
- "!include events_monthly_to_artifact.yaml" | ||
- "!include events_monthly_to_collection.yaml" | ||
- "!include events_monthly_to_project.yaml" | ||
- "!include events_daily_from_artifact.yaml" | ||
- "!include events_daily_from_collection.yaml" | ||
- "!include events_daily_from_project.yaml" | ||
- "!include events_daily_to_artifact.yaml" | ||
- "!include events_daily_to_collection.yaml" | ||
- "!include events_daily_to_project.yaml" | ||
- "!include artifacts.yaml" | ||
- "!include artifacts_by_project.yaml" | ||
- "!include collections.yaml" | ||
- "!include events_monthly_from_artifact.yaml" | ||
- "!include events_monthly_from_collection.yaml" | ||
- "!include events_monthly_from_project.yaml" | ||
- "!include events_monthly_to_artifact.yaml" | ||
- "!include events_monthly_to_collection.yaml" | ||
- "!include events_monthly_to_project.yaml" | ||
- "!include events_weekly_from_artifact.yaml" | ||
- "!include events_weekly_from_collection.yaml" | ||
- "!include events_weekly_from_project.yaml" | ||
- "!include events_weekly_to_artifact.yaml" | ||
- "!include events_weekly_to_collection.yaml" | ||
- "!include events_weekly_to_project.yaml" | ||
- "!include first_contribution_to_project.yaml" | ||
- "!include last_contribution_to_project.yaml" | ||
- "!include onchain_metrics_by_collection.yaml" | ||
- "!include onchain_metrics_by_project.yaml" | ||
- "!include pm_dev_months.yaml" | ||
- "!include pm_new_contribs.yaml" | ||
- "!include projects.yaml" | ||
- "!include projects_by_collection.yaml" | ||
- "!include code_metrics_by_collection.yaml" | ||
- "!include code_metrics_by_project.yaml" | ||
- "!include repos_by_project.yaml" | ||
- "!include users_monthly_to_project.yaml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters