Skip to content

Commit

Permalink
feat(hasura): update version to 2.44
Browse files Browse the repository at this point in the history
  • Loading branch information
igr-santos committed Oct 29, 2024
1 parent aa8b995 commit 39f82d9
Show file tree
Hide file tree
Showing 64 changed files with 530 additions and 540 deletions.
1 change: 1 addition & 0 deletions migrations/metadata/backend_configs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
6 changes: 3 additions & 3 deletions migrations/metadata/databases/databases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
kind: postgres
configuration:
connection_info:
use_prepared_statements: true
database_url:
from_env: HASURA_GRAPHQL_DATABASE_URL
isolation_level: read-committed
pool_settings:
connection_lifetime: 600
retries: 1
idle_timeout: 180
max_connections: 50
retries: 1
use_prepared_statements: true
tables: "!include default/tables/tables.yaml"
functions: "!include default/functions/functions.yaml"
- name: votepeloclima
kind: postgres
configuration:
connection_info:
use_prepared_statements: false
database_url:
from_env: HASURA_GRAPHQL_VOTEPELOCLIMA_DATABASE_URL
isolation_level: read-committed
use_prepared_statements: false
tables: "!include votepeloclima/tables/tables.yaml"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function:
schema: public
name: get_current_user
schema: public
configuration:
custom_root_fields: {}
session_argument: hasura_session
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function:
schema: public
name: get_widget_donation_stats
schema: public
permissions:
- role: anonymous
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function:
schema: public
name: plip_signatures_by_state
schema: public
permissions:
- role: common_user
- role: user
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
table:
schema: analyze
name: actions
schema: analyze
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
table:
schema: analyze
name: activist_actions
schema: analyze
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
table:
schema: log
name: activist_actions
schema: log
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
table:
schema: public
name: activist_actions
schema: public
object_relationships:
- name: community
using:
Expand All @@ -22,7 +22,6 @@ insert_permissions:
- mobilization_id
- community_id
- activist_id
backend_only: false
select_permissions:
- role: common_user
permission:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
table:
schema: public
name: activist_pressures_range
schema: public
object_relationships:
- name: widget
using:
manual_configuration:
remote_table:
schema: public
name: widgets
insertion_order: null
column_mapping:
widget_id: id
insertion_order: null
remote_table:
name: widgets
schema: public
select_permissions:
- role: common_user
permission:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
table:
schema: public
name: activists
schema: public
19 changes: 9 additions & 10 deletions migrations/metadata/databases/default/tables/public_blocks.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
table:
schema: public
name: blocks
schema: public
object_relationships:
- name: mobilization
using:
manual_configuration:
remote_table:
schema: public
name: mobilizations
insertion_order: null
column_mapping:
mobilization_id: id
insertion_order: null
remote_table:
name: mobilizations
schema: public
array_relationships:
- name: widgets
using:
manual_configuration:
remote_table:
schema: public
name: widgets
insertion_order: null
column_mapping:
id: block_id
insertion_order: null
remote_table:
name: widgets
schema: public
insert_permissions:
- role: user
permission:
Expand All @@ -42,7 +42,6 @@ insert_permissions:
- name
- menu_hidden
- deleted_at
backend_only: false
select_permissions:
- role: anonymous
permission:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
table:
schema: public
name: certificates
schema: public
object_relationships:
- name: community
using:
manual_configuration:
remote_table:
schema: public
name: communities
insertion_order: null
column_mapping:
community_id: id
insertion_order: null
remote_table:
name: communities
schema: public
select_permissions:
- role: user
permission:
Expand Down Expand Up @@ -38,7 +38,7 @@ event_triggers:
insert:
columns: '*'
retry_conf:
num_retries: 20
interval_sec: 360
num_retries: 20
timeout_sec: 60
webhook: '{{API_DOMAINS_URL}}/events/check-certificate'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
table:
schema: public
name: chatbot_campaigns
schema: public
object_relationships:
- name: chatbot
using:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
table:
schema: public
name: chatbot_interactions
schema: public
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
table:
schema: public
name: chatbot_settings
schema: public
object_relationships:
- name: chatbot
using:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
table:
schema: public
name: chatbots
schema: public
object_relationships:
- name: community
using:
Expand All @@ -11,15 +11,15 @@ array_relationships:
foreign_key_constraint_on:
column: chatbot_id
table:
schema: public
name: chatbot_campaigns
schema: public
- name: chatbot_settings
using:
foreign_key_constraint_on:
column: chatbot_id
table:
schema: public
name: chatbot_settings
schema: public
select_permissions:
- role: user
permission:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
table:
schema: public
name: communities
schema: public
object_relationships:
- name: recipient
using:
Expand All @@ -9,33 +9,33 @@ array_relationships:
- name: community_users
using:
manual_configuration:
remote_table:
schema: public
name: community_users
insertion_order: null
column_mapping:
id: community_id
insertion_order: null
remote_table:
name: community_users
schema: public
- name: dns_hosted_zones
using:
foreign_key_constraint_on:
column: community_id
table:
schema: public
name: dns_hosted_zones
schema: public
- name: integrations
using:
foreign_key_constraint_on:
column: community_id
table:
schema: public
name: integrations
schema: public
- name: mobilizations
using:
foreign_key_constraint_on:
column: community_id
table:
schema: public
name: mobilizations
schema: public
select_permissions:
- role: anonymous
permission:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
table:
schema: public
name: community_settings
schema: public
object_relationships:
- name: community
using:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
table:
schema: public
name: community_users
schema: public
object_relationships:
- name: community
using:
manual_configuration:
remote_table:
schema: public
name: communities
insertion_order: null
column_mapping:
community_id: id
insertion_order: null
remote_table:
name: communities
schema: public
- name: user
using:
manual_configuration:
remote_table:
schema: public
name: users
insertion_order: null
column_mapping:
user_id: id
insertion_order: null
remote_table:
name: users
schema: public
select_permissions:
- role: user
permission:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
table:
schema: public
name: configurations
schema: public
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
table:
schema: public
name: dns_hosted_zones
schema: public
object_relationships:
- name: community
using:
Expand All @@ -9,19 +9,19 @@ array_relationships:
- name: certificates
using:
manual_configuration:
remote_table:
schema: public
name: certificates
insertion_order: null
column_mapping:
id: dns_hosted_zone_id
insertion_order: null
remote_table:
name: certificates
schema: public
- name: dns_records
using:
foreign_key_constraint_on:
column: dns_hosted_zone_id
table:
schema: public
name: dns_records
schema: public
insert_permissions:
- role: user
permission:
Expand All @@ -41,7 +41,6 @@ insert_permissions:
- ns_ok
- status
- is_external_domain
backend_only: false
select_permissions:
- role: user
permission:
Expand Down Expand Up @@ -88,7 +87,7 @@ event_triggers:
columns:
- ns_ok
retry_conf:
num_retries: 0
interval_sec: 10
num_retries: 0
timeout_sec: 60
webhook: '{{API_DOMAINS_URL}}/events/create-certificate'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
table:
schema: public
name: dns_records
schema: public
object_relationships:
- name: dns_hosted_zone
using:
Expand Down
Loading

0 comments on commit 39f82d9

Please sign in to comment.