diff --git a/migrations/metadata/backend_configs.yaml b/migrations/metadata/backend_configs.yaml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/migrations/metadata/backend_configs.yaml @@ -0,0 +1 @@ +{} diff --git a/migrations/metadata/databases/databases.yaml b/migrations/metadata/databases/databases.yaml index ddfba69..7abdbd4 100644 --- a/migrations/metadata/databases/databases.yaml +++ b/migrations/metadata/databases/databases.yaml @@ -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" diff --git a/migrations/metadata/databases/default/functions/public_get_current_user.yaml b/migrations/metadata/databases/default/functions/public_get_current_user.yaml index 6794bd5..790c6e5 100644 --- a/migrations/metadata/databases/default/functions/public_get_current_user.yaml +++ b/migrations/metadata/databases/default/functions/public_get_current_user.yaml @@ -1,6 +1,6 @@ function: - schema: public name: get_current_user + schema: public configuration: custom_root_fields: {} session_argument: hasura_session diff --git a/migrations/metadata/databases/default/functions/public_get_widget_donation_stats.yaml b/migrations/metadata/databases/default/functions/public_get_widget_donation_stats.yaml index 9e3c4b9..0a15f53 100644 --- a/migrations/metadata/databases/default/functions/public_get_widget_donation_stats.yaml +++ b/migrations/metadata/databases/default/functions/public_get_widget_donation_stats.yaml @@ -1,5 +1,5 @@ function: - schema: public name: get_widget_donation_stats + schema: public permissions: - role: anonymous diff --git a/migrations/metadata/databases/default/functions/public_plip_signatures_by_state.yaml b/migrations/metadata/databases/default/functions/public_plip_signatures_by_state.yaml index 2ac664d..566e0b7 100644 --- a/migrations/metadata/databases/default/functions/public_plip_signatures_by_state.yaml +++ b/migrations/metadata/databases/default/functions/public_plip_signatures_by_state.yaml @@ -1,6 +1,6 @@ function: - schema: public name: plip_signatures_by_state + schema: public permissions: - role: common_user - role: user diff --git a/migrations/metadata/databases/default/tables/analyze_actions.yaml b/migrations/metadata/databases/default/tables/analyze_actions.yaml index 71d120e..0becfa4 100644 --- a/migrations/metadata/databases/default/tables/analyze_actions.yaml +++ b/migrations/metadata/databases/default/tables/analyze_actions.yaml @@ -1,3 +1,3 @@ table: - schema: analyze name: actions + schema: analyze diff --git a/migrations/metadata/databases/default/tables/analyze_activist_actions.yaml b/migrations/metadata/databases/default/tables/analyze_activist_actions.yaml index ce3d9c6..416d010 100644 --- a/migrations/metadata/databases/default/tables/analyze_activist_actions.yaml +++ b/migrations/metadata/databases/default/tables/analyze_activist_actions.yaml @@ -1,3 +1,3 @@ table: - schema: analyze name: activist_actions + schema: analyze diff --git a/migrations/metadata/databases/default/tables/log_activist_actions.yaml b/migrations/metadata/databases/default/tables/log_activist_actions.yaml index ccc8c8c..6fe4358 100644 --- a/migrations/metadata/databases/default/tables/log_activist_actions.yaml +++ b/migrations/metadata/databases/default/tables/log_activist_actions.yaml @@ -1,3 +1,3 @@ table: - schema: log name: activist_actions + schema: log diff --git a/migrations/metadata/databases/default/tables/public_activist_actions.yaml b/migrations/metadata/databases/default/tables/public_activist_actions.yaml index 39666f5..b676c42 100644 --- a/migrations/metadata/databases/default/tables/public_activist_actions.yaml +++ b/migrations/metadata/databases/default/tables/public_activist_actions.yaml @@ -1,6 +1,6 @@ table: - schema: public name: activist_actions + schema: public object_relationships: - name: community using: @@ -22,7 +22,6 @@ insert_permissions: - mobilization_id - community_id - activist_id - backend_only: false select_permissions: - role: common_user permission: diff --git a/migrations/metadata/databases/default/tables/public_activist_pressures_range.yaml b/migrations/metadata/databases/default/tables/public_activist_pressures_range.yaml index 3fe3713..614fd3d 100644 --- a/migrations/metadata/databases/default/tables/public_activist_pressures_range.yaml +++ b/migrations/metadata/databases/default/tables/public_activist_pressures_range.yaml @@ -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: diff --git a/migrations/metadata/databases/default/tables/public_activists.yaml b/migrations/metadata/databases/default/tables/public_activists.yaml index 860d8d7..1a36b48 100644 --- a/migrations/metadata/databases/default/tables/public_activists.yaml +++ b/migrations/metadata/databases/default/tables/public_activists.yaml @@ -1,3 +1,3 @@ table: - schema: public name: activists + schema: public diff --git a/migrations/metadata/databases/default/tables/public_blocks.yaml b/migrations/metadata/databases/default/tables/public_blocks.yaml index fe68c00..d32f961 100644 --- a/migrations/metadata/databases/default/tables/public_blocks.yaml +++ b/migrations/metadata/databases/default/tables/public_blocks.yaml @@ -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: @@ -42,7 +42,6 @@ insert_permissions: - name - menu_hidden - deleted_at - backend_only: false select_permissions: - role: anonymous permission: diff --git a/migrations/metadata/databases/default/tables/public_certificates.yaml b/migrations/metadata/databases/default/tables/public_certificates.yaml index eecc696..31d773f 100644 --- a/migrations/metadata/databases/default/tables/public_certificates.yaml +++ b/migrations/metadata/databases/default/tables/public_certificates.yaml @@ -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: @@ -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' diff --git a/migrations/metadata/databases/default/tables/public_chatbot_campaigns.yaml b/migrations/metadata/databases/default/tables/public_chatbot_campaigns.yaml index b28d8af..d124a63 100644 --- a/migrations/metadata/databases/default/tables/public_chatbot_campaigns.yaml +++ b/migrations/metadata/databases/default/tables/public_chatbot_campaigns.yaml @@ -1,6 +1,6 @@ table: - schema: public name: chatbot_campaigns + schema: public object_relationships: - name: chatbot using: diff --git a/migrations/metadata/databases/default/tables/public_chatbot_interactions.yaml b/migrations/metadata/databases/default/tables/public_chatbot_interactions.yaml index dcfe480..2806572 100644 --- a/migrations/metadata/databases/default/tables/public_chatbot_interactions.yaml +++ b/migrations/metadata/databases/default/tables/public_chatbot_interactions.yaml @@ -1,3 +1,3 @@ table: - schema: public name: chatbot_interactions + schema: public diff --git a/migrations/metadata/databases/default/tables/public_chatbot_settings.yaml b/migrations/metadata/databases/default/tables/public_chatbot_settings.yaml index 51b1559..e8c31f3 100644 --- a/migrations/metadata/databases/default/tables/public_chatbot_settings.yaml +++ b/migrations/metadata/databases/default/tables/public_chatbot_settings.yaml @@ -1,6 +1,6 @@ table: - schema: public name: chatbot_settings + schema: public object_relationships: - name: chatbot using: diff --git a/migrations/metadata/databases/default/tables/public_chatbots.yaml b/migrations/metadata/databases/default/tables/public_chatbots.yaml index a7315a2..d4caa2c 100644 --- a/migrations/metadata/databases/default/tables/public_chatbots.yaml +++ b/migrations/metadata/databases/default/tables/public_chatbots.yaml @@ -1,6 +1,6 @@ table: - schema: public name: chatbots + schema: public object_relationships: - name: community using: @@ -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: diff --git a/migrations/metadata/databases/default/tables/public_communities.yaml b/migrations/metadata/databases/default/tables/public_communities.yaml index 5fc6157..67e13f7 100644 --- a/migrations/metadata/databases/default/tables/public_communities.yaml +++ b/migrations/metadata/databases/default/tables/public_communities.yaml @@ -1,6 +1,6 @@ table: - schema: public name: communities + schema: public object_relationships: - name: recipient using: @@ -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: diff --git a/migrations/metadata/databases/default/tables/public_community_settings.yaml b/migrations/metadata/databases/default/tables/public_community_settings.yaml index 4ac8b48..241b17f 100644 --- a/migrations/metadata/databases/default/tables/public_community_settings.yaml +++ b/migrations/metadata/databases/default/tables/public_community_settings.yaml @@ -1,6 +1,6 @@ table: - schema: public name: community_settings + schema: public object_relationships: - name: community using: diff --git a/migrations/metadata/databases/default/tables/public_community_users.yaml b/migrations/metadata/databases/default/tables/public_community_users.yaml index e52345c..7dd628a 100644 --- a/migrations/metadata/databases/default/tables/public_community_users.yaml +++ b/migrations/metadata/databases/default/tables/public_community_users.yaml @@ -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: diff --git a/migrations/metadata/databases/default/tables/public_configurations.yaml b/migrations/metadata/databases/default/tables/public_configurations.yaml index 1ad51a9..00bc8d7 100644 --- a/migrations/metadata/databases/default/tables/public_configurations.yaml +++ b/migrations/metadata/databases/default/tables/public_configurations.yaml @@ -1,3 +1,3 @@ table: - schema: public name: configurations + schema: public diff --git a/migrations/metadata/databases/default/tables/public_dns_hosted_zones.yaml b/migrations/metadata/databases/default/tables/public_dns_hosted_zones.yaml index 6708e74..ad978a3 100644 --- a/migrations/metadata/databases/default/tables/public_dns_hosted_zones.yaml +++ b/migrations/metadata/databases/default/tables/public_dns_hosted_zones.yaml @@ -1,6 +1,6 @@ table: - schema: public name: dns_hosted_zones + schema: public object_relationships: - name: community using: @@ -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: @@ -41,7 +41,6 @@ insert_permissions: - ns_ok - status - is_external_domain - backend_only: false select_permissions: - role: user permission: @@ -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' diff --git a/migrations/metadata/databases/default/tables/public_dns_records.yaml b/migrations/metadata/databases/default/tables/public_dns_records.yaml index 3ed109c..14969f8 100644 --- a/migrations/metadata/databases/default/tables/public_dns_records.yaml +++ b/migrations/metadata/databases/default/tables/public_dns_records.yaml @@ -1,6 +1,6 @@ table: - schema: public name: dns_records + schema: public object_relationships: - name: dns_hosted_zone using: diff --git a/migrations/metadata/databases/default/tables/public_donation_transactions.yaml b/migrations/metadata/databases/default/tables/public_donation_transactions.yaml index 7d0e424..51b4ecb 100644 --- a/migrations/metadata/databases/default/tables/public_donation_transactions.yaml +++ b/migrations/metadata/databases/default/tables/public_donation_transactions.yaml @@ -1,16 +1,16 @@ table: - schema: public name: donation_transactions + 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: diff --git a/migrations/metadata/databases/default/tables/public_donations.yaml b/migrations/metadata/databases/default/tables/public_donations.yaml index 5ad16b3..cc3f706 100644 --- a/migrations/metadata/databases/default/tables/public_donations.yaml +++ b/migrations/metadata/databases/default/tables/public_donations.yaml @@ -2,62 +2,62 @@ table: name: donations schema: public object_relationships: -- name: activist - using: - foreign_key_constraint_on: activist_id -- name: community - using: - foreign_key_constraint_on: cached_community_id -- name: mobilization - using: - manual_configuration: - column_mapping: - mobilization_id: id - insertion_order: null - remote_table: - name: mobilizations - schema: public -- name: widget - using: - foreign_key_constraint_on: widget_id + - name: activist + using: + foreign_key_constraint_on: activist_id + - name: community + using: + foreign_key_constraint_on: cached_community_id + - name: mobilization + using: + manual_configuration: + column_mapping: + mobilization_id: id + insertion_order: null + remote_table: + name: mobilizations + schema: public + - name: widget + using: + foreign_key_constraint_on: widget_id array_relationships: -- name: donations_integration_logs - using: - foreign_key_constraint_on: - column: donation_id - table: - name: donations_integration_logs - schema: public + - name: donations_integration_logs + using: + foreign_key_constraint_on: + column: donation_id + table: + name: donations_integration_logs + schema: public select_permissions: -- permission: - allow_aggregations: true - columns: [] - filter: - widget: - block: - mobilization: - status: - _eq: active - role: anonymous + - role: anonymous + permission: + columns: [] + filter: + widget: + block: + mobilization: + status: + _eq: active + allow_aggregations: true event_triggers: -- definition: - enable_manual: false - insert: - columns: "*" - name: webhook-an-donations - retry_conf: - interval_sec: 10 - num_retries: 0 - timeout_sec: 60 - webhook: "{{N8N_WEBHOOK_URL}}/action-network/activist_action" -- definition: - enable_manual: false - update: - columns: - - transaction_status - name: webhook-an-update-donations - retry_conf: - interval_sec: 10 - num_retries: 0 - timeout_sec: 60 - webhook: "{{N8N_WEBHOOK_URL}}/action-network/activist_action" + - name: webhook-an-donations + definition: + enable_manual: false + insert: + columns: '*' + retry_conf: + interval_sec: 10 + num_retries: 0 + timeout_sec: 60 + webhook: '{{N8N_WEBHOOK_URL}}/action-network/activist_action' + - name: webhook-an-update-donations + definition: + enable_manual: false + update: + columns: + - transaction_status + retry_conf: + interval_sec: 10 + num_retries: 0 + timeout_sec: 60 + webhook: '{{N8N_WEBHOOK_URL}}/action-network/activist_action' diff --git a/migrations/metadata/databases/default/tables/public_donations_integration_logs.yaml b/migrations/metadata/databases/default/tables/public_donations_integration_logs.yaml index 044ba95..467af74 100644 --- a/migrations/metadata/databases/default/tables/public_donations_integration_logs.yaml +++ b/migrations/metadata/databases/default/tables/public_donations_integration_logs.yaml @@ -1,6 +1,6 @@ table: - schema: public name: donations_integration_logs + schema: public object_relationships: - name: community using: diff --git a/migrations/metadata/databases/default/tables/public_facebook_bot_campaign_activists.yaml b/migrations/metadata/databases/default/tables/public_facebook_bot_campaign_activists.yaml index 7125058..7e4545b 100644 --- a/migrations/metadata/databases/default/tables/public_facebook_bot_campaign_activists.yaml +++ b/migrations/metadata/databases/default/tables/public_facebook_bot_campaign_activists.yaml @@ -1,3 +1,3 @@ table: - schema: public name: facebook_bot_campaign_activists + schema: public diff --git a/migrations/metadata/databases/default/tables/public_facebook_bot_campaigns.yaml b/migrations/metadata/databases/default/tables/public_facebook_bot_campaigns.yaml index d9eedfc..16ae05e 100644 --- a/migrations/metadata/databases/default/tables/public_facebook_bot_campaigns.yaml +++ b/migrations/metadata/databases/default/tables/public_facebook_bot_campaigns.yaml @@ -1,3 +1,3 @@ table: - schema: public name: facebook_bot_campaigns + schema: public diff --git a/migrations/metadata/databases/default/tables/public_form_entries.yaml b/migrations/metadata/databases/default/tables/public_form_entries.yaml index b642d91..efa23d5 100644 --- a/migrations/metadata/databases/default/tables/public_form_entries.yaml +++ b/migrations/metadata/databases/default/tables/public_form_entries.yaml @@ -2,69 +2,69 @@ table: name: form_entries schema: public object_relationships: -- name: activist - using: - foreign_key_constraint_on: activist_id -- name: community - using: - foreign_key_constraint_on: cached_community_id -- name: mobilization - using: - manual_configuration: - column_mapping: - mobilization_id: id - insertion_order: null - remote_table: - name: mobilizations - schema: public -- name: widget - using: - foreign_key_constraint_on: widget_id + - name: activist + using: + foreign_key_constraint_on: activist_id + - name: community + using: + foreign_key_constraint_on: cached_community_id + - name: mobilization + using: + manual_configuration: + column_mapping: + mobilization_id: id + insertion_order: null + remote_table: + name: mobilizations + schema: public + - name: widget + using: + foreign_key_constraint_on: widget_id array_relationships: -- name: forms_integration_logs - using: - foreign_key_constraint_on: - column: form_entry_id - table: - name: forms_integration_logs - schema: public + - name: forms_integration_logs + using: + foreign_key_constraint_on: + column: form_entry_id + table: + name: forms_integration_logs + schema: public select_permissions: -- permission: - allow_aggregations: true - columns: [] - filter: - widget: - block: - mobilization: - status: - _eq: active - role: anonymous -- permission: - allow_aggregations: true - columns: - - cached_community_id - - created_at - - widget_id - filter: {} - role: user + - role: anonymous + permission: + columns: [] + filter: + widget: + block: + mobilization: + status: + _eq: active + allow_aggregations: true + - role: user + permission: + columns: + - cached_community_id + - created_at + - widget_id + filter: {} + allow_aggregations: true event_triggers: -- definition: - enable_manual: false - insert: - columns: "*" - name: webhook-aeleicadoano-form-entries - retry_conf: - interval_sec: 10 - num_retries: 0 - timeout_sec: 60 - webhook: "{{N8N_WEBHOOK_URL}}/aeleicaodoano" -- definition: - enable_manual: false - insert: - columns: "*" - name: webhook-an-form_entries - retry_conf: - interval_sec: 10 - num_retries: 0 - timeout_sec: 60 - webhook: "{{N8N_WEBHOOK_URL}}/action-network/activist_action" + - name: webhook-aeleicadoano-form-entries + definition: + enable_manual: false + insert: + columns: '*' + retry_conf: + interval_sec: 10 + num_retries: 0 + timeout_sec: 60 + webhook: '{{N8N_WEBHOOK_URL}}/aeleicaodoano' + - name: webhook-an-form_entries + definition: + enable_manual: false + insert: + columns: '*' + retry_conf: + interval_sec: 10 + num_retries: 0 + timeout_sec: 60 + webhook: '{{N8N_WEBHOOK_URL}}/action-network/activist_action' diff --git a/migrations/metadata/databases/default/tables/public_forms_integration_logs.yaml b/migrations/metadata/databases/default/tables/public_forms_integration_logs.yaml index 7c64e4b..9cba6e7 100644 --- a/migrations/metadata/databases/default/tables/public_forms_integration_logs.yaml +++ b/migrations/metadata/databases/default/tables/public_forms_integration_logs.yaml @@ -1,6 +1,6 @@ table: - schema: public name: forms_integration_logs + schema: public object_relationships: - name: community using: diff --git a/migrations/metadata/databases/default/tables/public_integrations.yaml b/migrations/metadata/databases/default/tables/public_integrations.yaml index 05d56cf..bbc1691 100644 --- a/migrations/metadata/databases/default/tables/public_integrations.yaml +++ b/migrations/metadata/databases/default/tables/public_integrations.yaml @@ -1,6 +1,6 @@ table: - schema: public name: integrations + schema: public object_relationships: - name: community using: diff --git a/migrations/metadata/databases/default/tables/public_invitations.yaml b/migrations/metadata/databases/default/tables/public_invitations.yaml index 9dd614f..98160f7 100644 --- a/migrations/metadata/databases/default/tables/public_invitations.yaml +++ b/migrations/metadata/databases/default/tables/public_invitations.yaml @@ -1,6 +1,6 @@ table: - schema: public name: invitations + schema: public object_relationships: - name: community using: @@ -8,12 +8,12 @@ object_relationships: - 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 insert_permissions: - role: user permission: diff --git a/migrations/metadata/databases/default/tables/public_mobilizations.yaml b/migrations/metadata/databases/default/tables/public_mobilizations.yaml index 09cad3d..1fc5453 100644 --- a/migrations/metadata/databases/default/tables/public_mobilizations.yaml +++ b/migrations/metadata/databases/default/tables/public_mobilizations.yaml @@ -1,6 +1,6 @@ table: - schema: public name: mobilizations + schema: public object_relationships: - name: community using: @@ -12,28 +12,28 @@ array_relationships: - name: activist_actions using: manual_configuration: - remote_table: - schema: public - name: activist_actions - insertion_order: null column_mapping: id: mobilization_id + insertion_order: null + remote_table: + name: activist_actions + schema: public - name: blocks using: manual_configuration: - remote_table: - schema: public - name: blocks - insertion_order: null column_mapping: id: mobilization_id + insertion_order: null + remote_table: + name: blocks + schema: public - name: mobilizations_subthemes using: foreign_key_constraint_on: column: mobilization_id table: - schema: public name: mobilizations_subthemes + schema: public insert_permissions: - role: user permission: diff --git a/migrations/metadata/databases/default/tables/public_mobilizations_subthemes.yaml b/migrations/metadata/databases/default/tables/public_mobilizations_subthemes.yaml index 6a2074e..de30c5f 100644 --- a/migrations/metadata/databases/default/tables/public_mobilizations_subthemes.yaml +++ b/migrations/metadata/databases/default/tables/public_mobilizations_subthemes.yaml @@ -1,6 +1,6 @@ table: - schema: public name: mobilizations_subthemes + schema: public object_relationships: - name: mobilization using: @@ -20,7 +20,6 @@ insert_permissions: columns: - mobilization_id - subtheme_id - backend_only: false select_permissions: - role: user permission: diff --git a/migrations/metadata/databases/default/tables/public_notification_templates.yaml b/migrations/metadata/databases/default/tables/public_notification_templates.yaml index fc6e7b5..b03c965 100644 --- a/migrations/metadata/databases/default/tables/public_notification_templates.yaml +++ b/migrations/metadata/databases/default/tables/public_notification_templates.yaml @@ -1,3 +1,3 @@ table: - schema: public name: notification_templates + schema: public diff --git a/migrations/metadata/databases/default/tables/public_participations.yaml b/migrations/metadata/databases/default/tables/public_participations.yaml index 87359a9..b06ccab 100644 --- a/migrations/metadata/databases/default/tables/public_participations.yaml +++ b/migrations/metadata/databases/default/tables/public_participations.yaml @@ -1,16 +1,16 @@ table: - schema: public name: participations + 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: diff --git a/migrations/metadata/databases/default/tables/public_plip_signatures.yaml b/migrations/metadata/databases/default/tables/public_plip_signatures.yaml index 6805812..2de27c6 100644 --- a/migrations/metadata/databases/default/tables/public_plip_signatures.yaml +++ b/migrations/metadata/databases/default/tables/public_plip_signatures.yaml @@ -2,87 +2,86 @@ table: name: plip_signatures schema: public object_relationships: -- name: widget - using: - foreign_key_constraint_on: widget_id + - name: widget + using: + foreign_key_constraint_on: widget_id array_relationships: -- name: plips - using: - manual_configuration: - column_mapping: - unique_identifier: unique_identifier - insertion_order: null - remote_table: - name: plips - schema: public + - name: plips + using: + manual_configuration: + column_mapping: + unique_identifier: unique_identifier + insertion_order: null + remote_table: + name: plips + schema: public insert_permissions: -- permission: - backend_only: false - check: - widget: - block: - mobilization: - community: - community_users: - user_id: - _eq: X-Hasura-User-Id - columns: - - confirmed_signatures - - created_at - - id - - state - - unique_identifier - - user_id - - widget_id - set: - user_id: x-hasura-User-Id - role: user + - role: user + permission: + check: + widget: + block: + mobilization: + community: + community_users: + user_id: + _eq: X-Hasura-User-Id + set: + user_id: x-hasura-User-Id + columns: + - confirmed_signatures + - created_at + - id + - state + - unique_identifier + - user_id + - widget_id select_permissions: -- permission: - allow_aggregations: true - columns: - - confirmed_signatures - - state - - widget_id - filter: {} - role: anonymous -- permission: - allow_aggregations: true - columns: - - confirmed_signatures - - created_at - - id - - state - - unique_identifier - - user_id - - widget_id - filter: - widget: - block: - mobilization: - community: - community_users: - user_id: - _eq: X-Hasura-User-Id - role: user + - role: anonymous + permission: + columns: + - confirmed_signatures + - state + - widget_id + filter: {} + allow_aggregations: true + - role: user + permission: + columns: + - confirmed_signatures + - created_at + - id + - state + - unique_identifier + - user_id + - widget_id + filter: + widget: + block: + mobilization: + community: + community_users: + user_id: + _eq: X-Hasura-User-Id + allow_aggregations: true event_triggers: -- definition: - enable_manual: false - insert: - columns: "*" - name: webhook-plip-signatures-an - retry_conf: - interval_sec: 10 - num_retries: 0 - timeout_sec: 60 - webhook: "{{N8N_WEBHOOK_URL}}/plip-signatures-an" -- definition: - enable_manual: false - insert: - columns: "*" - name: webhooks-plip-signatures-mautic - retry_conf: - interval_sec: 10 - num_retries: 0 - timeout_sec: 60 - webhook: "{{N8N_WEBHOOK_URL}}/plip-signatures-mautic" + - name: webhook-plip-signatures-an + definition: + enable_manual: false + insert: + columns: '*' + retry_conf: + interval_sec: 10 + num_retries: 0 + timeout_sec: 60 + webhook: '{{N8N_WEBHOOK_URL}}/plip-signatures-an' + - name: webhooks-plip-signatures-mautic + definition: + enable_manual: false + insert: + columns: '*' + retry_conf: + interval_sec: 10 + num_retries: 0 + timeout_sec: 60 + webhook: '{{N8N_WEBHOOK_URL}}/plip-signatures-mautic' diff --git a/migrations/metadata/databases/default/tables/public_plip_signatures_by_state_result.yaml b/migrations/metadata/databases/default/tables/public_plip_signatures_by_state_result.yaml index 7ad20b4..f71a717 100644 --- a/migrations/metadata/databases/default/tables/public_plip_signatures_by_state_result.yaml +++ b/migrations/metadata/databases/default/tables/public_plip_signatures_by_state_result.yaml @@ -1,6 +1,6 @@ table: - schema: public name: plip_signatures_by_state_result + schema: public select_permissions: - role: common_user permission: diff --git a/migrations/metadata/databases/default/tables/public_plips.yaml b/migrations/metadata/databases/default/tables/public_plips.yaml index 8415ff8..3e5c2d9 100644 --- a/migrations/metadata/databases/default/tables/public_plips.yaml +++ b/migrations/metadata/databases/default/tables/public_plips.yaml @@ -1,6 +1,6 @@ table: - schema: public name: plips + schema: public object_relationships: - name: widget using: @@ -9,31 +9,31 @@ array_relationships: - name: plip_signatures using: manual_configuration: - remote_table: - schema: public - name: plip_signatures - insertion_order: null column_mapping: unique_identifier: unique_identifier + insertion_order: null + remote_table: + name: plip_signatures + schema: public - name: plips_integration_logs using: foreign_key_constraint_on: column: plip_id table: - schema: public name: plips_integration_logs + schema: public computed_fields: - name: confirmed_signatures definition: function: - schema: public name: plips_confirmed_signatures + schema: public comment: Atributo computado a partir da relação entre widget_id e unique_identifier da tabela plip_signatures - name: status definition: function: - schema: public name: plips_status + schema: public comment: 'Atributo computado para retornar status a partir do período. Resultados: CONCLUIDO, PENDENTE ou INSCRITO' select_permissions: - role: anonymous @@ -105,8 +105,8 @@ event_triggers: insert: columns: '*' retry_conf: - num_retries: 0 interval_sec: 10 + num_retries: 0 timeout_sec: 60 webhook: '{{N8N_WEBHOOK_URL}}/action-network/activist_action' - name: webhooks-plip-mautic @@ -115,7 +115,7 @@ event_triggers: insert: columns: '*' retry_conf: - num_retries: 0 interval_sec: 10 + num_retries: 0 timeout_sec: 60 webhook: '{{N8N_WEBHOOK_URL}}/plip-mautic' diff --git a/migrations/metadata/databases/default/tables/public_plips_integration_logs.yaml b/migrations/metadata/databases/default/tables/public_plips_integration_logs.yaml index 6e67a39..0bbe61e 100644 --- a/migrations/metadata/databases/default/tables/public_plips_integration_logs.yaml +++ b/migrations/metadata/databases/default/tables/public_plips_integration_logs.yaml @@ -1,6 +1,6 @@ table: - schema: public name: plips_integration_logs + schema: public object_relationships: - name: community using: diff --git a/migrations/metadata/databases/default/tables/public_plips_subscribers_range.yaml b/migrations/metadata/databases/default/tables/public_plips_subscribers_range.yaml index 008542c..545a236 100644 --- a/migrations/metadata/databases/default/tables/public_plips_subscribers_range.yaml +++ b/migrations/metadata/databases/default/tables/public_plips_subscribers_range.yaml @@ -1,16 +1,16 @@ table: - schema: public name: plips_subscribers_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: diff --git a/migrations/metadata/databases/default/tables/public_pressure_targets.yaml b/migrations/metadata/databases/default/tables/public_pressure_targets.yaml index e19a514..e1a6675 100644 --- a/migrations/metadata/databases/default/tables/public_pressure_targets.yaml +++ b/migrations/metadata/databases/default/tables/public_pressure_targets.yaml @@ -1,6 +1,6 @@ table: - schema: public name: pressure_targets + schema: public object_relationships: - name: widget using: @@ -24,7 +24,6 @@ insert_permissions: - label - email_subject - email_body - backend_only: false select_permissions: - role: anonymous permission: diff --git a/migrations/metadata/databases/default/tables/public_pressures_integration_logs.yaml b/migrations/metadata/databases/default/tables/public_pressures_integration_logs.yaml index 00e360c..b1a4299 100644 --- a/migrations/metadata/databases/default/tables/public_pressures_integration_logs.yaml +++ b/migrations/metadata/databases/default/tables/public_pressures_integration_logs.yaml @@ -1,6 +1,6 @@ table: - schema: public name: pressures_integration_logs + schema: public object_relationships: - name: activist_pressure using: diff --git a/migrations/metadata/databases/default/tables/public_recipients.yaml b/migrations/metadata/databases/default/tables/public_recipients.yaml index 0ea3aa6..5a11286 100644 --- a/migrations/metadata/databases/default/tables/public_recipients.yaml +++ b/migrations/metadata/databases/default/tables/public_recipients.yaml @@ -1,6 +1,6 @@ table: - schema: public name: recipients + schema: public object_relationships: - name: community using: diff --git a/migrations/metadata/databases/default/tables/public_rede_groups.yaml b/migrations/metadata/databases/default/tables/public_rede_groups.yaml index 11757cb..6348433 100644 --- a/migrations/metadata/databases/default/tables/public_rede_groups.yaml +++ b/migrations/metadata/databases/default/tables/public_rede_groups.yaml @@ -1,6 +1,6 @@ table: - schema: public name: rede_groups + schema: public object_relationships: - name: community using: @@ -23,7 +23,6 @@ insert_permissions: - name - created_at - updated_at - backend_only: false select_permissions: - role: user permission: diff --git a/migrations/metadata/databases/default/tables/public_rede_individuals.yaml b/migrations/metadata/databases/default/tables/public_rede_individuals.yaml index f5e19fe..9dbb442 100644 --- a/migrations/metadata/databases/default/tables/public_rede_individuals.yaml +++ b/migrations/metadata/databases/default/tables/public_rede_individuals.yaml @@ -1,6 +1,6 @@ table: - schema: public name: rede_individuals + schema: public object_relationships: - name: group using: diff --git a/migrations/metadata/databases/default/tables/public_rede_relationships.yaml b/migrations/metadata/databases/default/tables/public_rede_relationships.yaml index bade5ac..199ae36 100644 --- a/migrations/metadata/databases/default/tables/public_rede_relationships.yaml +++ b/migrations/metadata/databases/default/tables/public_rede_relationships.yaml @@ -1,6 +1,6 @@ table: - schema: public name: rede_relationships + schema: public object_relationships: - name: agent using: diff --git a/migrations/metadata/databases/default/tables/public_solidarity_matches.yaml b/migrations/metadata/databases/default/tables/public_solidarity_matches.yaml index 2fc79a2..ba905dc 100644 --- a/migrations/metadata/databases/default/tables/public_solidarity_matches.yaml +++ b/migrations/metadata/databases/default/tables/public_solidarity_matches.yaml @@ -1,6 +1,6 @@ table: - schema: public name: solidarity_matches + schema: public object_relationships: - name: community using: @@ -36,7 +36,6 @@ insert_permissions: - community_id - created_at - status - backend_only: false select_permissions: - role: user permission: diff --git a/migrations/metadata/databases/default/tables/public_solidarity_tickets.yaml b/migrations/metadata/databases/default/tables/public_solidarity_tickets.yaml index ee18335..92bc100 100644 --- a/migrations/metadata/databases/default/tables/public_solidarity_tickets.yaml +++ b/migrations/metadata/databases/default/tables/public_solidarity_tickets.yaml @@ -1,6 +1,6 @@ table: - schema: public name: solidarity_tickets + schema: public object_relationships: - name: community using: @@ -8,12 +8,12 @@ object_relationships: - name: individual using: manual_configuration: - remote_table: - schema: public - name: solidarity_users - insertion_order: null column_mapping: requester_id: user_id + insertion_order: null + remote_table: + name: solidarity_users + schema: public insert_permissions: - role: user permission: @@ -53,7 +53,6 @@ insert_permissions: - external_id - atrelado_ao_ticket - match_syncronized - backend_only: false select_permissions: - role: user permission: diff --git a/migrations/metadata/databases/default/tables/public_solidarity_users.yaml b/migrations/metadata/databases/default/tables/public_solidarity_users.yaml index 909f0f3..30eff4a 100644 --- a/migrations/metadata/databases/default/tables/public_solidarity_users.yaml +++ b/migrations/metadata/databases/default/tables/public_solidarity_users.yaml @@ -1,6 +1,6 @@ table: - schema: public name: solidarity_users + schema: public object_relationships: - name: community using: @@ -78,7 +78,6 @@ insert_permissions: - whatsapp - permanently_deleted - community_id - backend_only: false select_permissions: - role: user permission: diff --git a/migrations/metadata/databases/default/tables/public_subthemes.yaml b/migrations/metadata/databases/default/tables/public_subthemes.yaml index e4c03d7..01605eb 100644 --- a/migrations/metadata/databases/default/tables/public_subthemes.yaml +++ b/migrations/metadata/databases/default/tables/public_subthemes.yaml @@ -1,6 +1,6 @@ table: - schema: public name: subthemes + schema: public object_relationships: - name: theme using: diff --git a/migrations/metadata/databases/default/tables/public_tags.yaml b/migrations/metadata/databases/default/tables/public_tags.yaml index 165be42..baed616 100644 --- a/migrations/metadata/databases/default/tables/public_tags.yaml +++ b/migrations/metadata/databases/default/tables/public_tags.yaml @@ -1,6 +1,6 @@ table: - schema: public name: tags + schema: public select_permissions: - role: common_user permission: diff --git a/migrations/metadata/databases/default/tables/public_template_mobilizations.yaml b/migrations/metadata/databases/default/tables/public_template_mobilizations.yaml index f01e09f..08032b6 100644 --- a/migrations/metadata/databases/default/tables/public_template_mobilizations.yaml +++ b/migrations/metadata/databases/default/tables/public_template_mobilizations.yaml @@ -1,16 +1,16 @@ table: - schema: public name: template_mobilizations + 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 insert_permissions: - role: user permission: @@ -39,7 +39,6 @@ insert_permissions: - goal - created_at - updated_at - backend_only: false select_permissions: - role: user permission: diff --git a/migrations/metadata/databases/default/tables/public_themes.yaml b/migrations/metadata/databases/default/tables/public_themes.yaml index e1111e5..5cf70fb 100644 --- a/migrations/metadata/databases/default/tables/public_themes.yaml +++ b/migrations/metadata/databases/default/tables/public_themes.yaml @@ -1,6 +1,6 @@ table: - schema: public name: themes + schema: public select_permissions: - role: user permission: diff --git a/migrations/metadata/databases/default/tables/public_twilio_call_transitions.yaml b/migrations/metadata/databases/default/tables/public_twilio_call_transitions.yaml index e2e3bb2..6cb4a7e 100644 --- a/migrations/metadata/databases/default/tables/public_twilio_call_transitions.yaml +++ b/migrations/metadata/databases/default/tables/public_twilio_call_transitions.yaml @@ -1,16 +1,16 @@ table: - schema: public name: twilio_call_transitions + schema: public object_relationships: - name: twilio_call using: manual_configuration: - remote_table: - schema: public - name: twilio_calls - insertion_order: null column_mapping: twilio_call_sid: twilio_call_sid + insertion_order: null + remote_table: + name: twilio_calls + schema: public select_permissions: - role: anonymous permission: diff --git a/migrations/metadata/databases/default/tables/public_twilio_calls.yaml b/migrations/metadata/databases/default/tables/public_twilio_calls.yaml index 5194e11..e467e01 100644 --- a/migrations/metadata/databases/default/tables/public_twilio_calls.yaml +++ b/migrations/metadata/databases/default/tables/public_twilio_calls.yaml @@ -1,6 +1,6 @@ table: - schema: public name: twilio_calls + schema: public insert_permissions: - role: anonymous permission: @@ -10,7 +10,6 @@ insert_permissions: - from - to - widget_id - backend_only: false select_permissions: - role: anonymous permission: diff --git a/migrations/metadata/databases/default/tables/public_user_tags.yaml b/migrations/metadata/databases/default/tables/public_user_tags.yaml index 6ee5d21..15352b3 100644 --- a/migrations/metadata/databases/default/tables/public_user_tags.yaml +++ b/migrations/metadata/databases/default/tables/public_user_tags.yaml @@ -1,16 +1,16 @@ table: - schema: public name: user_tags + schema: public object_relationships: - name: tag using: manual_configuration: - remote_table: - schema: public - name: tags - insertion_order: null column_mapping: tag_id: id + insertion_order: null + remote_table: + name: tags + schema: public insert_permissions: - role: common_user permission: diff --git a/migrations/metadata/databases/default/tables/public_users.yaml b/migrations/metadata/databases/default/tables/public_users.yaml index 422880f..c348e11 100644 --- a/migrations/metadata/databases/default/tables/public_users.yaml +++ b/migrations/metadata/databases/default/tables/public_users.yaml @@ -1,16 +1,16 @@ table: - schema: public name: users + schema: public array_relationships: - name: community_users using: manual_configuration: - remote_table: - schema: public - name: community_users - insertion_order: null column_mapping: id: user_id + insertion_order: null + remote_table: + name: community_users + schema: public select_permissions: - role: user permission: diff --git a/migrations/metadata/databases/default/tables/public_webhooks_registry.yaml b/migrations/metadata/databases/default/tables/public_webhooks_registry.yaml index 2f90fb4..bf60196 100644 --- a/migrations/metadata/databases/default/tables/public_webhooks_registry.yaml +++ b/migrations/metadata/databases/default/tables/public_webhooks_registry.yaml @@ -1,3 +1,3 @@ table: - schema: public name: webhooks_registry + schema: public diff --git a/migrations/metadata/databases/default/tables/public_widget_donation_stats.yaml b/migrations/metadata/databases/default/tables/public_widget_donation_stats.yaml index afd8bad..e17c736 100644 --- a/migrations/metadata/databases/default/tables/public_widget_donation_stats.yaml +++ b/migrations/metadata/databases/default/tables/public_widget_donation_stats.yaml @@ -1,6 +1,6 @@ table: - schema: public name: widget_donation_stats + schema: public select_permissions: - role: anonymous permission: diff --git a/migrations/metadata/databases/default/tables/public_widgets.yaml b/migrations/metadata/databases/default/tables/public_widgets.yaml index a00ad87..752acec 100644 --- a/migrations/metadata/databases/default/tables/public_widgets.yaml +++ b/migrations/metadata/databases/default/tables/public_widgets.yaml @@ -2,185 +2,184 @@ table: name: widgets schema: public object_relationships: -- name: block - using: - manual_configuration: - column_mapping: - block_id: id - insertion_order: null - remote_table: - name: blocks - schema: public + - name: block + using: + manual_configuration: + column_mapping: + block_id: id + insertion_order: null + remote_table: + name: blocks + schema: public array_relationships: -- name: activist_actions - using: - foreign_key_constraint_on: - column: widget_id - table: - name: activist_actions - schema: public -- name: activist_pressures - using: - foreign_key_constraint_on: - column: widget_id - table: - name: activist_pressures - schema: public -- name: donations - using: - foreign_key_constraint_on: - column: widget_id - table: - name: donations - schema: public -- name: form_entries - using: - foreign_key_constraint_on: - column: widget_id - table: - name: form_entries - schema: public -- name: pressure_targets - using: - foreign_key_constraint_on: - column: widget_id - table: - name: pressure_targets - schema: public + - name: activist_actions + using: + foreign_key_constraint_on: + column: widget_id + table: + name: activist_actions + schema: public + - name: activist_pressures + using: + foreign_key_constraint_on: + column: widget_id + table: + name: activist_pressures + schema: public + - name: donations + using: + foreign_key_constraint_on: + column: widget_id + table: + name: donations + schema: public + - name: form_entries + using: + foreign_key_constraint_on: + column: widget_id + table: + name: form_entries + schema: public + - name: pressure_targets + using: + foreign_key_constraint_on: + column: widget_id + table: + name: pressure_targets + schema: public insert_permissions: -- permission: - backend_only: false - check: - block: - mobilization: - community: - community_users: - user_id: - _eq: X-Hasura-User-Id - columns: - - id - - block_id - - settings - - kind - - created_at - - updated_at - - sm_size - - md_size - - lg_size - - mailchimp_segment_id - - action_community - - exported_at - - mailchimp_unique_segment_id - - mailchimp_recurring_active_segment_id - - mailchimp_recurring_inactive_segment_id - - goal - - deleted_at - role: user + - role: user + permission: + check: + block: + mobilization: + community: + community_users: + user_id: + _eq: X-Hasura-User-Id + columns: + - id + - block_id + - settings + - kind + - created_at + - updated_at + - sm_size + - md_size + - lg_size + - mailchimp_segment_id + - action_community + - exported_at + - mailchimp_unique_segment_id + - mailchimp_recurring_active_segment_id + - mailchimp_recurring_inactive_segment_id + - goal + - deleted_at select_permissions: -- permission: - columns: - - block_id - - created_at - - goal - - id - - kind - - lg_size - - md_size - - settings - - sm_size - - updated_at - filter: - block: - mobilization: - status: - _eq: active - role: anonymous -- permission: - allow_aggregations: true - columns: - - action_community - - block_id - - id - - lg_size - - md_size - - sm_size - - settings - - goal - - created_at - - deleted_at - - exported_at - - updated_at - - kind - - mailchimp_recurring_active_segment_id - - mailchimp_recurring_inactive_segment_id - - mailchimp_segment_id - - mailchimp_unique_segment_id - filter: - block: - mobilization: - community: - community_users: - user_id: - _eq: X-Hasura-User-Id - role: user + - role: anonymous + permission: + columns: + - block_id + - created_at + - goal + - id + - kind + - lg_size + - md_size + - settings + - sm_size + - updated_at + filter: + block: + mobilization: + status: + _eq: active + - role: user + permission: + columns: + - action_community + - block_id + - id + - lg_size + - md_size + - sm_size + - settings + - goal + - created_at + - deleted_at + - exported_at + - updated_at + - kind + - mailchimp_recurring_active_segment_id + - mailchimp_recurring_inactive_segment_id + - mailchimp_segment_id + - mailchimp_unique_segment_id + filter: + block: + mobilization: + community: + community_users: + user_id: + _eq: X-Hasura-User-Id + allow_aggregations: true update_permissions: -- permission: - check: null - columns: - - action_community - - block_id - - id - - lg_size - - md_size - - sm_size - - settings - - goal - - created_at - - deleted_at - - exported_at - - updated_at - - kind - - mailchimp_recurring_active_segment_id - - mailchimp_recurring_inactive_segment_id - - mailchimp_segment_id - - mailchimp_unique_segment_id - filter: - block: - mobilization: - community: - community_users: - user_id: - _eq: X-Hasura-User-Id - role: user + - role: user + permission: + columns: + - action_community + - block_id + - id + - lg_size + - md_size + - sm_size + - settings + - goal + - created_at + - deleted_at + - exported_at + - updated_at + - kind + - mailchimp_recurring_active_segment_id + - mailchimp_recurring_inactive_segment_id + - mailchimp_segment_id + - mailchimp_unique_segment_id + filter: + block: + mobilization: + community: + community_users: + user_id: + _eq: X-Hasura-User-Id + check: null delete_permissions: -- permission: - filter: - block: - mobilization: - community: - community_users: - user_id: - _eq: X-Hasura-User-Id - role: user + - role: user + permission: + filter: + block: + mobilization: + community: + community_users: + user_id: + _eq: X-Hasura-User-Id event_triggers: -- definition: - enable_manual: false - insert: - columns: "*" - name: webhook-an-insert-widgets - retry_conf: - interval_sec: 10 - num_retries: 0 - timeout_sec: 60 - webhook: "{{N8N_WEBHOOK_URL}}/action-network/action" -- definition: - enable_manual: false - update: - columns: - - kind - name: webhook-an-widgets - retry_conf: - interval_sec: 10 - num_retries: 0 - timeout_sec: 60 - webhook: "{{N8N_WEBHOOK_URL}}/action-network/action" + - name: webhook-an-insert-widgets + definition: + enable_manual: false + insert: + columns: '*' + retry_conf: + interval_sec: 10 + num_retries: 0 + timeout_sec: 60 + webhook: '{{N8N_WEBHOOK_URL}}/action-network/action' + - name: webhook-an-widgets + definition: + enable_manual: false + update: + columns: + - kind + retry_conf: + interval_sec: 10 + num_retries: 0 + timeout_sec: 60 + webhook: '{{N8N_WEBHOOK_URL}}/action-network/action' diff --git a/migrations/metadata/databases/votepeloclima/tables/public_candidature_candidatureflow.yaml b/migrations/metadata/databases/votepeloclima/tables/public_candidature_candidatureflow.yaml index be29c4f..eb618b7 100644 --- a/migrations/metadata/databases/votepeloclima/tables/public_candidature_candidatureflow.yaml +++ b/migrations/metadata/databases/votepeloclima/tables/public_candidature_candidatureflow.yaml @@ -1,6 +1,6 @@ table: - schema: public name: candidature_candidatureflow + schema: public event_triggers: - name: votepeloclima-validacao-cadastro definition: @@ -9,7 +9,7 @@ event_triggers: columns: - status retry_conf: - num_retries: 0 interval_sec: 10 + num_retries: 0 timeout_sec: 60 webhook: '{{N8N_WEBHOOK_URL}}/votepeloclima/validacao/cadastro/' diff --git a/migrations/metadata/metrics_config.yaml b/migrations/metadata/metrics_config.yaml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/migrations/metadata/metrics_config.yaml @@ -0,0 +1 @@ +{} diff --git a/migrations/metadata/opentelemetry.yaml b/migrations/metadata/opentelemetry.yaml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/migrations/metadata/opentelemetry.yaml @@ -0,0 +1 @@ +{}