Poll restrictions votation types#10
Open
coslajohn wants to merge 9 commits intoCoslaDigital:pollsfrom
Open
Conversation
Polls will have to be created on future dates. This commit adjust the way polls are created in specs and also fixes the failing specs after the change.
Also, dissallow to modify the start date for an already started poll We will still be flexible about the end date of a poll, as long as it is also in the future. Once the polls has ended, it will not be possible to modify the end date anymore.
Adding, modifiying, and/or deleting questions for an already started poll is far away from being democratic and can lead to unwanted side effects like missing votes in the results or stats. So, from now on, only modifiying questions will be possible only if the poll has not started yet.
Deleting answers it was not even possible. But it was possible to delete questions. So we implemented the same behavior. Also, same restrictions as questions, it will no longer possible to add, modify, and/or delete answers if the poll has already started.
Same rules that will apply for the answer itself should apply for the attachments like videos, images, and/or documents.
coslajohn
added a commit
that referenced
this pull request
Sep 11, 2024
changing controller from custom controller. allowing video_url
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
prioritization of poll responses