From 10356c17d27cf87a230a21456c804407678245f2 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Mon, 19 Sep 2022 18:39:31 +0200 Subject: [PATCH] Increase schema complexity for awesome maps, fix Czech translation for calendar --- .../image.d/srv/decidim-app/config/initializers/decidim.rb | 6 ++++++ decidim/image.d/srv/decidim-app/config/locales/cs.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/decidim/image.d/srv/decidim-app/config/initializers/decidim.rb b/decidim/image.d/srv/decidim-app/config/initializers/decidim.rb index adabbc8..4e79497 100644 --- a/decidim/image.d/srv/decidim-app/config/initializers/decidim.rb +++ b/decidim/image.d/srv/decidim-app/config/initializers/decidim.rb @@ -322,3 +322,9 @@ Rails.application.config.i18n.default_locale = Decidim.default_locale # Inform Decidim about the assets folder Decidim.register_assets_path File.expand_path("app/packs", Rails.application.root) + +# Requred by decidim_awesome maps +Rails.application.config.to_prepare do + Decidim::Api::Schema.max_complexity = 5000 + Decidim::Api::Schema.max_depth = 50 +end diff --git a/decidim/image.d/srv/decidim-app/config/locales/cs.yml b/decidim/image.d/srv/decidim-app/config/locales/cs.yml index 005430e..5ca75f2 100644 --- a/decidim/image.d/srv/decidim-app/config/locales/cs.yml +++ b/decidim/image.d/srv/decidim-app/config/locales/cs.yml @@ -44,6 +44,6 @@ cs: ical: Stáhnout iCAL activerecord: models: - decidim/calendar: + decidim/event_calendar: one: Kalendář other: Kalendáře