decidim-restfull-core 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/app/commands/decidim/rest_full/core/create_api_client.rb +40 -0
- data/app/commands/decidim/rest_full/core/impersonate_resource_owner_from_credentials.rb +151 -0
- data/app/commands/decidim/rest_full/core/syncronize_unconfirmed_host.rb +45 -0
- data/app/controllers/concerns/decidim/api/rest_full/async_api_job_enqueuing.rb +69 -0
- data/app/controllers/concerns/decidim/api/rest_full/collection_pagination.rb +78 -0
- data/app/controllers/concerns/decidim/api/rest_full/collection_pagination_meta.rb +25 -0
- data/app/controllers/concerns/decidim/api/rest_full/conditional_get_rendering.rb +49 -0
- data/app/controllers/concerns/decidim/api/rest_full/extended_data_endpoints.rb +96 -0
- data/app/controllers/concerns/decidim/api/rest_full/job_response_linking.rb +31 -0
- data/app/controllers/decidim/api/rest_full/application_controller.rb +245 -0
- data/app/controllers/decidim/api/rest_full/attachments/attachments_controller.rb +81 -0
- data/app/controllers/decidim/api/rest_full/components/component_extended_data_controller.rb +31 -0
- data/app/controllers/decidim/api/rest_full/components/components_controller.rb +68 -0
- data/app/controllers/decidim/api/rest_full/core/resources_controller.rb +142 -0
- data/app/controllers/decidim/api/rest_full/core.rb +11 -0
- data/app/controllers/decidim/api/rest_full/jobs/jobs_controller.rb +109 -0
- data/app/controllers/decidim/api/rest_full/organizations/organization_extended_data_controller.rb +31 -0
- data/app/controllers/decidim/api/rest_full/organizations/organizations_controller.rb +234 -0
- data/app/controllers/decidim/api/rest_full/roles/roles_controller.rb +125 -0
- data/app/controllers/decidim/api/rest_full/spaces/space_extended_data_controller.rb +29 -0
- data/app/controllers/decidim/api/rest_full/spaces/spaces_controller.rb +225 -0
- data/app/controllers/decidim/api/rest_full/users/magic_links_controller.rb +81 -0
- data/app/controllers/decidim/api/rest_full/users/user_extended_data_controller.rb +92 -0
- data/app/controllers/decidim/api/rest_full/users/users_controller.rb +40 -0
- data/app/controllers/decidim/api/rest_full/webhooks/webhook_events_controller.rb +33 -0
- data/app/controllers/decidim/api/rest_full/webhooks/webhook_registrations_controller.rb +106 -0
- data/app/controllers/decidim/rest_full/pages_controller.rb +9 -0
- data/app/controllers/decidim/rest_full/system/api_clients_controller.rb +69 -0
- data/app/controllers/decidim/rest_full/system/permissions_controller.rb +30 -0
- data/app/controllers/decidim/rest_full/system/webhook_registrations_controller.rb +49 -0
- data/app/forms/decidim/rest_full/core/admin/config_form.rb +49 -0
- data/app/forms/decidim/rest_full/core/api_client_form.rb +20 -0
- data/app/forms/decidim/rest_full/core/api_permissions.rb +18 -0
- data/app/forms/decidim/rest_full/core/magic_link_redirect_url_form.rb +114 -0
- data/app/forms/decidim/rest_full/core/webhook_event_form.rb +35 -0
- data/app/forms/decidim/rest_full/core/webhook_registration_form.rb +49 -0
- data/app/jobs/decidim/rest_full/application_job.rb +10 -0
- data/app/jobs/decidim/rest_full/core/space_webhook_job.rb +60 -0
- data/app/jobs/decidim/rest_full/core/syncronize_unconfirmed_host_job.rb +18 -0
- data/app/jobs/decidim/rest_full/core/webhook_job.rb +13 -0
- data/app/jobs/decidim/rest_full/execute_api_job_job.rb +55 -0
- data/app/models/decidim/rest_full/api_job.rb +74 -0
- data/app/models/decidim/rest_full/core/ability.rb +195 -0
- data/app/models/decidim/rest_full/core/api_client.rb +56 -0
- data/app/models/decidim/rest_full/core/magic_token.rb +45 -0
- data/app/models/decidim/rest_full/core/permission.rb +15 -0
- data/app/models/decidim/rest_full/core/resource_extended_data.rb +16 -0
- data/app/models/decidim/rest_full/core/webhook_registration.rb +61 -0
- data/app/overrides/system_host_input.rb +40 -0
- data/app/serializers/decidim/api/rest_full/core/application_serializer.rb +19 -0
- data/app/serializers/decidim/api/rest_full/core/assembly_serializer.rb +13 -0
- data/app/serializers/decidim/api/rest_full/core/attachment_serializer.rb +76 -0
- data/app/serializers/decidim/api/rest_full/core/awesome_iframe_component_serializer.rb +12 -0
- data/app/serializers/decidim/api/rest_full/core/awesome_map_component_serializer.rb +12 -0
- data/app/serializers/decidim/api/rest_full/core/component_serializer.rb +97 -0
- data/app/serializers/decidim/api/rest_full/core/helpers/resource_links_helper.rb +48 -0
- data/app/serializers/decidim/api/rest_full/core/magic_link_redirect_serializer.rb +43 -0
- data/app/serializers/decidim/api/rest_full/core/magic_link_serializer.rb +44 -0
- data/app/serializers/decidim/api/rest_full/core/organization_serializer.rb +60 -0
- data/app/serializers/decidim/api/rest_full/core/organization_webhook_serializer.rb +21 -0
- data/app/serializers/decidim/api/rest_full/core/page_component_serializer.rb +20 -0
- data/app/serializers/decidim/api/rest_full/core/page_serializer.rb +12 -0
- data/app/serializers/decidim/api/rest_full/core/participatory_process_serializer.rb +13 -0
- data/app/serializers/decidim/api/rest_full/core/resource_serializer.rb +84 -0
- data/app/serializers/decidim/api/rest_full/core/role_serializer.rb +21 -0
- data/app/serializers/decidim/api/rest_full/core/serializer_lookup.rb +55 -0
- data/app/serializers/decidim/api/rest_full/core/space_serializer.rb +117 -0
- data/app/serializers/decidim/api/rest_full/core/space_webhook_serializer.rb +64 -0
- data/app/serializers/decidim/api/rest_full/core/user_serializer.rb +43 -0
- data/app/serializers/decidim/api/rest_full/core/user_webhook_serializer.rb +21 -0
- data/app/serializers/decidim/api/rest_full/core/webhook_registration_serializer.rb +25 -0
- data/app/serializers/decidim/api/rest_full/core/webhook_serializer.rb +68 -0
- data/app/serializers/decidim/api/rest_full/core.rb +10 -0
- data/app/services/decidim/rest_full/core/api_system_operations.rb +505 -0
- data/app/services/decidim/rest_full/core/fire_webhook.rb +114 -0
- data/app/services/decidim/rest_full/core/participatory_process_step_activated_webhook_handler.rb +39 -0
- data/app/services/decidim/rest_full/participatory_space_visibility.rb +64 -0
- data/app/views/decidim/rest_full/core/admin/_organization_settings_tab.html.erb +35 -0
- data/app/views/decidim/rest_full/pages/show.html.erb +60 -0
- data/app/views/decidim/rest_full/system/api_clients/_edit_info_tab.erb +261 -0
- data/app/views/decidim/rest_full/system/api_clients/_edit_webhook_tab.erb +74 -0
- data/app/views/decidim/rest_full/system/api_clients/_form.html.erb +23 -0
- data/app/views/decidim/rest_full/system/api_clients/_permissions_scope.html.erb +22 -0
- data/app/views/decidim/rest_full/system/api_clients/edit.html.erb +53 -0
- data/app/views/decidim/rest_full/system/api_clients/index.html.erb +37 -0
- data/app/views/decidim/rest_full/system/api_clients/new.html.erb +13 -0
- data/app/views/decidim/rest_full/system/api_clients/show.html.erb +10 -0
- data/config/i18n-tasks.yml +381 -0
- data/config/locales/decidim_rest_full.en.yml +184 -0
- data/config/routes.rb +116 -0
- data/db/migrate/20241125061513_create_api_client_permissions.rb +12 -0
- data/db/migrate/20250112155305_create_proposal_application_id.rb +11 -0
- data/db/migrate/20250131155931_add_users_magic_token.rb +14 -0
- data/db/migrate/20250609083335_create_webhooks_table.rb +16 -0
- data/db/migrate/20250609091039_add_is_event_to_api_client_permissions.rb +7 -0
- data/db/migrate/20250624080106_create_organization_extended_data.rb +11 -0
- data/db/migrate/20260321120000_add_redirect_url_to_decidim_rest_full_user_magic_tokens.rb +7 -0
- data/db/migrate/20260511120000_create_decidim_rest_full_api_jobs.rb +23 -0
- data/db/migrate/20260515120000_add_poll_and_oauth_context_to_rest_full_api_jobs.rb +38 -0
- data/db/migrate/20260516153000_remove_poll_secret_from_decidim_rest_full_api_jobs.rb +7 -0
- data/db/migrate/20260516160000_add_org_status_index_to_rest_full_api_jobs.rb +9 -0
- data/db/migrate/20260805070000_create_resource_extended_data.rb +44 -0
- data/lib/decidim/rest_full/api_execution_context.rb +58 -0
- data/lib/decidim/rest_full/api_job_command_runner.rb +48 -0
- data/lib/decidim/rest_full/api_job_payload.rb +19 -0
- data/lib/decidim/rest_full/cli/base.rb +84 -0
- data/lib/decidim/rest_full/cli/create.rb +122 -0
- data/lib/decidim/rest_full/cli/delete.rb +48 -0
- data/lib/decidim/rest_full/cli/get.rb +53 -0
- data/lib/decidim/rest_full/cli/grant.rb +58 -0
- data/lib/decidim/rest_full/cli/revoke.rb +53 -0
- data/lib/decidim/rest_full/cli.rb +70 -0
- data/lib/decidim/rest_full/core/apartment_tenant_switch.rb +23 -0
- data/lib/decidim/rest_full/core/api_exception.rb +179 -0
- data/lib/decidim/rest_full/core/attachments_operations.rb +232 -0
- data/lib/decidim/rest_full/core/configuration.rb +116 -0
- data/lib/decidim/rest_full/core/definition_registry.rb +509 -0
- data/lib/decidim/rest_full/core/doorkeeper_config.rb +130 -0
- data/lib/decidim/rest_full/core/engine.rb +167 -0
- data/lib/decidim/rest_full/core/extended_data_at_path.rb +22 -0
- data/lib/decidim/rest_full/core/gem_spec_paths.rb +56 -0
- data/lib/decidim/rest_full/core/has_extended_data.rb +70 -0
- data/lib/decidim/rest_full/core/http_cache/collection_fingerprint.rb +97 -0
- data/lib/decidim/rest_full/core/http_cache/fingerprint_contributor_registry.rb +53 -0
- data/lib/decidim/rest_full/core/http_cache/request_oauth_context.rb +34 -0
- data/lib/decidim/rest_full/core/http_cache/resource_show_fingerprint.rb +74 -0
- data/lib/decidim/rest_full/core/menu.rb +18 -0
- data/lib/decidim/rest_full/core/module_availability.rb +181 -0
- data/lib/decidim/rest_full/core/open_api_definition_paths.rb +59 -0
- data/lib/decidim/rest_full/core/overrides/application_mailer_override.rb +50 -0
- data/lib/decidim/rest_full/core/overrides/organization_client_ids_override.rb +17 -0
- data/lib/decidim/rest_full/core/overrides/update_organization_command_override.rb +27 -0
- data/lib/decidim/rest_full/core/overrides/update_organization_form_override.rb +46 -0
- data/lib/decidim/rest_full/core/overrides/user_extended_data_ransack.rb +15 -0
- data/lib/decidim/rest_full/core/overrides/user_magic_token_override.rb +27 -0
- data/lib/decidim/rest_full/core/permission_registry.rb +65 -0
- data/lib/decidim/rest_full/core/ransackers.rb +99 -0
- data/lib/decidim/rest_full/core/rest_enhancement_builder.rb +115 -0
- data/lib/decidim/rest_full/core/rest_enhancement_registration.rb +21 -0
- data/lib/decidim/rest_full/core/roles/role_id_codec.rb +50 -0
- data/lib/decidim/rest_full/core/roles/roles_aggregator.rb +203 -0
- data/lib/decidim/rest_full/core/roles/roles_writer.rb +343 -0
- data/lib/decidim/rest_full/core/route_registry.rb +123 -0
- data/lib/decidim/rest_full/core/serializer_additions_registry.rb +100 -0
- data/lib/decidim/rest_full/core/settings_tab.rb +22 -0
- data/lib/decidim/rest_full/core/swagger_spec_paths.rb +61 -0
- data/lib/decidim/rest_full/core/tokens_availability.rb +23 -0
- data/lib/decidim/rest_full/core/webhook_dispatcher.rb +55 -0
- data/lib/decidim/rest_full/core/webhook_event_catalog.rb +136 -0
- data/lib/decidim/rest_full/extension.rb +276 -0
- data/lib/decidim/rest_full/rest_full.rb +12 -0
- data/lib/decidim/rest_full/routes.rb +58 -0
- data/lib/decidim/rest_full/routing.rb +53 -0
- data/lib/decidim/rest_full/sync_runner.rb +14 -0
- data/lib/decidim/rest_full/test/apartment.rb +52 -0
- data/lib/decidim/rest_full/test/definitions/README.md +96 -0
- data/lib/decidim/rest_full/test/definitions/attachment.rb +64 -0
- data/lib/decidim/rest_full/test/definitions/collection_meta.rb +20 -0
- data/lib/decidim/rest_full/test/definitions/component.rb +99 -0
- data/lib/decidim/rest_full/test/definitions/component_type.rb +8 -0
- data/lib/decidim/rest_full/test/definitions/core.rb +16 -0
- data/lib/decidim/rest_full/test/definitions/creation_date.rb +11 -0
- data/lib/decidim/rest_full/test/definitions/edition_date.rb +11 -0
- data/lib/decidim/rest_full/test/definitions/error.rb +40 -0
- data/lib/decidim/rest_full/test/definitions/filter_param.rb +105 -0
- data/lib/decidim/rest_full/test/definitions/grant_param.rb +82 -0
- data/lib/decidim/rest_full/test/definitions/health.rb +12 -0
- data/lib/decidim/rest_full/test/definitions/introspect_data.rb +67 -0
- data/lib/decidim/rest_full/test/definitions/job.rb +130 -0
- data/lib/decidim/rest_full/test/definitions/locales_param.rb +19 -0
- data/lib/decidim/rest_full/test/definitions/magic_link.rb +37 -0
- data/lib/decidim/rest_full/test/definitions/magic_link_redirect.rb +32 -0
- data/lib/decidim/rest_full/test/definitions/manifests.rb +28 -0
- data/lib/decidim/rest_full/test/definitions/oauth_token_response.rb +18 -0
- data/lib/decidim/rest_full/test/definitions/organization.rb +75 -0
- data/lib/decidim/rest_full/test/definitions/organization_extended_data.rb +19 -0
- data/lib/decidim/rest_full/test/definitions/publication_date.rb +11 -0
- data/lib/decidim/rest_full/test/definitions/relationship_identifier.rb +29 -0
- data/lib/decidim/rest_full/test/definitions/resource_extended_data.rb +20 -0
- data/lib/decidim/rest_full/test/definitions/role.rb +61 -0
- data/lib/decidim/rest_full/test/definitions/shared.rb +22 -0
- data/lib/decidim/rest_full/test/definitions/space.rb +112 -0
- data/lib/decidim/rest_full/test/definitions/tags/attachments_tag.rb +26 -0
- data/lib/decidim/rest_full/test/definitions/tags/component_tag.rb +26 -0
- data/lib/decidim/rest_full/test/definitions/tags/jobs_tag.rb +20 -0
- data/lib/decidim/rest_full/test/definitions/tags/oauth_tag.rb +28 -0
- data/lib/decidim/rest_full/test/definitions/tags/organization_extended_data_tag.rb +22 -0
- data/lib/decidim/rest_full/test/definitions/tags/organizations_tag.rb +24 -0
- data/lib/decidim/rest_full/test/definitions/tags/roles_tag.rb +14 -0
- data/lib/decidim/rest_full/test/definitions/tags/space_tag.rb +22 -0
- data/lib/decidim/rest_full/test/definitions/tags/users_tag.rb +14 -0
- data/lib/decidim/rest_full/test/definitions/tags/webhooks_tag.rb +31 -0
- data/lib/decidim/rest_full/test/definitions/tags.rb +12 -0
- data/lib/decidim/rest_full/test/definitions/time_zone.rb +10 -0
- data/lib/decidim/rest_full/test/definitions/translated_prop.rb +11 -0
- data/lib/decidim/rest_full/test/definitions/user.rb +93 -0
- data/lib/decidim/rest_full/test/definitions/user_extended_data.rb +14 -0
- data/lib/decidim/rest_full/test/definitions/webhook.rb +95 -0
- data/lib/decidim/rest_full/test/definitions.rb +15 -0
- data/lib/decidim/rest_full/test/factories/api_client.rb +16 -0
- data/lib/decidim/rest_full/test/factories/magic_token.rb +13 -0
- data/lib/decidim/rest_full/test/factories/webhook_registration.rb +10 -0
- data/lib/decidim/rest_full/test/factories.rb +5 -0
- data/lib/decidim/rest_full/test/global_context.rb +11 -0
- data/lib/decidim/rest_full/test/on_api_endpoint_methods.rb +190 -0
- data/lib/decidim/rest_full/test/open_api_tag_registry.rb +25 -0
- data/lib/decidim/rest_full/test/openapi_specs.rb +107 -0
- data/lib/decidim/rest_full/test/shared_examples/has_extended_data.rb +41 -0
- data/lib/decidim/rest_full/test/shared_examples.rb +345 -0
- data/lib/decidim/rest_full/version.rb +27 -0
- data/lib/decidim/rest_full.rb +99 -0
- data/lib/decidim-restfull-core.rb +3 -0
- data/lib/tasks/decidim/rest_full/fire_webhook.rake +52 -0
- data/lib/tasks/decidim/rest_full/integrator_sandbox.rake +37 -0
- data/lib/tasks/decidim/rest_full/rest_full_upgrade.rake +64 -0
- data/lib/tasks/decidim/rest_full/rest_full_webpacker.rake +58 -0
- data/spec/commands/decidim/rest_full/core/impersonate_resource_owner_from_credentials_spec.rb +159 -0
- data/spec/commands/decidim/rest_full/core/syncronize_unconfirmed_host_spec.rb +117 -0
- data/spec/controllers/concerns/decidim/api/rest_full/collection_pagination_spec.rb +128 -0
- data/spec/decidim/rest_full/core/configuration_engine_disabled_routes_spec.rb +24 -0
- data/spec/forms/decidim/rest_full/core/magic_link_redirect_url_form_spec.rb +69 -0
- data/spec/forms/decidim/rest_full/core/webhook_registration_form_spec.rb +42 -0
- data/spec/jobs/decidim/rest_full/core/space_webhook_job_spec.rb +62 -0
- data/spec/jobs/decidim/rest_full/core/syncronize_unconfirmed_host_job_spec.rb +34 -0
- data/spec/jobs/decidim/rest_full/core/webhook_job_spec.rb +29 -0
- data/spec/jobs/decidim/rest_full/execute_api_job_job_spec.rb +45 -0
- data/spec/lib/decidim/rest_full/core/apartment_tenant_switch_spec.rb +26 -0
- data/spec/lib/decidim/rest_full/core/api_exception/bad_request_spec.rb +62 -0
- data/spec/lib/decidim/rest_full/core/definition_registry_add_resource_relationships_spec.rb +19 -0
- data/spec/lib/decidim/rest_full/core/gem_spec_paths_spec.rb +27 -0
- data/spec/lib/decidim/rest_full/core/http_cache/collection_fingerprint_spec.rb +59 -0
- data/spec/lib/decidim/rest_full/core/http_cache/fingerprint_contributor_registry_spec.rb +60 -0
- data/spec/lib/decidim/rest_full/core/http_cache/resource_show_fingerprint_spec.rb +33 -0
- data/spec/lib/decidim/rest_full/core/module_availability_spec.rb +130 -0
- data/spec/lib/decidim/rest_full/core/open_api_definition_paths_spec.rb +54 -0
- data/spec/lib/decidim/rest_full/core/optional_feature_gems_spec.rb +172 -0
- data/spec/lib/decidim/rest_full/core/roles/role_id_codec_spec.rb +62 -0
- data/spec/lib/decidim/rest_full/core/roles/roles_aggregator_spec.rb +53 -0
- data/spec/lib/decidim/rest_full/core/roles/roles_writer_spec.rb +38 -0
- data/spec/lib/decidim/rest_full/core/route_registry_spec.rb +90 -0
- data/spec/lib/decidim/rest_full/core/serializer_additions_registry_spec.rb +100 -0
- data/spec/lib/decidim/rest_full/core/settings_tab_spec.rb +15 -0
- data/spec/lib/decidim/rest_full/core/swagger_spec_paths_spec.rb +50 -0
- data/spec/lib/decidim/rest_full/core/webhook_dispatcher_proposal_published_spec.rb +63 -0
- data/spec/lib/decidim/rest_full/core/webhook_event_catalog_spec.rb +34 -0
- data/spec/lib/decidim/rest_full/routing_spec.rb +62 -0
- data/spec/lib/decidim/rest_full/test/apartment_spec.rb +17 -0
- data/spec/models/decidim/rest_full/api_job_spec.rb +51 -0
- data/spec/models/decidim/rest_full/application_mailer_override_spec.rb +60 -0
- data/spec/models/decidim/rest_full/core/has_extended_data_spec.rb +16 -0
- data/spec/models/decidim/rest_full/core/magic_token_spec.rb +68 -0
- data/spec/models/decidim/rest_full/core/webhook_registration_spec.rb +161 -0
- data/spec/models/decidim/rest_full/user_magic_token_spec.rb +51 -0
- data/spec/requests/decidim/api/rest_full/application_controller_introspect_spec.rb +85 -0
- data/spec/requests/decidim/api/rest_full/application_controller_ropc_spec.rb +299 -0
- data/spec/requests/decidim/api/rest_full/application_controller_token_spec.rb +57 -0
- data/spec/requests/decidim/api/rest_full/attachments/attachments_controller_direct_upload_spec.rb +39 -0
- data/spec/requests/decidim/api/rest_full/attachments/attachments_controller_index_spec.rb +41 -0
- data/spec/requests/decidim/api/rest_full/attachments/attachments_controller_show_spec.rb +34 -0
- data/spec/requests/decidim/api/rest_full/components/component_extended_data_controller_spec.rb +78 -0
- data/spec/requests/decidim/api/rest_full/components/components_controller_search_spec.rb +197 -0
- data/spec/requests/decidim/api/rest_full/components/components_controller_search_sql_spec.rb +48 -0
- data/spec/requests/decidim/api/rest_full/jobs/api_jobs_async_and_conditional_get_spec.rb +209 -0
- data/spec/requests/decidim/api/rest_full/jobs/jobs_controller_destroy_spec.rb +58 -0
- data/spec/requests/decidim/api/rest_full/jobs/jobs_controller_index_spec.rb +126 -0
- data/spec/requests/decidim/api/rest_full/jobs/jobs_controller_show_spec.rb +89 -0
- data/spec/requests/decidim/api/rest_full/module_availability_gate_spec.rb +77 -0
- data/spec/requests/decidim/api/rest_full/organizations/organization_extended_data_controller_index_spec.rb +88 -0
- data/spec/requests/decidim/api/rest_full/organizations/organization_extended_data_controller_update_spec.rb +194 -0
- data/spec/requests/decidim/api/rest_full/organizations/organizations_controller_index_spec.rb +57 -0
- data/spec/requests/decidim/api/rest_full/organizations/organizations_controller_show_spec.rb +66 -0
- data/spec/requests/decidim/api/rest_full/organizations/organizations_controller_update_spec.rb +120 -0
- data/spec/requests/decidim/api/rest_full/roles/roles_controller_create_spec.rb +230 -0
- data/spec/requests/decidim/api/rest_full/roles/roles_controller_destroy_spec.rb +52 -0
- data/spec/requests/decidim/api/rest_full/roles/roles_controller_index_spec.rb +127 -0
- data/spec/requests/decidim/api/rest_full/roles/roles_controller_show_spec.rb +215 -0
- data/spec/requests/decidim/api/rest_full/routes_boot_spec.rb +58 -0
- data/spec/requests/decidim/api/rest_full/scenarios/upsert_user_by_phone_and_set_locale_spec.rb +69 -0
- data/spec/requests/decidim/api/rest_full/spaces/space_extended_data_controller_spec.rb +78 -0
- data/spec/requests/decidim/api/rest_full/spaces/spaces_controller_index_spec.rb +167 -0
- data/spec/requests/decidim/api/rest_full/spaces/spaces_controller_search_spec.rb +280 -0
- data/spec/requests/decidim/api/rest_full/spaces/spaces_controller_show_spec.rb +98 -0
- data/spec/requests/decidim/api/rest_full/users/magic_links_controller_create_spec.rb +124 -0
- data/spec/requests/decidim/api/rest_full/users/magic_links_controller_show_spec.rb +84 -0
- data/spec/requests/decidim/api/rest_full/users/user_extended_data_controller_index_spec.rb +74 -0
- data/spec/requests/decidim/api/rest_full/users/user_extended_data_controller_update_spec.rb +192 -0
- data/spec/requests/decidim/api/rest_full/users/users_controller_index_spec.rb +182 -0
- data/spec/requests/decidim/api/rest_full/webhooks/webhook_events_controller_show_spec.rb +52 -0
- data/spec/requests/decidim/api/rest_full/webhooks/webhook_registrations_controller_create_spec.rb +95 -0
- data/spec/requests/decidim/api/rest_full/webhooks/webhook_registrations_controller_destroy_spec.rb +34 -0
- data/spec/requests/decidim/api/rest_full/webhooks/webhook_registrations_controller_index_spec.rb +43 -0
- data/spec/requests/decidim/api/rest_full/webhooks/webhook_registrations_controller_show_spec.rb +51 -0
- data/spec/requests/decidim/api/rest_full/webhooks/webhook_registrations_controller_update_spec.rb +57 -0
- data/spec/requests/decidim/rest_full/system/api_clients_controller_spec.rb +69 -0
- data/spec/serializers/decidim/api/rest_full/core/organization_webhook_serializer_spec.rb +18 -0
- data/spec/serializers/decidim/api/rest_full/core/space_webhook_serializer_spec.rb +44 -0
- data/spec/serializers/decidim/api/rest_full/core/user_webhook_serializer_spec.rb +19 -0
- data/spec/services/decidim/rest_full/core/api_system_operations_resource_extended_data_update_spec.rb +35 -0
- data/spec/services/decidim/rest_full/core/fire_webhook_spec.rb +59 -0
- data/spec/services/decidim/rest_full/core/participatory_process_step_activated_webhook_handler_spec.rb +57 -0
- metadata +482 -0
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
# i18n-tasks finds and manages missing and unused translations: https://github.com/glebm/i18n-tasks
|
|
2
|
+
|
|
3
|
+
# The "main" locale.
|
|
4
|
+
base_locale: en
|
|
5
|
+
|
|
6
|
+
## Reporting locale, default: en. Available: en, ru.
|
|
7
|
+
# internal_locale: en
|
|
8
|
+
|
|
9
|
+
# Read and write translations.
|
|
10
|
+
data:
|
|
11
|
+
## Translations are read from the file system. Supported format: YAML, JSON.
|
|
12
|
+
## Provide a custom adapter:
|
|
13
|
+
# adapter: I18n::Tasks::Data::FileSystem
|
|
14
|
+
|
|
15
|
+
# Locale files or `File.find` patterns where translations are read from:
|
|
16
|
+
read:
|
|
17
|
+
- 'decidim-restfull-core/config/locales/decidim_rest_full.%{locale}.yml'
|
|
18
|
+
- 'decidim-restfull-accountabilities/config/locales/decidim_rest_full_accountabilities.%{locale}.yml'
|
|
19
|
+
- 'decidim-restfull-blogs/config/locales/decidim_rest_full_blogs.%{locale}.yml'
|
|
20
|
+
- 'decidim-restfull-budgets/config/locales/decidim_rest_full_budgets.%{locale}.yml'
|
|
21
|
+
- 'decidim-restfull-debates/config/locales/decidim_rest_full_debates.%{locale}.yml'
|
|
22
|
+
- 'decidim-restfull-dummy/config/locales/decidim_rest_full_dummy.%{locale}.yml'
|
|
23
|
+
- 'decidim-restfull-forms/config/locales/decidim_rest_full_forms.%{locale}.yml'
|
|
24
|
+
- 'decidim-restfull-meetings/config/locales/decidim_rest_full_meetings.%{locale}.yml'
|
|
25
|
+
- 'decidim-restfull-proposals/config/locales/decidim_rest_full_proposals.%{locale}.yml'
|
|
26
|
+
- 'decidim-restfull-surveys/config/locales/decidim_rest_full_surveys.%{locale}.yml'
|
|
27
|
+
|
|
28
|
+
# Locale files to write new keys to, based on a list of key pattern => file rules. Matched from top to bottom:
|
|
29
|
+
# `i18n-tasks normalize -p` will force move the keys according to these rules
|
|
30
|
+
write:
|
|
31
|
+
- 'decidim-restfull-core/config/locales/decidim_rest_full.%{locale}.yml'
|
|
32
|
+
|
|
33
|
+
## Specify the router (see Readme for details). Valid values: conservative_router, pattern_router, or a custom class.
|
|
34
|
+
# router: conservative_router
|
|
35
|
+
|
|
36
|
+
yaml:
|
|
37
|
+
write:
|
|
38
|
+
# do not wrap lines at 80 characters
|
|
39
|
+
line_width: -1
|
|
40
|
+
|
|
41
|
+
## Pretty-print JSON:
|
|
42
|
+
# json:
|
|
43
|
+
# write:
|
|
44
|
+
# indent: ' '
|
|
45
|
+
# space: ' '
|
|
46
|
+
# object_nl: "\n"
|
|
47
|
+
# array_nl: "\n"
|
|
48
|
+
|
|
49
|
+
locales:
|
|
50
|
+
<% (ENV["ENFORCED_LOCALES"].presence&.split(",") || []).each do |locale| -%>
|
|
51
|
+
<%= "- '#{locale}'" %>
|
|
52
|
+
<% end -%>
|
|
53
|
+
|
|
54
|
+
# Find translate calls
|
|
55
|
+
search:
|
|
56
|
+
## Paths or `File.find` patterns to search in:
|
|
57
|
+
paths:
|
|
58
|
+
- decidim-restfull-core/app
|
|
59
|
+
- decidim-restfull-core/lib
|
|
60
|
+
|
|
61
|
+
# Root directories for relative keys resolution.
|
|
62
|
+
relative_roots:
|
|
63
|
+
- decidim-restfull-core/app/controllers
|
|
64
|
+
- decidim-restfull-core/app/helpers
|
|
65
|
+
- decidim-restfull-core/app/mailers
|
|
66
|
+
- decidim-restfull-core/app/presenters
|
|
67
|
+
- decidim-restfull-core/app/services
|
|
68
|
+
- decidim-restfull-core/app/views
|
|
69
|
+
- decidim-restfull-core/app/cells
|
|
70
|
+
|
|
71
|
+
## Files or `File.fnmatch` patterns to exclude from search. Some files are always excluded regardless of this setting:
|
|
72
|
+
## %w(*.jpg *.png *.gif *.svg *.ico *.eot *.otf *.ttf *.woff *.woff2 *.pdf *.css *.sass *.scss *.less *.yml *.json)
|
|
73
|
+
exclude:
|
|
74
|
+
- decidim-dev/lib/decidim/dev/assets/iso-8859-15.md
|
|
75
|
+
- decidim-dev/lib/decidim/dev/assets/import_participatory_space_private_users_iso8859-1.csv
|
|
76
|
+
- decidim-comments/app/assets/javascripts/decidim/comments/bundle.js
|
|
77
|
+
- decidim-comments/app/assets/javascripts/decidim/comments/bundle.js.map
|
|
78
|
+
- "*.jpeg"
|
|
79
|
+
- "*.odt"
|
|
80
|
+
- "*.docx"
|
|
81
|
+
- "*.xls"
|
|
82
|
+
- "*.xlsx"
|
|
83
|
+
|
|
84
|
+
## Alternatively, the only files or `File.fnmatch patterns` to search in `paths`:
|
|
85
|
+
## If specified, this settings takes priority over `exclude`, but `exclude` still applies.
|
|
86
|
+
# only: ["*.rb", "*.html.slim"]
|
|
87
|
+
|
|
88
|
+
## If `strict` is `false`, guess usages such as t("categories.#{category}.title"). The default is `true`.
|
|
89
|
+
strict: false
|
|
90
|
+
|
|
91
|
+
## Multiple scanners can be used. Their results are merged.
|
|
92
|
+
## The options specified above are passed down to each scanner. Per-scanner options can be specified as well.
|
|
93
|
+
## See this example of a custom scanner: https://github.com/glebm/i18n-tasks/wiki/A-custom-scanner-example
|
|
94
|
+
|
|
95
|
+
## Google Translate
|
|
96
|
+
# translation:
|
|
97
|
+
# # Get an API key and set billing info at https://code.google.com/apis/console to use Google Translate
|
|
98
|
+
# api_key: "AbC-dEf5"
|
|
99
|
+
|
|
100
|
+
# Do not consider these keys missing:
|
|
101
|
+
ignore_missing:
|
|
102
|
+
- components.*
|
|
103
|
+
- browse_resource
|
|
104
|
+
- email_subject
|
|
105
|
+
- email_intro
|
|
106
|
+
- email_outro
|
|
107
|
+
- follows.create.participatory_space
|
|
108
|
+
- notification_title
|
|
109
|
+
- decidim.wizard_step_form_cell.*
|
|
110
|
+
- decidim.proposals.application_helper.activity_filter_values.*
|
|
111
|
+
- decidim.meetings.application_helper.activity_filter_values.*
|
|
112
|
+
- decidim.content_blocks.*_settings_form.show.*
|
|
113
|
+
- decidim.newsletter_templates.*_settings_form.show.*
|
|
114
|
+
- participate_in
|
|
115
|
+
- see_other_versions
|
|
116
|
+
- actions.invalid_destroy.proposals_count
|
|
117
|
+
- decidim.budgets.projects_helper.current_rule_explanation.*
|
|
118
|
+
- decidim.budgets.projects_helper.current_rule_description.*
|
|
119
|
+
- decidim.budgets.projects_helper.current_rule_call_for_action_text.*
|
|
120
|
+
- decidim.debates.debate_m.footer.commented_time_ago
|
|
121
|
+
- date.abbr_day_names
|
|
122
|
+
- date.day_names
|
|
123
|
+
- date.month_names
|
|
124
|
+
- explanation
|
|
125
|
+
|
|
126
|
+
# Consider these keys used:
|
|
127
|
+
ignore_unused:
|
|
128
|
+
- devise.*
|
|
129
|
+
- activemodel.attributes.*
|
|
130
|
+
- activemodel.errors.*
|
|
131
|
+
- activemodel.models.*
|
|
132
|
+
- activerecord.attributes.*
|
|
133
|
+
- activerecord.errors.*
|
|
134
|
+
- activerecord.models.*
|
|
135
|
+
- booleans.*
|
|
136
|
+
- '{date,time.formats}.*'
|
|
137
|
+
- datetime.distance_in_words.*
|
|
138
|
+
- decidim.admin.participatory_process_steps.default_title
|
|
139
|
+
- decidim.authorization_handlers.{direct,multistep}
|
|
140
|
+
- decidim.admin.models.assembly_member.positions.*
|
|
141
|
+
- decidim.application.documents.component_documents.*
|
|
142
|
+
- decidim.statistics.*
|
|
143
|
+
- decidim.components.*
|
|
144
|
+
- decidim.filters.linked_classes.*
|
|
145
|
+
- decidim.shared.participatory_space_filters.filters.*
|
|
146
|
+
- decidim.follows.create.participatory_space
|
|
147
|
+
- decidim.forms.errors.*
|
|
148
|
+
- decidim.forms.file_help.*
|
|
149
|
+
- decidim.forms.user_answers_serializer.*
|
|
150
|
+
- decidim.forms.admin_log.questionnaire.update
|
|
151
|
+
- decidim.proposals.answers.*
|
|
152
|
+
- decidim.proposals.collaborative_drafts.show.see_other_versions
|
|
153
|
+
- decidim.proposals.collaborative_drafts.wizard_aside.back
|
|
154
|
+
- decidim.proposals.collaborative_drafts.wizard_aside.back_from_collaborative_draft
|
|
155
|
+
- decidim.proposals.collaborative_drafts.wizard_aside.back_from_step_1
|
|
156
|
+
- decidim.proposals.collaborative_drafts.wizard_aside.back_from_step_2
|
|
157
|
+
- decidim.proposals.collaborative_drafts.wizard_aside.back_from_step_3
|
|
158
|
+
- decidim.proposals.collaborative_drafts.wizard_aside.back_from_step_4
|
|
159
|
+
- decidim.proposals.proposal_endorsements_helper.endorsements_count_title
|
|
160
|
+
- decidim.proposals.proposals.orders.*
|
|
161
|
+
- decidim.proposals.proposals.endorsements_card_row.comments_title
|
|
162
|
+
- decidim.proposals.proposals.wizard_aside.back
|
|
163
|
+
- decidim.proposals.proposals.wizard_aside.back_from_step_1
|
|
164
|
+
- decidim.proposals.proposals.wizard_aside.back_from_step_2
|
|
165
|
+
- decidim.proposals.proposals.wizard_aside.back_from_step_3
|
|
166
|
+
- decidim.proposals.proposals.wizard_aside.back_from_step_4
|
|
167
|
+
- decidim.proposals.proposals.wizard_steps.current_step
|
|
168
|
+
- decidim.proposals.proposals.wizard_steps.step_1
|
|
169
|
+
- decidim.proposals.proposals.wizard_steps.step_2
|
|
170
|
+
- decidim.proposals.proposals.wizard_steps.step_3
|
|
171
|
+
- decidim.proposals.proposals.wizard_steps.step_4
|
|
172
|
+
- decidim.proposals.proposals.show.proposal_accepted_reason
|
|
173
|
+
- decidim.proposals.proposals.show.proposal_in_evaluation_reason
|
|
174
|
+
- decidim.proposals.proposals.show.proposal_rejected_reason
|
|
175
|
+
- decidim.resource_links.*
|
|
176
|
+
- decidim.system.default_pages.placeholders.*
|
|
177
|
+
- decidim.system.organizations.omniauth_settings.*
|
|
178
|
+
- decidim.verifications.id_documents.{identification_number,passport}
|
|
179
|
+
- decidim.verifications.dummy_authorization.extra_explanation.user_postal_codes.{one,other}
|
|
180
|
+
- decidim.verifications.dummy_authorization.extra_explanation.user_scope
|
|
181
|
+
- errors.messages.*
|
|
182
|
+
- invisible_captcha.*
|
|
183
|
+
- social_share_button.*
|
|
184
|
+
- decidim.features.accountability.name
|
|
185
|
+
- decidim.features.accountability.settings.*
|
|
186
|
+
- decidim.accountability.models.project.valid_statuses.*
|
|
187
|
+
- decidim.accountability.admin_log.*
|
|
188
|
+
- decidim.proposals.admin_log.*
|
|
189
|
+
- decidim.log.base_presenter.*
|
|
190
|
+
- decidim.admin_log.*
|
|
191
|
+
- decidim.debates.debates.filters.*
|
|
192
|
+
- decidim.debates.admin_log.*
|
|
193
|
+
- decidim.meetings.admin_log.*
|
|
194
|
+
- decidim.budgets.admin_log.*
|
|
195
|
+
- decidim.budgets.admin.models.project.name
|
|
196
|
+
- decidim.budgets.budgets_list.cancel_order.more_than_one
|
|
197
|
+
- decidim.budgets.budgets_list.cancel_order.only_one
|
|
198
|
+
- decidim.budgets.budgets_list.finished_message
|
|
199
|
+
- decidim.budgets.budgets_list.highlighted_cta
|
|
200
|
+
- decidim.budgets.budgets_list.if_change_opinion
|
|
201
|
+
- decidim.budgets.budgets_list.my_budgets
|
|
202
|
+
- decidim.budgets.budgets_list.voted_on
|
|
203
|
+
- decidim.budgets.budget_information_modal.close_modal
|
|
204
|
+
- decidim.budgets.budget_information_modal.continue
|
|
205
|
+
- decidim.budgets.budget_information_modal.more_information
|
|
206
|
+
- decidim.budgets.budget_information_modal.back_to
|
|
207
|
+
- decidim.budgets.limit_announcement.cant_vote
|
|
208
|
+
- decidim.budgets.limit_announcement.limit_reached
|
|
209
|
+
- decidim.budgets.projects.order_progress.dynamic_help.*
|
|
210
|
+
- decidim.budgets.projects.order_progress.minimum_projects_rule.*
|
|
211
|
+
- decidim.budgets.projects.order_progress.projects_rule.*
|
|
212
|
+
- decidim.budgets.projects.order_progress.projects_rule_maximum_only.*
|
|
213
|
+
- decidim.budgets.projects.order_progress.maximum_projects_rule.*
|
|
214
|
+
- decidim.budgets.projects.order_progress.vote_threshold_percent_rule.*
|
|
215
|
+
- decidim.orders.checkout.*
|
|
216
|
+
- decidim.budgets.projects.filters.*
|
|
217
|
+
- decidim.initiatives.admin_log.*
|
|
218
|
+
- decidim.initiatives.initiatives.orders.*
|
|
219
|
+
- decidim.initiatives.states.*
|
|
220
|
+
- decidim.initiatives.admin_states.*
|
|
221
|
+
- decidim.initiatives.events.*
|
|
222
|
+
- decidim.initiatives.initiatives.author_list.hidden_authors_count.*
|
|
223
|
+
- decidim.initiatives.initiatives.signatures_count.*
|
|
224
|
+
- decidim.collapsible_list.hidden_elements_count.*
|
|
225
|
+
- decidim.events.*
|
|
226
|
+
- doorkeeper.scopes.*
|
|
227
|
+
- decidim.proposals.proposals.votes_count.count.*
|
|
228
|
+
- decidim.proposals.proposals.show.hidden_endorsers_count.*
|
|
229
|
+
- decidim.admin.models.*.name
|
|
230
|
+
- decidim.admin.models.*.name.*
|
|
231
|
+
- password_validator.*
|
|
232
|
+
- decidim.*.pages.home.highlighted_*.*
|
|
233
|
+
- decidim.participatory_processes.participatory_processes.filters.*
|
|
234
|
+
- decidim.participatory_processes.participatory_processes.description.*
|
|
235
|
+
- decidim.participatory_processes.show.related_assemblies
|
|
236
|
+
- decidim.content_blocks.*.name
|
|
237
|
+
- decidim.participatory_processes.content_blocks.*.name
|
|
238
|
+
- decidim.participatory_process_groups.content_blocks.*.name
|
|
239
|
+
- decidim.assemblies.content_blocks.*.name
|
|
240
|
+
- decidim.initiatives.content_blocks.*.name
|
|
241
|
+
- decidim.meetings.content_blocks.*.name
|
|
242
|
+
- decidim.blogs.content_blocks.*.name
|
|
243
|
+
- decidim.proposals.content_blocks.*.name
|
|
244
|
+
- decidim.proposals.collaborative_drafts.show.hidden_authors_count.*
|
|
245
|
+
- decidim.proposals.collaborative_drafts.orders*
|
|
246
|
+
- decidim.proposals.collaborative_drafts.filters*
|
|
247
|
+
- decidim.proposals.collaborative_drafts.show.withdraw
|
|
248
|
+
- decidim.proposals.collaborative_drafts.show.publish
|
|
249
|
+
- decidim.conferences.content_blocks.*.name
|
|
250
|
+
- decidim.conferences.pages.home.highlighted_conferences.*
|
|
251
|
+
- decidim.conferences.conference_speaker.*
|
|
252
|
+
- decidim.conferences.show.*
|
|
253
|
+
- decidim.conferences.models.conference_registration.fields.states.*
|
|
254
|
+
- decidim.proposals.admin.participatory_texts.sections.*
|
|
255
|
+
- decidim.gamification.badges.*
|
|
256
|
+
- decidim.surveys.surveys.answer.*
|
|
257
|
+
- decidim.surveys.admin.surveys.update.*
|
|
258
|
+
- decidim.groups.roles.*
|
|
259
|
+
- decidim.welcome_notification.*
|
|
260
|
+
- decidim.help.*
|
|
261
|
+
- decidim.amendments.amendable.error
|
|
262
|
+
- decidim.amendments.emendation.announcement.*
|
|
263
|
+
- decidim.amendments.accept.error
|
|
264
|
+
- decidim.search.results
|
|
265
|
+
- decidim.searches.filters.state.*
|
|
266
|
+
- decidim.security.selfxss_warning.*
|
|
267
|
+
- decidim.assemblies.filter.*
|
|
268
|
+
- decidim.assemblies.assemblies.description.*
|
|
269
|
+
- decidim.assemblies.assemblies.filters.*
|
|
270
|
+
- decidim.initiatives.initiatives.votes_count.count.*
|
|
271
|
+
- decidim.proposals.admin.participatory_texts.new_import.accepted_mime_types.*
|
|
272
|
+
- decidim.participatory_processes.admin.new_import.accepted_types.*
|
|
273
|
+
- decidim.assemblies.admin.new_import.accepted_types.*
|
|
274
|
+
- decidim.amendments.visibility_options.*
|
|
275
|
+
- decidim.wizard_step_form.*
|
|
276
|
+
- decidim.proposals.proposals.filters.*
|
|
277
|
+
- decidim.admin.filters.*
|
|
278
|
+
- decidim.proposals.models.proposal.fields.*
|
|
279
|
+
- decidim.admin_terms_of_service.default_body
|
|
280
|
+
- decidim.admin.admin_terms_of_service.required_review.alert
|
|
281
|
+
- decidim.budgets.projects.orders.*
|
|
282
|
+
- forms.length_validator.*
|
|
283
|
+
- layouts.decidim.participatory_process_groups.*
|
|
284
|
+
- decidim.newsletter_templates.basic_only_text.name
|
|
285
|
+
- decidim.newsletter_templates.image_text_cta.name
|
|
286
|
+
- decidim.content_blocks.*_settings_form.*
|
|
287
|
+
- decidim.newsletter_templates.*_settings_form.*
|
|
288
|
+
- decidim.version.show.*
|
|
289
|
+
- decidim.versions_list.show.*
|
|
290
|
+
- decidim.versions_list_item.show.*
|
|
291
|
+
- decidim.accountability.results.show.stats.back_to_resource
|
|
292
|
+
- decidim.meetings.actions.invalid_destroy.proposals_count.*
|
|
293
|
+
- layouts.decidim.participatory_processes.participatory_process.more_info
|
|
294
|
+
- layouts.decidim.participatory_processes.participatory_process.more_info_about
|
|
295
|
+
- layouts.decidim.participatory_processes.participatory_process.take_part
|
|
296
|
+
- layouts.decidim.participatory_processes.participatory_process.take_part_in
|
|
297
|
+
- decidim.debates.debates.show.edit_conclusions
|
|
298
|
+
- activemodel.attributes.organization.machine_translation_display_priority_*
|
|
299
|
+
- decidim.budgets.projects.budget_summary.minimum_projects_rule.*
|
|
300
|
+
- decidim.budgets.projects.budget_summary.projects_rule.*
|
|
301
|
+
- decidim.budgets.projects.budget_summary.projects_rule_maximum_only.*
|
|
302
|
+
- decidim.budgets.projects.budget_summary.vote_threshold_percent_rule.*
|
|
303
|
+
- decidim.budgets.projects.budget_excess.description
|
|
304
|
+
- decidim.debates.debates.orders.*
|
|
305
|
+
- decidim.debates.debate_m.commented_time_ago
|
|
306
|
+
- decidim.devise.sessions.user.timed_out
|
|
307
|
+
- decidim.admin.forms.file_help.import.*
|
|
308
|
+
- decidim.admin.menu.questions_submenu.attachments
|
|
309
|
+
- decidim.admin.menu.questions_submenu.categories
|
|
310
|
+
- decidim.meetings.public_participants_list.hidden_participants_count.*
|
|
311
|
+
- decidim.budgets.budgets_list.*
|
|
312
|
+
- decidim.budgets.projects.project_budget_button.*
|
|
313
|
+
- decidim.meetings.meetings.show.withdraw_btn_hint
|
|
314
|
+
- decidim.meetings.meetings.show.withdraw_confirmation_html
|
|
315
|
+
- decidim.meetings.meetings.show.withdraw_meeting
|
|
316
|
+
- decidim.proposals.proposals.show.withdraw_btn_hint
|
|
317
|
+
- decidim.proposals.proposals.show.withdraw_confirmation_html
|
|
318
|
+
- decidim.proposals.proposals.show.withdraw_proposal
|
|
319
|
+
- decidim.assemblies.admin.assembly_members.form.explanation
|
|
320
|
+
- decidim.assemblies.admin.assembly_members.form.image_guide
|
|
321
|
+
- decidim.assemblies.admin.assembly_members.form.non_user_avatar_help
|
|
322
|
+
- decidim.initiatives.create_initiative.select_initiative_type.*
|
|
323
|
+
- decidim.blogs.admin_log.*
|
|
324
|
+
- decidim.templates.admin_log.*
|
|
325
|
+
- editor.*
|
|
326
|
+
- emojis.*
|
|
327
|
+
- ransack.predicates.*
|
|
328
|
+
- decidim.profiles.user.actions.*
|
|
329
|
+
- decidim.forms.questionnaires.show.answer_questionnaire.*
|
|
330
|
+
- decidim.forms.upload_help.explanation
|
|
331
|
+
- decidim.admin.assembly_user_roles.create.*
|
|
332
|
+
- decidim.admin.assembly_user_roles.update.*
|
|
333
|
+
- decidim.admin.assembly_user_roles.destroy.*
|
|
334
|
+
- decidim.admin.conference_user_roles.create.*
|
|
335
|
+
- decidim.admin.conference_user_roles.update.*
|
|
336
|
+
- decidim.admin.conference_user_roles.destroy.*
|
|
337
|
+
- decidim.admin.participatory_process_user_roles.create.*
|
|
338
|
+
- decidim.admin.participatory_process_user_roles.update.*
|
|
339
|
+
- decidim.admin.participatory_process_user_roles.destroy.*
|
|
340
|
+
- layouts.decidim.participatory_processes.promoted_process.*
|
|
341
|
+
- layouts.decidim.conferences.promoted_conference.*
|
|
342
|
+
- layouts.decidim.assemblies.assembly.*
|
|
343
|
+
- layouts.decidim.conferences.promoted_conference.*
|
|
344
|
+
- versions.directions.*
|
|
345
|
+
- layouts.decidim.conferences.conference.*
|
|
346
|
+
- decidim.admin.conflicts.*
|
|
347
|
+
- decidim.profiles.show.conversations
|
|
348
|
+
- decidim.profiles.show.view_full_profile
|
|
349
|
+
- layouts.decidim.assemblies.promoted_assembly.take_part
|
|
350
|
+
- versions.dropdown.option_*
|
|
351
|
+
- decidim.meetings.meetings.filters.*
|
|
352
|
+
- decidim.meetings.polls.questions.index_admin.statuses.{closed,published,unpublished}
|
|
353
|
+
- decidim.meetings.directory.meetings.index.space_type
|
|
354
|
+
- decidim.authorization_modals.content.*
|
|
355
|
+
- decidim.authorization_handlers.admin.{another_dummy_authorization_handler,csv_census,dummy_authorization_handler,id_documents,postal_letter,sms}.help
|
|
356
|
+
- time.buttons.*
|
|
357
|
+
- decidim.profiles.show.members
|
|
358
|
+
|
|
359
|
+
## Exclude these keys from the `i18n-tasks eq-base' report:
|
|
360
|
+
# ignore_eq_base:
|
|
361
|
+
# all:
|
|
362
|
+
# - common.ok
|
|
363
|
+
# fr,es:
|
|
364
|
+
# - common.brand
|
|
365
|
+
|
|
366
|
+
## Ignore these keys completely:
|
|
367
|
+
# ignore:
|
|
368
|
+
# - kaminari.*
|
|
369
|
+
|
|
370
|
+
## Sometimes, it is not possible for i18n-tasks to match the key correctly,
|
|
371
|
+
## e.g. in case of a relative key defined in a helper method.
|
|
372
|
+
## In these cases you can use the built-in PatternMapper to map patterns to keys, e.g.:
|
|
373
|
+
#
|
|
374
|
+
# <%#= I18n::Tasks.add_scanner 'I18n::Tasks::Scanners::PatternMapper',
|
|
375
|
+
# only: %w(*.html.haml *.html.slim),
|
|
376
|
+
# patterns: [['= title\b', '.page_title']] %>
|
|
377
|
+
#
|
|
378
|
+
# The PatternMapper can also match key literals via a special %{key} interpolation, e.g.:
|
|
379
|
+
#
|
|
380
|
+
# <%#= I18n::Tasks.add_scanner 'I18n::Tasks::Scanners::PatternMapper',
|
|
381
|
+
# patterns: [['\bSpree\.t[( ]\s*%{key}', 'spree.%{key}']] %>
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
---
|
|
2
|
+
en:
|
|
3
|
+
decidim:
|
|
4
|
+
rest_full:
|
|
5
|
+
forms:
|
|
6
|
+
magic_link_redirect_url:
|
|
7
|
+
errors:
|
|
8
|
+
organization_required: Organization is required
|
|
9
|
+
redirect_url:
|
|
10
|
+
ascii_only: Must contain only printable ASCII characters
|
|
11
|
+
https_only: Must use the https scheme
|
|
12
|
+
host_blank: Must include a valid host
|
|
13
|
+
userinfo: Must not include user information
|
|
14
|
+
host_not_allowed: Host is not allowed for this organization
|
|
15
|
+
invalid_url: Is not a valid URL
|
|
16
|
+
admin:
|
|
17
|
+
menu:
|
|
18
|
+
api_clients: API Clients
|
|
19
|
+
models:
|
|
20
|
+
api_client:
|
|
21
|
+
fields:
|
|
22
|
+
client_id: Client ID
|
|
23
|
+
created_at: Created At
|
|
24
|
+
name: Human name
|
|
25
|
+
scope_attachments: 'Attachments: manage attachments'
|
|
26
|
+
scope_oauth: 'Oauth: Manage user'
|
|
27
|
+
scope_pages: 'Page: manage pages'
|
|
28
|
+
scope_public: 'Public: navigate components and spaces'
|
|
29
|
+
scope_roles: 'Roles: manage Decidim roles'
|
|
30
|
+
scope_system: 'System: manage Organizations and Rails'
|
|
31
|
+
scope_spaces: 'Spaces: manage spaces'
|
|
32
|
+
scope_webhooks: 'Webhooks: manage webhook registrations'
|
|
33
|
+
permission:
|
|
34
|
+
oauth:
|
|
35
|
+
extended_data:
|
|
36
|
+
read: 'read extended data: can read extended data'
|
|
37
|
+
update: 'write extended data: update and remove extended data'
|
|
38
|
+
impersonate: 'impersonate: Login as another user'
|
|
39
|
+
login: 'login: login with username/password'
|
|
40
|
+
magic_link: 'magic_link: Create and sign-in through magic link'
|
|
41
|
+
read: 'read: List and detail of users'
|
|
42
|
+
public:
|
|
43
|
+
component:
|
|
44
|
+
extended_data:
|
|
45
|
+
read: 'read extended data: can read component extended data'
|
|
46
|
+
update: 'write extended data: update and remove component extended data'
|
|
47
|
+
read: 'read: list and details of a component'
|
|
48
|
+
space:
|
|
49
|
+
extended_data:
|
|
50
|
+
read: 'read extended data: can read space extended data'
|
|
51
|
+
update: 'write extended data: update and remove space extended data'
|
|
52
|
+
read: 'read: list and details of a space'
|
|
53
|
+
participatory_process:
|
|
54
|
+
step_activated:
|
|
55
|
+
succeeded: 'Process phase activated: send space details with active step'
|
|
56
|
+
roles:
|
|
57
|
+
read: 'read: List and detail of roles'
|
|
58
|
+
write: 'write: Create and destroy roles'
|
|
59
|
+
system:
|
|
60
|
+
organizations:
|
|
61
|
+
created: 'Organization created: send organization details'
|
|
62
|
+
deleted: 'Organization deleted: send organization details'
|
|
63
|
+
destroy: 'destroy: Remove an organization permanently'
|
|
64
|
+
extended_data:
|
|
65
|
+
read: 'read extended data: can read extended data'
|
|
66
|
+
update: 'write extended data: update and remove extended data'
|
|
67
|
+
read: 'read: List and detail of organizations'
|
|
68
|
+
update: 'update: Update an organization'
|
|
69
|
+
updated: 'Organization updated: send organization details'
|
|
70
|
+
server:
|
|
71
|
+
exec: 'exec: Execute jobs'
|
|
72
|
+
restart: 'restart: Soft restart the server'
|
|
73
|
+
users:
|
|
74
|
+
destroy: 'destroy: Remove a user permanently'
|
|
75
|
+
update: 'update: Update a user'
|
|
76
|
+
user:
|
|
77
|
+
created: 'User created: send user details'
|
|
78
|
+
updated: 'User updated: send user details'
|
|
79
|
+
webhooks:
|
|
80
|
+
destroy: 'destroy: delete webhook registrations'
|
|
81
|
+
read: 'read: list and details of webhook registrations'
|
|
82
|
+
write: 'write: create and update webhook registrations'
|
|
83
|
+
pages:
|
|
84
|
+
show:
|
|
85
|
+
documentation_website: Documentation website
|
|
86
|
+
open_api_spec: Open API spec
|
|
87
|
+
title: Decidim Rest API
|
|
88
|
+
system:
|
|
89
|
+
api_clients:
|
|
90
|
+
actions:
|
|
91
|
+
destroy: Revoke
|
|
92
|
+
edit: Edit
|
|
93
|
+
new_api_client: New API Client
|
|
94
|
+
title: Actions
|
|
95
|
+
create:
|
|
96
|
+
error: Could not create API Client
|
|
97
|
+
success: API Client created
|
|
98
|
+
edit:
|
|
99
|
+
go_back: Back to the list
|
|
100
|
+
info: Info
|
|
101
|
+
permissions: Permissions
|
|
102
|
+
save: Save
|
|
103
|
+
title: Edit API Client Credentials
|
|
104
|
+
webhook: Webhook
|
|
105
|
+
edit_info_tab:
|
|
106
|
+
accountability: Accountability
|
|
107
|
+
auth_type: Auth Type
|
|
108
|
+
blogs: Blogs
|
|
109
|
+
budgets: Budgets
|
|
110
|
+
client_id: Client Id
|
|
111
|
+
client_secret: Client Secret
|
|
112
|
+
component: Components
|
|
113
|
+
debates: Debates
|
|
114
|
+
keys_label: Credentials
|
|
115
|
+
meetings: Meetings
|
|
116
|
+
oauth: User Management
|
|
117
|
+
organization_perm: Organization
|
|
118
|
+
permissions_scopes: Allowed scopes
|
|
119
|
+
permissions_title: Permissions
|
|
120
|
+
proposals: Proposals
|
|
121
|
+
rails_perm: Ruby on Rails
|
|
122
|
+
space: Space
|
|
123
|
+
surveys: Surveys
|
|
124
|
+
update_permissions: Update permissions
|
|
125
|
+
user_perm: User
|
|
126
|
+
edit_webhook_tab:
|
|
127
|
+
actions: Actions
|
|
128
|
+
add_webhook: Add Webhook
|
|
129
|
+
cancel: Cancel
|
|
130
|
+
confirm_delete: Are you sure you want to delete this webhook?
|
|
131
|
+
create: Create
|
|
132
|
+
created_at: Created At
|
|
133
|
+
delete: Delete
|
|
134
|
+
no_webhooks: No webhook registrations found.
|
|
135
|
+
subscriptions: Subscriptions
|
|
136
|
+
url: URL
|
|
137
|
+
webhook_registrations: Webhook Registrations
|
|
138
|
+
webhook_url: Webhook URL
|
|
139
|
+
form:
|
|
140
|
+
scopes_label: Allowed scopes
|
|
141
|
+
select_organization: Select an organization
|
|
142
|
+
index:
|
|
143
|
+
confirm_delete: This will block all queries using these credentials. Are you sure?
|
|
144
|
+
title: API Clients
|
|
145
|
+
new:
|
|
146
|
+
save: Create
|
|
147
|
+
title: New API Client Credentials
|
|
148
|
+
show:
|
|
149
|
+
go_back: Back to the list
|
|
150
|
+
webhook_events: Webhook events
|
|
151
|
+
webhook_events_description: Events the API client is allowed to subscribe to.
|
|
152
|
+
update_organization:
|
|
153
|
+
unconfirmed_host_explaination_html: "<div class=\"callout info\">\n <p>\n Before updating the host, please make sure to configure these DNS records: \n <pre>\n%{a_records}\n%{aaa_records}</pre>\n </p>\n</div>\n"
|
|
154
|
+
unconfirmed_host_label: Host
|
|
155
|
+
unconfirmed_host_pending_warning_html: "<div class=\"callout warning\">\n <p class=\"h4\">\n An operation is pending\n </p>\n <p>\n While we are changing the host to <strong>%{unconfirmed_host}</strong>,\n the current host is still <strong>%{host}</strong>.\n </p>\n <p>\n Once we validated your DNS configuration, the host will be updated. <br />\n Please make sure to have these DNS records: \n <pre>\n%{a_records}\n%{aaa_records}</pre>\n </p>\n</div>\n"
|
|
156
|
+
webhook_registrations:
|
|
157
|
+
create:
|
|
158
|
+
success: Webhook registration created successfully
|
|
159
|
+
decidim_toggle:
|
|
160
|
+
system:
|
|
161
|
+
decidim_restfull:
|
|
162
|
+
tab: Restfull
|
|
163
|
+
enabled: Rest API enabled
|
|
164
|
+
modules_legend: Feature modules
|
|
165
|
+
proposals_enabled: Rest API for proposals enabled
|
|
166
|
+
blogs_enabled: Rest API for blogs enabled
|
|
167
|
+
debates_enabled: Rest API for debates enabled
|
|
168
|
+
surveys_enabled: Rest API for surveys enabled
|
|
169
|
+
forms_enabled: Rest API for forms enabled
|
|
170
|
+
meetings_enabled: Rest API for meetings enabled
|
|
171
|
+
attachments_enabled: Rest API for attachments enabled
|
|
172
|
+
budgets_enabled: Rest API for budgets enabled
|
|
173
|
+
accountabilities_enabled: Rest API for accountabilities enabled
|
|
174
|
+
helptext:
|
|
175
|
+
enabled: When off, the whole RestFull API for this organization returns HTTP 501.
|
|
176
|
+
proposals_enabled: Expose proposals scopes, endpoints, and webhooks.
|
|
177
|
+
blogs_enabled: Expose blogs scopes, endpoints, and webhooks.
|
|
178
|
+
debates_enabled: Expose debates scopes and endpoints.
|
|
179
|
+
surveys_enabled: Expose survey component scopes and endpoints.
|
|
180
|
+
forms_enabled: Expose questionnaire/forms endpoints (shared surveys OAuth scope).
|
|
181
|
+
meetings_enabled: Expose meetings scopes, endpoints, and webhooks.
|
|
182
|
+
attachments_enabled: Expose attachments scopes and endpoints.
|
|
183
|
+
budgets_enabled: Expose budgets scopes and endpoints.
|
|
184
|
+
accountabilities_enabled: Expose accountability scopes and endpoints.
|
data/config/routes.rb
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# config/routes.rb
|
|
4
|
+
# Core API routes; Proposals/Blogs register via RouteRegistry.draw_api_routes in their engines.
|
|
5
|
+
# Require domain engines before Core engine in lib/decidim/rest_full.rb so draw_api_routes runs first.
|
|
6
|
+
|
|
7
|
+
CRUD_ACTIONS = [:index, :show, :update, :create, :destroy].freeze unless defined?(CRUD_ACTIONS)
|
|
8
|
+
|
|
9
|
+
Decidim::RestFull::Core::RouteRegistry.core_routes_block = proc do
|
|
10
|
+
get "/", to: "/decidim/rest_full/pages#show"
|
|
11
|
+
post "/oauth/token", to: "/doorkeeper/tokens#create"
|
|
12
|
+
post "/oauth/introspect", to: "/doorkeeper/tokens#introspect"
|
|
13
|
+
|
|
14
|
+
resources :jobs,
|
|
15
|
+
only: [:index, :show, :destroy],
|
|
16
|
+
controller: "/decidim/api/rest_full/jobs/jobs"
|
|
17
|
+
|
|
18
|
+
resources :organizations,
|
|
19
|
+
only: CRUD_ACTIONS,
|
|
20
|
+
controller: "/decidim/api/rest_full/organizations/organizations" do
|
|
21
|
+
member do
|
|
22
|
+
put "/sync", action: :update_sync
|
|
23
|
+
resources :extended_data, only: [], controller: "/decidim/api/rest_full/organizations/organization_extended_data" do
|
|
24
|
+
collection do
|
|
25
|
+
get "/", action: :index
|
|
26
|
+
put "/", action: :update
|
|
27
|
+
put "/sync", action: :update_sync
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
resources :components, only: [] do
|
|
34
|
+
collection do
|
|
35
|
+
get "/search", to: "/decidim/api/rest_full/components/components#search"
|
|
36
|
+
end
|
|
37
|
+
member do
|
|
38
|
+
resources :extended_data, only: [], controller: "/decidim/api/rest_full/components/component_extended_data" do
|
|
39
|
+
collection do
|
|
40
|
+
get "/", action: :index
|
|
41
|
+
put "/", action: :update
|
|
42
|
+
put "/sync", action: :update_sync
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
resources :spaces, only: [] do
|
|
49
|
+
collection do
|
|
50
|
+
get "/search", to: "/decidim/api/rest_full/spaces/spaces#search"
|
|
51
|
+
Decidim.participatory_space_registry.manifests.map(&:name).each do |manifest_name|
|
|
52
|
+
resources manifest_name.to_sym, only: [:index, :show], controller: "/decidim/api/rest_full/spaces/spaces", defaults: { manifest_name: } do
|
|
53
|
+
member do
|
|
54
|
+
resources :extended_data, only: [], controller: "/decidim/api/rest_full/spaces/space_extended_data", defaults: { manifest_name: } do
|
|
55
|
+
collection do
|
|
56
|
+
get "/", action: :index
|
|
57
|
+
put "/", action: :update
|
|
58
|
+
put "/sync", action: :update_sync
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
resources :roles,
|
|
68
|
+
only: [:index, :show, :create, :destroy],
|
|
69
|
+
controller: "/decidim/api/rest_full/roles/roles" do
|
|
70
|
+
collection do
|
|
71
|
+
post "/sync", action: :create_sync
|
|
72
|
+
end
|
|
73
|
+
member do
|
|
74
|
+
delete "/sync", action: :destroy_sync
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
resources :users,
|
|
79
|
+
only: [:index],
|
|
80
|
+
controller: "/decidim/api/rest_full/users/users"
|
|
81
|
+
|
|
82
|
+
resources :attachments,
|
|
83
|
+
only: CRUD_ACTIONS,
|
|
84
|
+
controller: "/decidim/api/rest_full/attachments/attachments" do
|
|
85
|
+
collection do
|
|
86
|
+
post :direct_upload
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
resources :webhook_registrations,
|
|
91
|
+
only: CRUD_ACTIONS,
|
|
92
|
+
controller: "/decidim/api/rest_full/webhooks/webhook_registrations"
|
|
93
|
+
|
|
94
|
+
get "/webhook_events/:event_type",
|
|
95
|
+
to: "/decidim/api/rest_full/webhooks/webhook_events#show",
|
|
96
|
+
as: :webhook_event,
|
|
97
|
+
constraints: { event_type: %r{[^/]+} }
|
|
98
|
+
|
|
99
|
+
resources :me, only: [] do
|
|
100
|
+
collection do
|
|
101
|
+
resources :magic_links, only: [:create], controller: "/decidim/api/rest_full/users/magic_links" do
|
|
102
|
+
collection do
|
|
103
|
+
get "/:id", action: :show, constraints: { id: /[A-Za-z0-9=]+/ }
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
resources :extended_data, only: [], controller: "/decidim/api/rest_full/users/user_extended_data" do
|
|
108
|
+
collection do
|
|
109
|
+
get "/", action: :index
|
|
110
|
+
put "/", action: :update
|
|
111
|
+
put "/sync", action: :update_sync
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|