From c661cfed785486b46c85eb995c10b9a5606e5ecc Mon Sep 17 00:00:00 2001 From: Filip Djokic Date: Wed, 29 Jan 2025 12:54:25 +0100 Subject: [PATCH 1/2] fix: Track missing PG functions and update gov_params permissions --- hasura/metadata/databases/callisto/functions/functions.yaml | 3 ++- .../databases/callisto/functions/public_messages_by_type.yaml | 3 +++ .../metadata/databases/callisto/tables/public_gov_params.yaml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 hasura/metadata/databases/callisto/functions/public_messages_by_type.yaml diff --git a/hasura/metadata/databases/callisto/functions/functions.yaml b/hasura/metadata/databases/callisto/functions/functions.yaml index 34437fa28..2d4eef496 100644 --- a/hasura/metadata/databases/callisto/functions/functions.yaml +++ b/hasura/metadata/databases/callisto/functions/functions.yaml @@ -1 +1,2 @@ -- "!include public_messages_by_address.yaml" +- "include public_messages_by_address.yaml" +- "include public_messages_by_type.yaml" \ No newline at end of file diff --git a/hasura/metadata/databases/callisto/functions/public_messages_by_type.yaml b/hasura/metadata/databases/callisto/functions/public_messages_by_type.yaml new file mode 100644 index 000000000..000c8b31b --- /dev/null +++ b/hasura/metadata/databases/callisto/functions/public_messages_by_type.yaml @@ -0,0 +1,3 @@ +function: + name: messages_by_address + schema: public diff --git a/hasura/metadata/databases/callisto/tables/public_gov_params.yaml b/hasura/metadata/databases/callisto/tables/public_gov_params.yaml index 00078ded3..0f474fea7 100644 --- a/hasura/metadata/databases/callisto/tables/public_gov_params.yaml +++ b/hasura/metadata/databases/callisto/tables/public_gov_params.yaml @@ -6,6 +6,7 @@ select_permissions: allow_aggregations: false columns: - params + - one_row_id - height filter: {} limit: 1 From b3796724973a1eae0883577f329ae7e5a6da30dd Mon Sep 17 00:00:00 2001 From: Filip Djokic Date: Wed, 29 Jan 2025 14:03:58 +0100 Subject: [PATCH 2/2] Apply fixes --- hasura/metadata/databases/callisto/functions/functions.yaml | 4 ++-- .../databases/callisto/functions/public_messages_by_type.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hasura/metadata/databases/callisto/functions/functions.yaml b/hasura/metadata/databases/callisto/functions/functions.yaml index 2d4eef496..adf820c06 100644 --- a/hasura/metadata/databases/callisto/functions/functions.yaml +++ b/hasura/metadata/databases/callisto/functions/functions.yaml @@ -1,2 +1,2 @@ -- "include public_messages_by_address.yaml" -- "include public_messages_by_type.yaml" \ No newline at end of file +- "!include public_messages_by_address.yaml" +- "!include public_messages_by_type.yaml" diff --git a/hasura/metadata/databases/callisto/functions/public_messages_by_type.yaml b/hasura/metadata/databases/callisto/functions/public_messages_by_type.yaml index 000c8b31b..24a273185 100644 --- a/hasura/metadata/databases/callisto/functions/public_messages_by_type.yaml +++ b/hasura/metadata/databases/callisto/functions/public_messages_by_type.yaml @@ -1,3 +1,3 @@ function: - name: messages_by_address + name: messages_by_type schema: public