From 8b855613179709740c5c8d142386be989686d743 Mon Sep 17 00:00:00 2001 From: Raymond Cheng Date: Sat, 24 Feb 2024 08:17:19 -0800 Subject: [PATCH] feat: Adding new tables to API (#930) --- .../tables/github_metrics_by_collection.yaml | 22 +++++++++++++++++++ .../tables/github_metrics_by_project.yaml | 22 +++++++++++++++++++ ...nchain_metrics_by_collection_arbitrum.yaml | 22 +++++++++++++++++++ .../onchain_metrics_by_project_arbitrum.yaml | 22 +++++++++++++++++++ .../databases/cloudsql/tables/tables.yaml | 4 ++++ 5 files changed, 92 insertions(+) create mode 100644 hasura/metadata/databases/cloudsql/tables/github_metrics_by_collection.yaml create mode 100644 hasura/metadata/databases/cloudsql/tables/github_metrics_by_project.yaml create mode 100644 hasura/metadata/databases/cloudsql/tables/onchain_metrics_by_collection_arbitrum.yaml create mode 100644 hasura/metadata/databases/cloudsql/tables/onchain_metrics_by_project_arbitrum.yaml diff --git a/hasura/metadata/databases/cloudsql/tables/github_metrics_by_collection.yaml b/hasura/metadata/databases/cloudsql/tables/github_metrics_by_collection.yaml new file mode 100644 index 000000000..c251df5df --- /dev/null +++ b/hasura/metadata/databases/cloudsql/tables/github_metrics_by_collection.yaml @@ -0,0 +1,22 @@ +table: + name: github_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: "" diff --git a/hasura/metadata/databases/cloudsql/tables/github_metrics_by_project.yaml b/hasura/metadata/databases/cloudsql/tables/github_metrics_by_project.yaml new file mode 100644 index 000000000..4e7430793 --- /dev/null +++ b/hasura/metadata/databases/cloudsql/tables/github_metrics_by_project.yaml @@ -0,0 +1,22 @@ +table: + name: github_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: "" diff --git a/hasura/metadata/databases/cloudsql/tables/onchain_metrics_by_collection_arbitrum.yaml b/hasura/metadata/databases/cloudsql/tables/onchain_metrics_by_collection_arbitrum.yaml new file mode 100644 index 000000000..1bc2707fb --- /dev/null +++ b/hasura/metadata/databases/cloudsql/tables/onchain_metrics_by_collection_arbitrum.yaml @@ -0,0 +1,22 @@ +table: + name: onchain_metrics_by_collection_arbitrum + 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: "" diff --git a/hasura/metadata/databases/cloudsql/tables/onchain_metrics_by_project_arbitrum.yaml b/hasura/metadata/databases/cloudsql/tables/onchain_metrics_by_project_arbitrum.yaml new file mode 100644 index 000000000..73b38d2b0 --- /dev/null +++ b/hasura/metadata/databases/cloudsql/tables/onchain_metrics_by_project_arbitrum.yaml @@ -0,0 +1,22 @@ +table: + name: onchain_metrics_by_project_arbitrum + 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: "" diff --git a/hasura/metadata/databases/cloudsql/tables/tables.yaml b/hasura/metadata/databases/cloudsql/tables/tables.yaml index bc1503dd0..00cc298c3 100644 --- a/hasura/metadata/databases/cloudsql/tables/tables.yaml +++ b/hasura/metadata/databases/cloudsql/tables/tables.yaml @@ -1,3 +1,7 @@ +- "!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 event_types.yaml" - "!include first_contribution_to_project.yaml" - "!include last_contribution_to_project.yaml"