-
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.
- GitHub action should specify DBT_TARGET - Add DBT_TARGET to .env and load .env - Generate new tables - genTables should throw errors, not swallow - Build should generate metadata to checkin
- Loading branch information
Showing
15 changed files
with
237 additions
and
30 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
HASURA_GRAPHQL_ADMIN_SECRET= | ||
HASURA_GRAPHQL_ENDPOINT=https://opensource-observer.hasura.app/ | ||
HASURA_GRAPHQL_DATABASE_URL=postgresql://user:password@host:port | ||
DBT_TARGET=production |
22 changes: 22 additions & 0 deletions
22
apps/hasura/metadata/databases/cloudsql/tables/artifacts_by_project_v1.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: artifacts_by_project_v1 | ||
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: "" |
22 changes: 22 additions & 0 deletions
22
apps/hasura/metadata/databases/cloudsql/tables/artifacts_v1.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: artifacts_v1 | ||
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: "" |
22 changes: 22 additions & 0 deletions
22
apps/hasura/metadata/databases/cloudsql/tables/code_metrics_by_project_v1.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: code_metrics_by_project_v1 | ||
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: "" |
22 changes: 22 additions & 0 deletions
22
apps/hasura/metadata/databases/cloudsql/tables/collections_v1.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: collections_v1 | ||
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: "" |
22 changes: 22 additions & 0 deletions
22
apps/hasura/metadata/databases/cloudsql/tables/event_indexing_status_by_project_v1.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: event_indexing_status_by_project_v1 | ||
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: "" |
22 changes: 22 additions & 0 deletions
22
apps/hasura/metadata/databases/cloudsql/tables/event_types_v1.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: event_types_v1 | ||
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: "" |
22 changes: 22 additions & 0 deletions
22
apps/hasura/metadata/databases/cloudsql/tables/onchain_metrics_by_project_v1.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: onchain_metrics_by_project_v1 | ||
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: "" |
22 changes: 22 additions & 0 deletions
22
apps/hasura/metadata/databases/cloudsql/tables/projects_by_collection_v1.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: projects_by_collection_v1 | ||
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: "" |
22 changes: 22 additions & 0 deletions
22
apps/hasura/metadata/databases/cloudsql/tables/projects_v1.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: projects_v1 | ||
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: "" |
37 changes: 10 additions & 27 deletions
37
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,36 +1,19 @@ | ||
- "!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 events_daily_from_artifact.yaml" | ||
- "!include events_daily_from_collection.yaml" | ||
- "!include events_daily_from_project.yaml" | ||
- "!include artifacts_by_project_v1.yaml" | ||
- "!include artifacts_v1.yaml" | ||
- "!include code_metrics_by_project_v1.yaml" | ||
- "!include collections_v1.yaml" | ||
- "!include event_indexing_status_by_project_v1.yaml" | ||
- "!include event_types_v1.yaml" | ||
- "!include events_daily_to_artifact.yaml" | ||
- "!include events_daily_to_collection.yaml" | ||
- "!include events_daily_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_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 repos_by_project.yaml" | ||
- "!include users_monthly_to_project.yaml" | ||
- "!include onchain_metrics_by_project_v1.yaml" | ||
- "!include projects_by_collection_v1.yaml" | ||
- "!include projects_v1.yaml" | ||
- "!include users_v1.yaml" |
22 changes: 22 additions & 0 deletions
22
apps/hasura/metadata/databases/cloudsql/tables/users_v1.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: users_v1 | ||
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: "" |
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