-
Notifications
You must be signed in to change notification settings - Fork 197
Move abort results to ticket #12162
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
base: main
Are you sure you want to change the base?
Move abort results to ticket #12162
Conversation
342635e
to
ee692be
Compare
ee692be
to
6e3ab67
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.
You have a merge conflict now, please resolve.
app/controllers/admin_controller.rb
Outdated
if @competition.results_submitted? && [email protected]_posted? | ||
@competition.update(results_submitted_at: nil) |
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.
Where did these checks go? Does results_submitted_at
still play a role in your new tickets system?
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.
Okay after some thoughts I made some changes now.
I was attempting to not reset results_submitted_at
when the results are cleared, instead just aborting the ticket which allows the Delegate to resubmit. But I see that this requires much more changes - like results-not-submitted nags are depending on results_submitted_at
, similarly posting dashboard is using the same, etc. So I feel it's too early to go that way.
I've now brought this method back and is reusing this to clear results submission. Sorry for causing confusions.
6e3ab67
to
4b0793f
Compare
WRT (very rarely) abort results in case some issues are there with submission and ask the Delegate to resubmit.
Currently this flow is apparently not working because I missed to consider this during the recent works, but luckily we didn't had any case of abort so far.
I've also changed the behavior of how results can be aborted. I feel this current way is bit more cleaner and easy to understand.