Skip to content

Commit

Permalink
fix: run build in hasura/ to create new tables (#1020)
Browse files Browse the repository at this point in the history
* Also fixed the path in the GitHub workflow for deploys
  • Loading branch information
ryscheng authored Mar 11, 2024
1 parent d35b31f commit 0cf1dc0
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-hasura.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
branches:
- main
paths:
- hasura/**
- apps/hasura/**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
table:
name: code_metrics_by_collection
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: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
table:
name: code_metrics_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: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
table:
name: onchain_metrics_by_collection
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: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
table:
name: onchain_metrics_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: ""
8 changes: 4 additions & 4 deletions apps/hasura/metadata/databases/cloudsql/tables/tables.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
- "!include onchain_metrics_by_collection_arbitrum.yaml"
- "!include onchain_metrics_by_project_arbitrum.yaml"
- "!include github_metrics_by_collection.yaml"
- "!include github_metrics_by_project.yaml"
- "!include onchain_metrics_by_collection.yaml"
- "!include onchain_metrics_by_project.yaml"
- "!include event_types.yaml"
- "!include first_contribution_to_project.yaml"
- "!include last_contribution_to_project.yaml"
Expand Down Expand Up @@ -29,3 +27,5 @@
- "!include collections.yaml"
- "!include projects.yaml"
- "!include projects_by_collection.yaml"
- "!include code_metrics_by_collection.yaml"
- "!include code_metrics_by_project.yaml"

0 comments on commit 0cf1dc0

Please sign in to comment.