Skip to content

Dynamically get all participatory space role tables for the visible_meeting_for query#7855

Merged
mrcasals merged 1 commit intodecidim:developfrom
mainio:fix/meetings-when-assemblies-are-not-available
Apr 19, 2021
Merged

Dynamically get all participatory space role tables for the visible_meeting_for query#7855
mrcasals merged 1 commit intodecidim:developfrom
mainio:fix/meetings-when-assemblies-are-not-available

Conversation

@ahukkanen
Copy link
Copy Markdown
Contributor

@ahukkanen ahukkanen commented Apr 18, 2021

🎩 What? Why?

Right now the meetings component is broken if one of the hard coded participatory spaces is not available. In this particular case, we are not using the assemblies gem at all, when this query is broken.

Testing

  • Install decidim without the decidim-assemblies gem
  • Enable the meetings component for some space (e.g. processes)
  • Try to visit any of the meeting pages

📋 Checklist

  • 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.

@mrcasals
Copy link
Copy Markdown
Contributor

Well, the original code was hard to understand. The new one is a bit more readable, and fixes bugs! Yay!

@mrcasals mrcasals merged commit 889b28e into decidim:develop Apr 19, 2021
@ahukkanen ahukkanen deleted the fix/meetings-when-assemblies-are-not-available branch April 19, 2021 12:42
entantoencuanto added a commit that referenced this pull request Apr 19, 2021
* develop:
  New Crowdin updates (#7850)
  Accessibility tool for development environments (#7810)
  Attempt to fix puffing-billy runtime error (#7853)
  Dynamically get all participatory space role tables for the `visible_meeting_for` query (#7855)
  Fix joining a meetings that the user already follows (#7854)
  Improve proposals import options (#7669)
  Fix proposal form attachment errors (#7856)
  New Crowdin updates (#7844)
  Fix branch name on generators (#7849)
  Conditionally render questions in election booth (#7822)
  Fix node version for version managers (#7848)
  Migrate to Webpacker (#7464)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants