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 votes to restore to start of round when a new backup is written #854

Merged
merged 1 commit into from
Aug 23, 2022

Conversation

nickdnk
Copy link
Collaborator

@nickdnk nickdnk commented Aug 22, 2022

Thoughts? Ideally we would store the round number the initial command was given during and reset it on a timer instead.

@nickdnk nickdnk added the bug label Aug 22, 2022
@nickdnk nickdnk changed the title Reset votes to restore to start of round on each round start. Reset votes to restore to start of round when a new backup is written Aug 22, 2022
@PhlexPlexico
Copy link
Collaborator

I think the usage of timers may be over-engineering the practice of the .stop command. Most TOs also have a rule that states restores are not allowed if damage has been taken on either side, so restoring to a point in time when the initial command was given wouldn't make much sense. Worst case scenario, users can list the backups and get an admin to restore at that point in time if needed.

Otherwise, resetting the vote at each round does make sense, but maybe we should have a message output to the team that their vote was reset at the round start, if they had called stop prior to?

@nickdnk
Copy link
Collaborator Author

nickdnk commented Aug 23, 2022

I agree with both. I will add a “stop command vote reset” message if any team has a cast vote when it is reset.

Add message about resetting
Rename TeamWantsToReloadLastRoundInfoMessage to TeamWantsToReloadCurrentRound
@nickdnk nickdnk merged commit 602a415 into development Aug 23, 2022
@nickdnk nickdnk deleted the reset_stop_vote branch August 23, 2022 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants