Skip to content

Fix meeting and debate presenters with machine translations#6643

Merged
tramuntanal merged 3 commits intodevelopfrom
fix/meeting-presenter
Oct 8, 2020
Merged

Fix meeting and debate presenters with machine translations#6643
tramuntanal merged 3 commits intodevelopfrom
fix/meeting-presenter

Conversation

@mrcasals
Copy link
Copy Markdown
Contributor

@mrcasals mrcasals commented Oct 8, 2020

🎩 What? Why?

These presenters are broken after adding machine translations. It only affects installations using machine translations.

📌 Related Issues

None

Testing

Have a meeeting or a debate with machine translations. They fail when presented without this PR.

📋 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!

@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,
quick question, why ProposalPresenter is using Decidim::TranslatableAttributes and DebatePresenter and MeetingPresenter is using an internal handle_locales method?

Isn't the same situation? can we reuse code?

@mrcasals
Copy link
Copy Markdown
Contributor Author

mrcasals commented Oct 8, 2020

@tramuntanal I don't know. I tried to keep the same behaviour but fixing the problem.

@tramuntanal
Copy link
Copy Markdown
Contributor

ok, @mrcasals lets merge the fix, but it will be great if some of the developers of the machine translations system can answer the question.

I think to remember they were @oriolgual and @anaghavl

@tramuntanal tramuntanal merged commit e96a712 into develop Oct 8, 2020
@tramuntanal tramuntanal deleted the fix/meeting-presenter branch October 8, 2020 10:13
@tramuntanal
Copy link
Copy Markdown
Contributor

This is inn, we're taking care of the backport to release/0.23-stable

tramuntanal pushed a commit that referenced this pull request Oct 8, 2020
* Handle machine translations at Meeting and Debate presenters

* Add specs

* Lint files
tramuntanal added a commit that referenced this pull request Oct 8, 2020
…6647)

* Handle machine translations at Meeting and Debate presenters

* Add specs

* Lint files

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: debates module: meetings 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