Skip to content

Fix admin logs proposal presenter#6637

Merged
tramuntanal merged 4 commits intodevelopfrom
fix/admin_logs_with_i18n_proposals
Oct 8, 2020
Merged

Fix admin logs proposal presenter#6637
tramuntanal merged 4 commits intodevelopfrom
fix/admin_logs_with_i18n_proposals

Conversation

@mrcasals
Copy link
Copy Markdown
Contributor

@mrcasals mrcasals commented Oct 7, 2020

🎩 What? Why?

Admin logs have problems rendering proposals afteer they were moved to i18n. This Pr fixes the problem.

📌 Related Issues

Link your PR to an issue

Testing

Create a proposal as an admin before this PR. Visit the admin logs, see it fail. USe this PR and see it properly working.

📋 Checklist

🚨 Please review the guidelines for contributing to this repository.

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

📷 Screenshots

None

♥️ Thank you!

@mrcasals
Copy link
Copy Markdown
Contributor Author

mrcasals commented Oct 8, 2020

@decidim/core can you review this, please?

@tramuntanal tramuntanal added in-review release: v0.23 Issues that need to be tackled for v0.23 labels Oct 8, 2020
@tramuntanal tramuntanal self-assigned this Oct 8, 2020
Copy link
Copy Markdown
Contributor

@tramuntanal tramuntanal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mrcasals thanks for the fix, just one quick question, I'm worried the PR may be slightly changing the behavior of the presenter

mrcasals and others added 2 commits October 8, 2020 11:56
…alue_types/proposal_title_body_presenter.rb

Co-authored-by: Oliver Valls <199462+tramuntanal@users.noreply.github.com>
@mrcasals
Copy link
Copy Markdown
Contributor Author

mrcasals commented Oct 8, 2020

@tramuntanal thanks for taking care of the linting! The test suite is green, apart from That Meetings Test™! 😄

@tramuntanal tramuntanal merged commit bf87750 into develop Oct 8, 2020
@tramuntanal tramuntanal deleted the fix/admin_logs_with_i18n_proposals branch October 8, 2020 13:19
@tramuntanal
Copy link
Copy Markdown
Contributor

We're taking care of the backport, thanks @mrcasals 👍

tramuntanal added a commit that referenced this pull request Oct 8, 2020
* Fix admin logs proposal preesenter

* Lint code

* Update decidim-proposals/app/presenters/decidim/proposals/admin_log/value_types/proposal_title_body_presenter.rb

Co-authored-by: Oliver Valls <199462+tramuntanal@users.noreply.github.com>

* Rubocopify

Co-authored-by: Oliver Valls <199462+tramuntanal@users.noreply.github.com>
tramuntanal added a commit that referenced this pull request Oct 8, 2020
* Fix admin logs proposal preesenter

* Lint code

* Update decidim-proposals/app/presenters/decidim/proposals/admin_log/value_types/proposal_title_body_presenter.rb

Co-authored-by: Oliver Valls <199462+tramuntanal@users.noreply.github.com>

* Rubocopify

Co-authored-by: Oliver Valls <199462+tramuntanal@users.noreply.github.com>

Co-authored-by: Marc Riera <mrc2407@gmail.com>
@mrcasals mrcasals added the type: fix PRs that implement a fix for a bug label Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in-review module: core module: proposals release: v0.23 Issues that need to be tackled for v0.23 type: fix PRs that implement a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants