Skip to content

Add allow_answers step setting#1430

Merged
beagleknight merged 4 commits intofeature/surveysfrom
feature/surveys-settings
Jun 1, 2017
Merged

Add allow_answers step setting#1430
beagleknight merged 4 commits intofeature/surveysfrom
feature/surveys-settings

Conversation

@beagleknight
Copy link
Copy Markdown
Contributor

@beagleknight beagleknight commented Jun 1, 2017

🎩 What? Why?

As a admin I should be able to allow or disallow answers to the survey in a step.

📌 Related Issues

📋 Subtasks

  • Admin cannot modify questions if already answered
  • Add allow answers step setting
  • Fix surveys public page

📷 Screenshots (optional)

image
image
image

👻 GIF

@beagleknight beagleknight self-assigned this Jun 1, 2017
@beagleknight beagleknight changed the base branch from master to feature/surveys June 1, 2017 10:24
@beagleknight beagleknight mentioned this pull request Jun 1, 2017
8 tasks
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 1, 2017

Codecov Report

Merging #1430 into feature/surveys will decrease coverage by <.01%.
The diff coverage is 100%.

@@                 Coverage Diff                 @@
##           feature/surveys    #1430      +/-   ##
===================================================
- Coverage            94.98%   94.98%   -0.01%     
===================================================
  Files                  463      463              
  Lines                 7904     7898       -6     
===================================================
- Hits                  7508     7502       -6     
  Misses                 396      396

<% end %>

<div class="survey-question-answer-options-list <%= 'published' if survey.published? %>">
<div class="survey-question-answer-options-list <%= 'answered' if survey.answered? %>">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe using editable? is more meaningful

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure about that, the survey itself is editable. What about questions_editable?

@beagleknight beagleknight merged commit cd7b800 into feature/surveys Jun 1, 2017
@beagleknight beagleknight deleted the feature/surveys-settings branch June 1, 2017 16:09
beagleknight added a commit that referenced this pull request Jun 2, 2017
* Admin cannot modify questions if already answered

* Add step setting to allow/disallow answers

* Fix rubocop issues

* Replace answered? with questions_editable?
beagleknight added a commit that referenced this pull request Jun 5, 2017
* Admin cannot modify questions if already answered

* Add step setting to allow/disallow answers

* Fix rubocop issues

* Replace answered? with questions_editable?
josepjaume pushed a commit that referenced this pull request Jun 6, 2017
* Add Surveys engine MVP (#1364)

* Add engine skeleton

* Add feature test

* An admin can update a survey without questions

* Admin can add n questions to a survey

* Admin can edit survey questions

* An admin can remove questions from surveys

* Admin can publish a survey

* Minor refactor

* Users answer surveys

* Fix minor errors

* Rubocop

* Add model validations

* Fix minor things

* Fix hound complains

* Fix more complains

* Fix broken specs

* Add some feedback

* Add some permissions

* Add missing translation

* Fix rubocop issues

* Add tests to the CI

* Fix broken test suite

* Normalize locales

* Survey questions can be sorted using drag and drop (#1373)

* Add basic drag and drop features

* Refactor JS and minor adjustments

* Add missing documentation

* Minor label adjustments

* Fix rubocop complains

* Add missing index

* Add missing feature test

* Fix rubocop issues

* Fix lint errors

* Fix broken specs

* Admin can mark question as mandatory

* Restore missing PRs in feature/surveys (#1421)

* Add custom styles

* Change from toc to tos

* Fix broken tests

* Fix typo

* Fix spec

* Fix rubocop issues

* Add Surveys engine MVP (#1364)

* Add engine skeleton

* Add feature test

* An admin can update a survey without questions

* Admin can add n questions to a survey

* Admin can edit survey questions

* An admin can remove questions from surveys

* Admin can publish a survey

* Minor refactor

* Users answer surveys

* Fix minor errors

* Rubocop

* Add model validations

* Fix minor things

* Fix hound complains

* Fix more complains

* Fix broken specs

* Add some feedback

* Add some permissions

* Add missing translation

* Fix rubocop issues

* Add tests to the CI

* Fix broken test suite

* Normalize locales

* Admin can mark question as mandatory (#1386)

* Admin can mark question as mandatory

* Users must respond mandatory questions

* Fix problems with poltergeist

* Fix rubocop complains

* Fix i18n-issues

* Add feedback

* Fix rubocop complains

* Huge refactor templates

* Fix rubocop issues

* Admins can select question type

* Factor out auto label position code

* Moar refactor

* Huge JS refactor

* Add dynamic answer options for a question

* Admin survey form working with dynamic answer options

* Single and multiple options working

* Fixed rubocop issues

* Fix i18n problems

* Ignore unused i18n

* Add ignore unused

* Add answer option default value

* Fix rectify problem

* Fix minor issues

* Fix a few bad merges

* Fix broken specs

* Add survey exports (#1417)

* Add user answers serializer

* Finish export and serializer

* Add admin feature specs

* Fix rubocop issues

* Add allow_answers step setting (#1430)

* Admin cannot modify questions if already answered

* Add step setting to allow/disallow answers

* Fix rubocop issues

* Replace answered? with questions_editable?

* Use available_locales instead of Decidim locales
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants