Fix proposal listing on space's index content block#14035
Fix proposal listing on space's index content block#14035andreslucena merged 6 commits intodevelopfrom
Conversation
andreslucena
left a comment
There was a problem hiding this comment.
I see that this is indeed fixing the issue, but instead of the issue that you've found, I'm also seeing a 500 error in develop related to this content block:
ActionView::Template::Error (undefined local variable or method `current_settings' for an instance of Decidim::Proposals::ProposalLCell):
32: <% active_content_blocks.each do |content_block| %>
33: <% next unless content_block.manifest %>
34:
35: <%= cell content_block.manifest.cell, content_block %>
36: <% end %>
37:
38: </div>
activesupport (7.0.8.4) lib/active_support/core_ext/module/delegation.rb:307:in `method_missing'
/home/apereira/Work/decidim/decidim/decidim-proposals/app/cells/decidim/proposals/proposal_l/show.erb:8:in `__tilt_60240'
tilt (2.6.0) lib/tilt/template.rb:394:in `bind_call'
This is actually fixed with your PR, but can you do a spec for this case? Ideally this should be in decidim-proposals/spec/cells/decidim/proposals/highlighted_proposals_for_component_cell_spec.rb (but if you can't reproduce it there then I guess we can do a system spec)
This is exactly the issue i have found while trying to develop. Later on, i realized that anything else of the exception, is just a proposal cell cache. |
decidim-proposals/spec/cells/decidim/proposals/highlighted_proposals_for_component_cell_spec.rb
Fixed
Show fixed
Hide fixed
|
@andreslucena this should be ready for another round. |
* Fix proposal listing on Process Space Page * Add cache key to show/hide voting * Add specs * Fix Spelling
* Fix proposal listing on Process Space Page * Add cache key to show/hide voting * Add specs * Fix Spelling
* Fix proposal listing on Process Space Page * Add cache key to show/hide voting * Add specs * Fix Spelling
* Fix proposal listing on Process Space Page * Add cache key to show/hide voting * Add specs * Fix Spelling
* Fix proposal listing on Process Space Page * Add cache key to show/hide voting * Add specs * Fix Spelling
🎩 What? Why?
While trying to review #14030, i have noticed that on nightly, we get the following layout:

This PR hides the voting component in the highlighted proposals cell to respect the previous layout.
While trying on my local, i have noticed that the page is raising an error
📌 Related Issues
Link your PR to an issue
Testing
📷 Screenshots
Please add screenshots of the changes you are proposing
