Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Decidim 0.22.0 #14

Closed
sauloperez opened this issue Sep 10, 2020 · 1 comment · Fixed by #65
Closed

Upgrade to Decidim 0.22.0 #14

sauloperez opened this issue Sep 10, 2020 · 1 comment · Fixed by #65
Assignees

Comments

@sauloperez
Copy link
Collaborator

sauloperez commented Sep 10, 2020

Decidim released version 0.22.0 on Sept 2nd, which among tons of things, touches consultations. A blind attempt at bumping DECIDIM_VERSION raised:

Started GET "/" for 127.0.0.1 at 2020-09-10 11:23:08 +0200                                                                      
   (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
  ↳ /home/pau/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.3/lib/active_record/log_subscriber.rb:98
  Decidim::Organization Load (0.5ms)  SELECT  "decidim_organizations".* FROM "decidim_organizations" WHERE "decidim_organizations"."host" = $1 LIMIT $2  [["host", "decidim.local"], ["LIMIT", 1]]
  ↳ /home/pau/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activerecord-5.2.4.3/lib/active_record/log_subscriber.rb:98
Processing by Decidim::HomepageController#show as HTML                                                                          
  Rendering /home/pau/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/decidim-core-0.22.0/app/views/decidim/homepage/show.html.erb within layouts/decidim/application
  Rendered /home/pau/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/decidim-core-0.22.0/app/views/decidim/homepage/show.html.erb within layouts/decidim/application (9.1ms)
Completed 500 Internal Server Error in 26ms (ActiveRecord: 1.1ms)          
                                                                                                                                
                                                                                                                                
                                                                                                                                
ActionView::Template::Error (PG::UndefinedColumn: ERROR:  column decidim_content_blocks.scope_name does not exist
LINE 1: ...ontent_blocks"."decidim_organization_id" = $1 AND "decidim_c...                
                                                             ^                                                                  
: SELECT "decidim_content_blocks".* FROM "decidim_content_blocks" WHERE "decidim_content_blocks"."published_at" IS NOT NULL AND "decidim_content_blocks"."decidim_organization_id" = $1 AND "decidim_content_blocks"."scope_name" = $2 ORDER BY "decidim_content
_blocks"."weight" ASC):                                                                                                         
     7:   )                                                                                                                     
     8: %>                                                                                                                      
     9:                                                                                                                         
    10: <% Decidim::ContentBlock.published.for_scope(:homepage, organization: current_organization).each do |content_block| %>
    11:   <% next unless content_block.manifest %>                                                                              
    12:   <%= cell content_block.manifest.cell, content_block %>                                                       
    13: <% end %>                                                                                                                                                             

so definitely, there are migrations involved.

We need to go through the changes listed in the Changelog, specifically for decidim-core, decidim-admin and decidim-consultations, which are the engines we rely on. For that comparing the changeset against 0.21.0 will also be useful.

@microstudi
Copy link
Collaborator

I think it is something related to permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants