Coder Social home page Coder Social logo

mainio / decidim-module-plans Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 2.0 1.41 MB

A component for Decidim that allows collaborative planning before the ideas go to budgeting phase.

License: GNU Affero General Public License v3.0

Ruby 82.07% JavaScript 5.12% HTML 12.18% SCSS 0.63%

decidim-module-plans's Introduction

Decidim::Plans

Build Status codecov

The gem has been developed by Mainio Tech.

A Decidim module that provides a new component that can be added to any participatory space in Decidim. The component allows users to write plans together that link to specific proposals. Further on these plans can be converted to budgeting projects once the process moves to budgeting.

The idea of plans is for the people to plan together the proposals further before a budgeting voting is started. During the planning process people should come up with a more specific plan for the project based on which the budget can be evaluated.

The plans component is based on the Decidim's own proposals component with the following differences:

  • Plans are multilingual so that they can be copied over to budgeting projects.
  • Plans are collaborative by default, borrowing ideas from collaborative drafts in the proposals component.
  • Plans can be linked to proposals in the same participatory space.
  • The format of the plan form can be customized, so the fields that users need to fill can be customized instead of relying on a fixed set of fields. This allows all plans to appear in the same format.
  • Plans can be later on converted into budgeting processes for the budgets component once they are finished. When converting, the different sections are converted to sub-headings in the budgeting project's description and the budget needs to be specified by the user doing the conversion.

Development of this gem has been sponsored by the City of Helsinki.

Installation

Add this line to your application's Gemfile:

gem "decidim-plans"

And then execute:

$ bundle
$ bundle exec rails decidim_favorites:install:migrations
$ bundle exec rails decidim_feedback:install:migrations
$ bundle exec rails decidim_tags:install:migrations
$ bundle exec rails decidim_plans:install:migrations
$ bundle exec rails db:migrate

To keep the gem up to date, you can use the commands above to also update it.

Usage

You can add the plans component to any participatory space. After adding, users can start writing the plans when plan creation is enabled.

Contributing

For instructions how to setup your development environment for Decidim, see Decidim. Also follow Decidim's general instructions for development for this project as well.

Developing

To start contributing to this project, first:

  • Install the basic dependencies (such as Ruby and PostgreSQL)
  • Clone this repository

Decidim's main repository also provides a Docker configuration file if you prefer to use Docker instead of installing the dependencies locally on your machine.

You can create the development app by running the following commands after cloning this project:

$ bundle
$ DATABASE_USERNAME=<username> DATABASE_PASSWORD=<password> bundle exec rake development_app
$ npm i

Note that the database user has to have rights to create and drop a database in order to create the dummy test app database.

Then to test how the module works in Decidim, start the development server:

$ cd development_app
$ DATABASE_USERNAME=<username> DATABASE_PASSWORD=<password> bundle exec rails s

In case you are using rbenv and have the rbenv-vars plugin installed for it, you can add the environment variables to the root directory of the project in a file named .rbenv-vars. If these are defined for the environment, you can omit defining these in the commands shown above.

Code Styling

Please follow the code styling defined by the different linters that ensure we are all talking with the same language collaborating on the same project. This project is set to follow the same rules that Decidim itself follows.

The following linters are used:

You can run the code styling checks by running the following commands from the console:

$ bundle exec rubocop
$ npm run lint
$ npm run stylelint

To ease up following the style guide, you should install the plugins to your favorite editor, such as:

Testing

To run the tests run the following in the gem development path:

$ bundle
$ DATABASE_USERNAME=<username> DATABASE_PASSWORD=<password> bundle exec rake test_app
$ DATABASE_USERNAME=<username> DATABASE_PASSWORD=<password> bundle exec rspec

Please read the notes regarding these commands from the development environment setup above.

Test code coverage

If you want to generate the code coverage report for the tests, you can use the SIMPLECOV=1 environment variable in the rspec command as follows:

$ SIMPLECOV=1 bundle exec rspec

This will generate a folder named coverage in the project root which contains the code coverage report.

Localization

If you would like to see this module in your own language, you can help with its translation at Crowdin:

https://crowdin.com/project/decidim-plans

License

See LICENSE-AGPLv3.txt.

decidim-module-plans's People

Contributors

ahukkanen avatar mainio-integration-bot avatar sinaeftekhar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

decidim-module-plans's Issues

Exclude unpublished plans from admin listing

Currently the admin listing is displaying also unpublished plans. These should be excluded from the listing.

The listing could still show, however, how many plans are pending (i.e. unpublished). This could be implemented similarly to the budgeting component, at the bottom of the screen showing "Number of unpublished plans: X".

Use resource links instead of dedicated mapping table for linking plans to proposals

Now the plans are using a dedicated table to create the links to the proposals. There is the disadvantage from this that e.g. the proposal pages do not link back to the plan.

By using the resource links feature available in the core, the implementation would follow the same conventions and add these built-in linking benefits.

For reference implementation, see the budgets module:
https://github.com/decidim/decidim/blob/1ac1a3e7cb193f8f318d816d4ef01d2d5699b8c8/decidim-budgets/app/commands/decidim/budgets/admin/create_project.rb#L48-L50

Make it possible to move the plans between different plan components

Currently there have been many requests to move the plans from one process to another. This should be possible in the component itself.

The moving process should take care of:

  • Mapping each content for the sections to the corresponding sections in the other component. User should be able to define which original sections gets mapped to which sections in the new component.
  • Mapping the categories of the component's space to the categories in the new space. In case the space is the same, this does not need to be done. If they are different, the user should be able to define which category from the old space gets mapped to which in the new space. In case the corresponding category is not mapped, the category gets removed from those plans that got moved.

Moving should be possible only if exactly the same amount of sections exists in the new component as in the original component.

Linking to plans in comments

The automatic link generation does not work for plans when they are referred to from comments.

This should work similarly to proposals where the link is automatically created and the proposal's name is shown in the link.

Error in installing

After adding the gem "decidim-plans" to Gemfile.

With trying bundle I got this error:

Bundler could not find compatible versions for gem "decidim-proposals":
  In snapshot (Gemfile.lock):
    decidim-proposals (= 0.23.1)

  In Gemfile:
    decidim-dev (= 0.23.1) was resolved to 0.23.1, which depends on
      decidim (= 0.23.1) was resolved to 0.23.1, which depends on
        decidim-proposals (= 0.23.1)

    decidim-plans was resolved to 0.15.1, which depends on
      decidim-proposals (~> 0.15.0)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

I have tried bundle update and bundle update decidim-plans and got the same error

Clear note for the user that the plan can no longer be edited

After the plan is closed (or "marked as done"), there should be a clear indication for the user that the plan has proceeded to evaluation.

The text can show as follows:

  • English: "The plan is being evaluated, editing not allowed."
  • Finnish: "Suunnitelma arvioinnissa, muokkaaminen estetty."
  • Swedish: "Planen beräknas, redigering är inte tillåten."

0.22-stable version

Could you create a 0.22-stable tag? I've been trying to install this gem, but can't find a tag, branch, or ref that works with Decidim 0.22. I keep getting this dependency error:

Bundler could not find compatible versions for gem "graphql":
  In snapshot (Gemfile.lock):
    graphql (= 1.11.5)

  In Gemfile:
    decidim-dev (= 0.22.0) was resolved to 0.22.0, which depends on
      decidim (= 0.22.0) was resolved to 0.22.0, which depends on
        decidim-api (= 0.22.0) was resolved to 0.22.0, which depends on
          graphql (~> 1.9)

    decidim-plans was resolved to 0.22.0, which depends on
      graphql (~> 1.9.19)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.```

Attachments are broken with IE11

Currently the attachments do not work with IE11 in case something has already been attached. This issue is because IE11 does not understand the <template> tag and therefore the contents of that tag are interpreted as the first attachment in IE11. This will break e.g. validation of the other items in the list and causes potentially lost attachments.

Here is the tag causing this:

<template>
<%= fields_for "#{form.object_name}[attachments][#{blank_attachment.to_param}]", blank_attachment do |attachment_form| %>
<%= render partial: "decidim/plans/shared/attachment_fields", object: attachment_form, locals: { form: attachment_form, id: tabs_id_for_attachment(blank_attachment) } %>
<% end %>
</template>

And here is the code in the decidim-admin module that requires that tag:
https://github.com/decidim/decidim/blob/b1bd393d840ca02bf242508e072bee2ebaa6da40/decidim-admin/app/assets/javascripts/decidim/admin/dynamic_fields.component.js.es6#L85

This needs to be overridden in our component and fixed in decidim-admin as well.

Display proposal ID in the proposal selector listing

As with some of the other components in the admin panel, display the proposal ID with the # character (e.g. This is a proposal (#123)) in the proposal selector listing when searching among all proposals.

It has been reported that some users want to search them by ID.

Internal tags for the plans that the admins can control

It should be possible for the admin users to assign "internal tags" for the plans. These tags can only be assigned through the admin panel.

These tags should also be searchable from the front-end UI filtering sidebar.

It should be configurable whether these tags are in use or not. If they are not in use, admins cannot assign them and they are also not visible in the front-end UI.

Filtering with tags can cause duplicates in the listing

When filtering with the tags, it can cause duplicates in the listing. This happens if multiple tags are selected from the filtering options which all match with the duplicate items in the listing.

E.g. create the following tags:

  • "One"
  • "Other"

Create two plans and:

  • For the first one, tag it with both tags "One" and "Other"
  • For the second one, tag it with "One"

Now, when you filter with both "One" and "Other", the first plan will show up twice in the listing.

Decidim API not working with Plans module on v0.22

Hi Antti,

I was testing this module and noticed that it breaks the API, also breaking the comments in the process.

Here's the stacktrace:

NameError (uninitialized constant Decidim::Plans::Api::TimestampsInterface):
  
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:74:in `block in load_missing_constant'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:8:in `without_bootsnap_cache'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:74:in `rescue in load_missing_constant'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:56:in `load_missing_constant'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/lib/decidim/plans/api/content_interface.rb:8:in `<module:ContentInterface>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/lib/decidim/plans/api/content_interface.rb:6:in `<module:Api>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/lib/decidim/plans/api/content_interface.rb:5:in `<module:Plans>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/lib/decidim/plans/api/content_interface.rb:4:in `<module:Decidim>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/lib/decidim/plans/api/content_interface.rb:3:in `<main>'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/section_content/content_type.rb:10:in `<class:ContentType>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/section_content/content_type.rb:6:in `<module:SectionContent>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/section_content/content_type.rb:5:in `<module:Plans>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/section_content/content_type.rb:4:in `<module:Decidim>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/section_content/content_type.rb:3:in `<main>'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
activesupport (5.2.4.4) lib/active_support/dependencies/interlock.rb:14:in `block in loading'
activesupport (5.2.4.4) lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
activesupport (5.2.4.4) lib/active_support/dependencies/interlock.rb:13:in `loading'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:46:in `block in require_or_load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:45:in `require_or_load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `block in load_missing_constant'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:57:in `load_missing_constant'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/content_subject.rb:12:in `<class:ContentSubject>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/content_subject.rb:7:in `<module:Plans>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/content_subject.rb:4:in `<module:Decidim>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/content_subject.rb:3:in `<main>'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
activesupport (5.2.4.4) lib/active_support/dependencies/interlock.rb:14:in `block in loading'
activesupport (5.2.4.4) lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
activesupport (5.2.4.4) lib/active_support/dependencies/interlock.rb:13:in `loading'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:46:in `block in require_or_load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:45:in `require_or_load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `block in load_missing_constant'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:57:in `load_missing_constant'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/plan_type.rb:41:in `<class:PlanType>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/plan_type.rb:5:in `<module:Plans>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/plan_type.rb:4:in `<module:Decidim>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/plan_type.rb:3:in `<main>'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
activesupport (5.2.4.4) lib/active_support/dependencies/interlock.rb:14:in `block in loading'
activesupport (5.2.4.4) lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
activesupport (5.2.4.4) lib/active_support/dependencies/interlock.rb:13:in `loading'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:46:in `block in require_or_load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:45:in `require_or_load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `block in load_missing_constant'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:57:in `load_missing_constant'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `block in load_missing_constant'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:57:in `load_missing_constant'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/plans_type.rb:11:in `<class:PlansType>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/plans_type.rb:5:in `<module:Plans>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/plans_type.rb:4:in `<module:Decidim>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-module-plans-61d88f345d32/app/types/decidim/plans/plans_type.rb:3:in `<main>'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
activesupport (5.2.4.4) lib/active_support/dependencies/interlock.rb:14:in `block in loading'
activesupport (5.2.4.4) lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
activesupport (5.2.4.4) lib/active_support/dependencies/interlock.rb:13:in `loading'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:46:in `block in require_or_load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:45:in `require_or_load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `block in load_missing_constant'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:57:in `load_missing_constant'
activesupport (5.2.4.4) lib/active_support/inflector/methods.rb:285:in `const_get'
activesupport (5.2.4.4) lib/active_support/inflector/methods.rb:285:in `block in constantize'
activesupport (5.2.4.4) lib/active_support/inflector/methods.rb:281:in `each'
activesupport (5.2.4.4) lib/active_support/inflector/methods.rb:281:in `inject'
activesupport (5.2.4.4) lib/active_support/inflector/methods.rb:281:in `constantize'
activesupport (5.2.4.4) lib/active_support/core_ext/string/inflections.rb:68:in `constantize'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-e0cb3a1ee409/decidim-api/lib/decidim/api.rb:14:in `map'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-e0cb3a1ee409/decidim-api/lib/decidim/api.rb:14:in `orphan_types'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-e0cb3a1ee409/decidim-api/app/types/decidim/api/schema.rb:14:in `block in <module:Api>'
graphql (1.9.21) lib/graphql/define/instance_definable.rb:166:in `instance_eval'
graphql (1.9.21) lib/graphql/define/instance_definable.rb:166:in `ensure_defined'
graphql (1.9.21) lib/graphql/schema.rb:292:in `define'
graphql (1.9.21) lib/graphql/define/instance_definable.rb:233:in `define'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-e0cb3a1ee409/decidim-api/app/types/decidim/api/schema.rb:6:in `<module:Api>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-e0cb3a1ee409/decidim-api/app/types/decidim/api/schema.rb:4:in `<module:Decidim>'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-e0cb3a1ee409/decidim-api/app/types/decidim/api/schema.rb:3:in `<main>'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
activesupport (5.2.4.4) lib/active_support/dependencies/interlock.rb:14:in `block in loading'
activesupport (5.2.4.4) lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
activesupport (5.2.4.4) lib/active_support/dependencies/interlock.rb:13:in `loading'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:46:in `block in require_or_load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:45:in `require_or_load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `block in load_missing_constant'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:57:in `load_missing_constant'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `block in load_missing_constant'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:57:in `load_missing_constant'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-e0cb3a1ee409/decidim-api/app/controllers/decidim/api/queries_controller.rb:11:in `create'
actionpack (5.2.4.4) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
actionpack (5.2.4.4) lib/abstract_controller/base.rb:194:in `process_action'
actionpack (5.2.4.4) lib/action_controller/metal/rendering.rb:30:in `process_action'
actionpack (5.2.4.4) lib/abstract_controller/callbacks.rb:42:in `block in process_action'
activesupport (5.2.4.4) lib/active_support/callbacks.rb:109:in `block in run_callbacks'
activesupport (5.2.4.4) lib/active_support/core_ext/time/zones.rb:66:in `use_zone'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-e0cb3a1ee409/decidim-core/app/controllers/concerns/decidim/use_organization_time_zone.rb:21:in `use_organization_time_zone'
activesupport (5.2.4.4) lib/active_support/callbacks.rb:118:in `block in run_callbacks'
sentry-raven (2.11.1) lib/raven/integrations/rails/controller_transaction.rb:7:in `block in included'
activesupport (5.2.4.4) lib/active_support/callbacks.rb:118:in `instance_exec'
activesupport (5.2.4.4) lib/active_support/callbacks.rb:118:in `block in run_callbacks'
activesupport (5.2.4.4) lib/active_support/callbacks.rb:136:in `run_callbacks'
actionpack (5.2.4.4) lib/abstract_controller/callbacks.rb:41:in `process_action'
actionpack (5.2.4.4) lib/action_controller/metal/rescue.rb:22:in `process_action'
actionpack (5.2.4.4) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
activesupport (5.2.4.4) lib/active_support/notifications.rb:168:in `block in instrument'
activesupport (5.2.4.4) lib/active_support/notifications/instrumenter.rb:23:in `instrument'
activesupport (5.2.4.4) lib/active_support/notifications.rb:168:in `instrument'
actionpack (5.2.4.4) lib/action_controller/metal/instrumentation.rb:32:in `process_action'
actionpack (5.2.4.4) lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
activerecord (5.2.4.4) lib/active_record/railties/controller_runtime.rb:24:in `process_action'
actionpack (5.2.4.4) lib/abstract_controller/base.rb:134:in `process'
actionview (5.2.4.4) lib/action_view/rendering.rb:32:in `process'
actionpack (5.2.4.4) lib/action_controller/metal.rb:191:in `dispatch'
actionpack (5.2.4.4) lib/action_controller/metal.rb:252:in `dispatch'
actionpack (5.2.4.4) lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
actionpack (5.2.4.4) lib/action_dispatch/routing/route_set.rb:34:in `serve'
actionpack (5.2.4.4) lib/action_dispatch/journey/router.rb:52:in `block in serve'
actionpack (5.2.4.4) lib/action_dispatch/journey/router.rb:35:in `each'
actionpack (5.2.4.4) lib/action_dispatch/journey/router.rb:35:in `serve'
actionpack (5.2.4.4) lib/action_dispatch/routing/route_set.rb:840:in `call'
railties (5.2.4.4) lib/rails/engine.rb:524:in `call'
railties (5.2.4.4) lib/rails/railtie.rb:190:in `public_send'
railties (5.2.4.4) lib/rails/railtie.rb:190:in `method_missing'
actionpack (5.2.4.4) lib/action_dispatch/routing/mapper.rb:19:in `block in <class:Constraints>'
actionpack (5.2.4.4) lib/action_dispatch/routing/mapper.rb:48:in `serve'
actionpack (5.2.4.4) lib/action_dispatch/journey/router.rb:52:in `block in serve'
actionpack (5.2.4.4) lib/action_dispatch/journey/router.rb:35:in `each'
actionpack (5.2.4.4) lib/action_dispatch/journey/router.rb:35:in `serve'
actionpack (5.2.4.4) lib/action_dispatch/routing/route_set.rb:840:in `call'
railties (5.2.4.4) lib/rails/engine.rb:524:in `call'
railties (5.2.4.4) lib/rails/railtie.rb:190:in `public_send'
railties (5.2.4.4) lib/rails/railtie.rb:190:in `method_missing'
actionpack (5.2.4.4) lib/action_dispatch/routing/mapper.rb:19:in `block in <class:Constraints>'
actionpack (5.2.4.4) lib/action_dispatch/routing/mapper.rb:48:in `serve'
actionpack (5.2.4.4) lib/action_dispatch/journey/router.rb:52:in `block in serve'
actionpack (5.2.4.4) lib/action_dispatch/journey/router.rb:35:in `each'
actionpack (5.2.4.4) lib/action_dispatch/journey/router.rb:35:in `serve'
actionpack (5.2.4.4) lib/action_dispatch/routing/route_set.rb:840:in `call'
batch-loader (1.5.0) lib/batch_loader/middleware.rb:11:in `call'
omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'
omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
omniauth (1.9.1) lib/omniauth/builder.rb:45:in `call'
warden (1.2.9) lib/warden/manager.rb:36:in `block in call'
warden (1.2.9) lib/warden/manager.rb:34:in `catch'
warden (1.2.9) lib/warden/manager.rb:34:in `call'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-e0cb3a1ee409/decidim-core/app/middleware/decidim/strip_x_forwarded_host.rb:11:in `call'
/Users/Pierre/.rvm/gems/ruby-2.6.3/bundler/gems/decidim-e0cb3a1ee409/decidim-core/app/middleware/decidim/current_organization.rb:21:in `call'
rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.2.3) lib/rack/etag.rb:27:in `call'
rack (2.2.3) lib/rack/conditional_get.rb:40:in `call'
rack (2.2.3) lib/rack/head.rb:12:in `call'
actionpack (5.2.4.4) lib/action_dispatch/http/content_security_policy.rb:18:in `call'
rack (2.2.3) lib/rack/session/abstract/id.rb:266:in `context'
rack (2.2.3) lib/rack/session/abstract/id.rb:260:in `call'
actionpack (5.2.4.4) lib/action_dispatch/middleware/cookies.rb:670:in `call'
activerecord (5.2.4.4) lib/active_record/migration.rb:559:in `call'
actionpack (5.2.4.4) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (5.2.4.4) lib/active_support/callbacks.rb:98:in `run_callbacks'
actionpack (5.2.4.4) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
actionpack (5.2.4.4) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (5.2.4.4) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app'
web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call'
web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch'
web-console (3.7.0) lib/web_console/middleware.rb:20:in `call'
actionpack (5.2.4.4) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
railties (5.2.4.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (5.2.4.4) lib/rails/rack/logger.rb:26:in `block in call'
activesupport (5.2.4.4) lib/active_support/tagged_logging.rb:71:in `block in tagged'
activesupport (5.2.4.4) lib/active_support/tagged_logging.rb:28:in `tagged'
activesupport (5.2.4.4) lib/active_support/tagged_logging.rb:71:in `tagged'
railties (5.2.4.4) lib/rails/rack/logger.rb:26:in `call'
sprockets-rails (3.2.2) lib/sprockets/rails/quiet_assets.rb:13:in `call'
actionpack (5.2.4.4) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
request_store (1.5.0) lib/request_store/middleware.rb:19:in `call'
actionpack (5.2.4.4) lib/action_dispatch/middleware/request_id.rb:27:in `call'
rack (2.2.3) lib/rack/method_override.rb:24:in `call'
activesupport (5.2.4.4) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
actionpack (5.2.4.4) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (5.2.4.4) lib/action_dispatch/middleware/static.rb:127:in `call'
rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
sentry-raven (2.11.1) lib/raven/integrations/rack.rb:51:in `call'
rack-cors (1.1.1) lib/rack/cors.rb:100:in `call'
railties (5.2.4.4) lib/rails/engine.rb:524:in `call'
puma (4.3.3) lib/puma/configuration.rb:228:in `call'
puma (4.3.3) lib/puma/server.rb:682:in `handle_request'
puma (4.3.3) lib/puma/server.rb:472:in `process_client'
puma (4.3.3) lib/puma/server.rb:328:in `block in run'
puma (4.3.3) lib/puma/thread_pool.rb:134:in `block in spawn_thread'

I filed an issue on the decidim repo (#6841). It seems to be appearing on try.decidim.org which doesn't use this module so I'm not sure what the root cause is. Removing your module solved the problem for me...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.