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

Voting: sort same end-time votes by their descending voteIds #824

Merged
merged 1 commit into from
Apr 26, 2019

Conversation

sohkai
Copy link
Contributor

@sohkai sohkai commented Apr 26, 2019

Votes can sometimes be created in the same block, and so will have the same start (and end time) attached.

In this case, we should use their voteIds for sorting, so that the vote numbers still look correct (as you would expect a "newer" vote, with a larger voteId, to have a later end date).

Copy link
Contributor

@AquiGorka AquiGorka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️ 🚀

@sohkai sohkai merged commit 01d80a0 into master Apr 26, 2019
@sohkai sohkai deleted the voting-sort-voteid-secondary branch April 26, 2019 10:12
ramilexe pushed a commit to ConsiderItDone/aragon-apps that referenced this pull request Dec 9, 2021
)

Votes can sometimes be created in the same block, and so will have the same start (and end time) attached.

In this case, we should use their `voteId`s for sorting, so that the vote numbers still look correct (as you would expect a "newer" vote, with a larger `voteId`, to have a later end date).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants