Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset evaluation after it started #1991

Open
janno42 opened this issue Aug 7, 2023 · 2 comments · May be fixed by #2136
Open

Reset evaluation after it started #1991

janno42 opened this issue Aug 7, 2023 · 2 comments · May be fixed by #2136
Assignees
Labels
[C] Backend Focuses on backend implementation [C] Frontend Focuses on frontend implementation [P] Major Major priority
Milestone

Comments

@janno42
Copy link
Member

janno42 commented Aug 7, 2023

It is not currently possible to reset a running evaluation. If it turns out that the start of the evaluation period has been set too early, or if the evaluation has to be stopped for other reasons, a reset can currently only be done in the database.

The evaluation operation revert_to_new ("Revert to preparation" in the frontend), which resets the selected evaluation to state new, should be extended to other states. The operation should be allowed for all states from prepared to reviewed (all states except new and published) and should be called reset_to_new ("Reset evaluation" in the frontend).
When performing this operation, the user should be able to select a checkbox (default: checked) on the operation confirmation page to delete previously received answers.
If checked

  • all received answers (TextAnswer and TextAnswerCounter) for this evaluation will be deleted, and
  • the voters list is cleared.

To prevent unintentional deletion of data, an additional confirmation modal should be displayed if the checkbox for the data to be deleted is set.

@janno42 janno42 added [C] Backend Focuses on backend implementation [C] Frontend Focuses on frontend implementation [P] Major Major priority labels Aug 7, 2023
@janno42 janno42 added this to the Winter 2023 milestone Aug 7, 2023
@fekoch
Copy link
Collaborator

fekoch commented Feb 12, 2024

@janno42 What UI style would you like best?

Extra Box, left-aligned:

Screen Shot 2024-02-12 at 18 50 55

Extra Box, centered:
Screen Shot 2024-02-12 at 18 50 42

Inside Buttonbox, centered:
Screen Shot 2024-02-12 at 19 00 13

@janno42
Copy link
Member Author

janno42 commented Feb 12, 2024

"Extra Box, left-aligned" please :)

@janno42 janno42 modified the milestones: Winter 2023, Summer 2024 Feb 26, 2024
@fekoch fekoch linked a pull request Mar 5, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C] Backend Focuses on backend implementation [C] Frontend Focuses on frontend implementation [P] Major Major priority
Development

Successfully merging a pull request may close this issue.

2 participants