-
Notifications
You must be signed in to change notification settings - Fork 149
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 #2136
reset evaluation after it started #2136
Conversation
c353503
to
5ee1e27
Compare
cb79677
to
909c5a7
Compare
Two Unit Tests are missing. I do not have any idea on how to practically test for ui popups without selenium tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I started reviewing your changes and I find it a bit tricky to separate the "revert -> reset" and "make State an IntEnum" changes. Do you think you could split these changes into two PRs? If not, we will have to see how we manage :D
The extra PR would also be a good place to discuss the motivation for the move to IntEnum
- it sounds like a good idea, but it's hard to see the benefits when they are mixed in with the other changes here
I don't think it is possible with our current setup. However, since the javascript deciding whether or not to show the modal is pretty clear, I think we don't urgently need a test for that |
909c5a7
to
f3670fb
Compare
6c0cf01
to
8eabcbe
Compare
@fekoch some TODO's:
|
8eabcbe
to
2e67d03
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Forgot to specify before: It should not be possible to reset single results. They should be removed from the selection and the operation should not be
applicable_to
them. - Submitting other operations (e.g., start evaluation, publish, unpublish) is not possible anymore. The submit button does not send a request in these cases (
document.getElementById("delete-previous-answers")
fails).
5d9d71e
to
316553b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool, thanks!
Closes #1991
Replaces the
revert_to_new
evaluation operation withreset_to_new
. It now allows resetting from any State exceptNEW
andPUBLISHED
. It also allows deleting all previously received answers.Also, it makes
Evaluation.State
anIntEnum
.