-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
feat(group): Prune expired proposals and votes #11315
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11315 +/- ##
==========================================
+ Coverage 65.88% 65.94% +0.06%
==========================================
Files 675 675
Lines 69830 69773 -57
==========================================
+ Hits 46006 46012 +6
+ Misses 21123 21067 -56
+ Partials 2701 2694 -7
|
…/11245-prune-group
…/11245-prune-group
…/11245-prune-group
expErrMsg: "load proposal: not found", | ||
expExecutorResult: group.PROPOSAL_EXECUTOR_RESULT_SUCCESS, | ||
}, | ||
} |
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.
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.
Yes! There might be some duplicated tests with TestVote and TestSubmitProposal, but I guess that's okay.
* Rm TallyVotesInvariant * Update TallyVotesSumInvariant to check for proposal voting period end * Do not check for updated group and group policy on Vote * Do not check for updated group and group policy on Exec * Test invariants * Update TallyVotesSumInvariant to check proposal status * Add back invariants * Nit * Fix invariant * Fix it.Close() * Update docs * Fix genesis sim * Test genesis * Test UpdateTallyOfVPEndProposals * Do proposals update after index iterator closed in UpdateTallyOfVPEndProposals * fix: Try fix group sims issue (#11458) * Fix sims? * Remove useless index * Add comment * Fix iterateProposalsByVPEnd * Fix some other places * Fix build * Add unit test * Use iterateProposalsByVPEnd again Co-authored-by: Amaury <[email protected]>
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.
Approving ✅
(a lot of people contributed to this PR, thanks!)
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.
Pre-approving, pending some more docs
Still related to the docs but not directly to this PR (but to previous ones), we forgot to add some client docs for |
Added docs about tallying, pruning, and state. I didn't add docs on client.md in this PR. |
…-sdk into am/11245-prune-group
Co-authored-by: Marie Gauthier <[email protected]>
Co-authored-by: Marie Gauthier <[email protected]>
Description
Closes: #11245
1. Pruning proposal.
Proposals are pruned:
whichever happens first.
2. Pruning votes.
Votes are pruned:
whichever happens first.
3. Various group fixes
See #11404 for details
TODO:
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change