Fix render partial deprecation warning on proposals#12035
Fix render partial deprecation warning on proposals#12035andreslucena merged 12 commits intodevelopfrom
Conversation
…s/shared/_index.js
…ated: decidim/application/_document.html
There was a problem hiding this comment.
Great find! I got to admit that I think that I've introduced one of these just the past week with initiatives signatures 😅
I think I found some more, can you check it out?
- decidim-core/app/views/decidim/application/_collection.html.erb
19: <%= render partial: "decidim/application/document.html", locals: { document: } %> - decidim-initiatives/app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.pdf.erb
1:<%= render partial: "signatures.html.erb", locals: {
Then I think I found even more but as far as I these aren't even on the logs as they're from cells. I'd want to fix them in either case, to have consistency:
$ rg "partial: (.*).html\"" decidim*/app/ | grep -v formats
decidim-core/app/cells/decidim/user_conversations/show.erb: <%= render partial: "decidim/messaging/conversations/conversation.html", locals: { conversation:, nickname: } %>
decidim-core/app/cells/decidim/user_conversations/new_conversation_button.erb: <%= render partial: "decidim/messaging/conversations/add_conversation_users.html" %>
decidim-core/app/cells/decidim/newsletter_templates/basic_only_text/show.erb: <%= render partial: "layouts/decidim/mailer_logo.html", locals: { organization:, custom_url_for_mail_root: } %>
decidim-core/app/cells/decidim/linked_resources_for/show.erb: <%= render partial: "#{klass.constantize.resource_manifest.template}.html", locals: { resources: } %>
decidim-core/app/cells/decidim/documents_panel/show.erb:<%= render partial: "decidim/application/documents.html", locals: { documents: } %>
decidim-core/app/cells/decidim/newsletter_templates/image_text_cta/show.erb: <%= render partial: "layouts/decidim/mailer_logo.html", locals: { organization:, custom_url_for_mail_root: } %>
decidim-core/app/cells/decidim/user_conversation/messages.erb:<%= render partial: "decidim/messaging/conversations/messages.html", locals: { sender:, messages: } %>
decidim-core/app/views/decidim/application/_collection.html.erb: <%= render partial: "decidim/application/document.html", locals: { document: } %>
decidim-meetings/app/cells/decidim/meetings/dates_and_map/static_map.erb:<%= render partial: "decidim/shared/static_map.html", locals: { geolocalizable: meeting } %>
decidim-comments/app/cells/decidim/comments/comment/deletion_data.erb:<%= render partial: "decidim/comments/comments/delete.html", locals: { comment: model } %>
decidim-comments/app/cells/decidim/comments/comment/moderation_data.erb:<%= render partial: "decidim/comments/comments/moderated.html", locals: { comment: model } %>
decidim-budgets/app/cells/decidim/budgets/budgets_list/main_list.erb:<%= render partial: "decidim/shared/orders.html", locals: { orders: AVAILABLE_ORDERS, i18n_scope: "decidim.budgets.projects.orders" } %>
decidim-meetings/app/views/decidim/meetings/directory/meetings/index.js.erb
Outdated
Show resolved
Hide resolved
…/index.js.erb Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
|
@alecslupu heads-up, we have a broken build |
Already working on it ... |
…nto chore/fix-deprecations
|
@alecslupu FYI there's still a relevant failing spec here 😃 |
@andreslucena another round ? |
|
@alecslupu should we backport this one? I'm thinking in the pollution of the logs/CI, and that this should not be difficult to backport, although it can get a bit tricky if we find new partials on v0.27. What do you think? |
I would say to skip it :) Let's focus on cleaning up the 0.28 pipeline... as there are some other things that are bugging me ( static_map 500 errors, Some find( count: 1) on capybara, some CSP errors and also a lot of JS errors ... ) . If we clean those, it may easier to spot pipeline issues in the future. |
* develop: (51 commits) Fix a11y violations and title layout on announcements (#12067) Fix randomness on nickname and emails for seeded users (#12058) Fix render partial deprecation warning on proposals (#12035) Redesign: proposal counter total number avaliable (#12014) Fix disabling access to space private users when the space is public (#12031) Redesign: admin screen overflow on smaller screens (#11956) Make the breadcrumb consistent in the components import pages (#12024) Fix develop branch (#12051) Create the IconRegistry (#11982) Fix process groups component content blocks (#11872) Remove the asemblies settings page (#11873) Fix n+1 query on assemblies permissions (#12040) Remove unused scope filter from search controller and command (#12038) Fix issues in "Verify your identity" (#12030) Fix flash of dropdowns in buttons from the title bar and "Manage" button (#12011) Add CI workflow configuration for decidim-design (#12022) Extract methods from participatory processes seeds (#12032) Show message when there are no debates (#12037) Show error message when there are no budgets nor projects in budgets (#12034) Fix faker requirement in production environment 2 (#12033) ...

🎩 What? Why?
In the action pipeline there are a lot of deprecation warnings, having the following structure:
This PR tries to fix this.
Testing
Pipeline should be green
The actions should not broadcast any other deprecation warnings as the one mentioned:
📷 Screenshots
Please add screenshots of the changes you are proposing
