-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update group proposal process or create new process for group votes #22
Comments
I spoke with @blushi about this topic in our 1-1 today. We came up with some new ideas on how we could make this work. Suppose that we listen for the @blushi pointed out that in order to handle the case where a vote for a particular proposal is updated by the voter, we could use a primary key on the We also talked about how we could mark the |
Hey team! Please add your planning poker estimate with Zenhub @wgwz @ryanchristo |
Since we use |
Well it's possible that the votes get pruned before the proposal does, so in order to handle this case, we need to listen to |
Sorry I missed this comment last week. Votes are pruned if (1) the proposal is aborted or withdrawn (2) votes are final (either all required votes have been cast or the voting period has expired). The block height will be different if the final vote does not also try to execute the proposal (immediately executing the proposal is an option when submitting the vote). https://github.com/regen-network/cosmos-sdk/blob/main/x/group/keeper/keeper.go#L399 With that in mind, we should be listening for |
Not sure if this is something we want to handle in the same process or not, separate probably makes more sense, so I crossed out the first option in the description. Not sure if one process with separate events is worth exploring but still possible. Either approach would be ok (one process that handles proposals and votes or one process for each proposals and votes). |
@ryanchristo @blushi thanks for the clarifying comments, that helps. re. the two approaches, i felt that the approach of extending the existing proposal process made sense if we could always reliably record the votes at the same time that |
Summary
While working on the group proposals process, we realized we need to also index group votes. When a user views a historical proposal, they should also be able to view who voted, when they voted, and possibly a rationale for their vote.
Proposal
(1) Index group proposal votes at the block height we index the group proposal as part of the same process(2) Create a separate process for indexing votes that listens to
EventVote
and always stores the latest voteNote: The UI also includes the
weight
of the member that voted but this is neither stored in the proposal or the vote. We may want to reconsider whether this is necessary or revisit in a followup.The text was updated successfully, but these errors were encountered: