Skip to content

Meeting registration form#4419

Merged
oriolgual merged 13 commits intomasterfrom
rbngzlv/meeting-registration-decidim-forms
Nov 8, 2018
Merged

Meeting registration form#4419
oriolgual merged 13 commits intomasterfrom
rbngzlv/meeting-registration-decidim-forms

Conversation

@rbngzlv
Copy link
Copy Markdown
Contributor

@rbngzlv rbngzlv commented Nov 5, 2018

🎩 What? Why?

Allow admins to create registration forms for meeting, so the user can answer questions when joining.

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG entry
  • Add/modify seeds
  • Add tests

@rbngzlv rbngzlv self-assigned this Nov 5, 2018
@ghost ghost added the status: WIP label Nov 5, 2018
@xabier xabier mentioned this pull request Nov 5, 2018
16 tasks
@rbngzlv rbngzlv force-pushed the rbngzlv/meeting-registration-decidim-forms branch from 364c197 to e93c395 Compare November 5, 2018 13:42
@rbngzlv rbngzlv force-pushed the rbngzlv/meeting-registration-decidim-forms branch from e93c395 to 30b5a42 Compare November 5, 2018 13:50
@rbngzlv rbngzlv force-pushed the rbngzlv/meeting-registration-decidim-forms branch from ba64b62 to c810c95 Compare November 5, 2018 17:12
@rbngzlv
Copy link
Copy Markdown
Contributor Author

rbngzlv commented Nov 5, 2018

@decidim/lot-core ready to review!

Copy link
Copy Markdown
Contributor

@oriolgual oriolgual left a comment

Choose a reason for hiding this comment

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

Is it me or there's a missing system spec to test when an admin creates the survey?

@ghost ghost added the status: WIP label Nov 6, 2018
@oriolgual
Copy link
Copy Markdown
Contributor

@rbngzlv what about?

Is it me or there's a missing system spec to test when an admin creates the survey?

@rbngzlv
Copy link
Copy Markdown
Contributor Author

rbngzlv commented Nov 7, 2018

Is it me or there's a missing system spec to test when an admin creates the survey?

I'm not sure what to answer to your question, this PR is not related with decidim-surveys, except I needed to rename a factory because a factory with the same name exists inside decidim-conferences. If you mean when an admin adds a surveys component from de admin panel, I don't touched this flow (only the create_survey command in another PR to attach the questionnaire), so I understand that there are the same specs that existed when the surveys component was divided in two, but this PR's isn't touching this part of the surveys component.

@oriolgual
Copy link
Copy Markdown
Contributor

@rbngzlv I don't mean the survey component, I mean when an admin adds the registration form to a meeting.

@rbngzlv
Copy link
Copy Markdown
Contributor Author

rbngzlv commented Nov 7, 2018

@oriolgual the admin doesn't add any registration form to a meeting. As commented before, the decidim-forms component doesn't have any code to allow admins to create forms in any way; we are attaching a blank questionnaire (persisted in the database) to the meeting when this is created, and the specs for the create_meeting command are updated to check that it attaches a new instance of questionnaire to the newly created meeting. This PR's doesn't add any UI changes that permits and admin to add a registration form to a meeting.

But reading my comment I have thought ... what happens with the already existing meetings? They don't have a questionnaire attached, and will fail ... 😞 Let me work on this.

@oriolgual
Copy link
Copy Markdown
Contributor

@oriolgual the admin doesn't add any registration form to a meeting. As commented before, the decidim-forms component doesn't have any code to allow admins to create forms in any way; we are attaching a blank questionnaire (persisted in the database) to the meeting when this is created, and the specs for the create_meeting command are updated to check that it attaches a new instance of questionnaire to the newly created meeting. This PR's doesn't add any UI changes that permits and admin to add a registration form to a meeting.

Ohhh OK, now I understand it.

But reading my comment I have thought ... what happens with the already existing meetings? They don't have a questionnaire attached, and will fail ... 😞 Let me work on this.

I guess we'll need a migration.

@ghost ghost added the status: WIP label Nov 7, 2018
@rbngzlv
Copy link
Copy Markdown
Contributor Author

rbngzlv commented Nov 7, 2018

@oriolgual migration added.

@oriolgual oriolgual merged commit 393c262 into master Nov 8, 2018
@oriolgual oriolgual deleted the rbngzlv/meeting-registration-decidim-forms branch November 8, 2018 15:57
@tramuntanal
Copy link
Copy Markdown
Contributor

🎊

@oriolgual
Copy link
Copy Markdown
Contributor

@rbngzlv I just realised that a migration to add questionnaires to existing surveys is needed, right? We updated to 0.16 and had some issues with that.

@rbngzlv
Copy link
Copy Markdown
Contributor Author

rbngzlv commented Feb 11, 2019

Hi @oriolgual, the refactor for the surveys modules was introduced in this other PR #3877, it contains a rake task that moves data from the decidim-surveys tables to the decidim-forms tables, that was refined by you after test it in a large application with many surveys.

Also, we have added instructions to the upgrade notes: https://github.com/decidim/decidim/blob/0.16-stable/CHANGELOG.md#0160

@oriolgual
Copy link
Copy Markdown
Contributor

Oh yes, sorry @rbngzlv, I didn't remember about that!

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.

3 participants