-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
refactor: remove query by events for x/gov deposits #9519
Conversation
842e4bd
to
296b61f
Compare
…move-query-events
…move-query-events
…move-query-events
…move-query-events
Codecov Report
@@ Coverage Diff @@
## master #9519 +/- ##
==========================================
+ Coverage 63.47% 63.52% +0.05%
==========================================
Files 566 566
Lines 53107 53077 -30
==========================================
+ Hits 33711 33719 +8
+ Misses 17488 17451 -37
+ Partials 1908 1907 -1
|
…move-query-events
This is what I meant with today: the current logic in |
I do not think we should be keeping any deposits in state, even for proposals that have passed the voting period -- both failed and successful proposals. In any case, I do not think we should be keeping deposits in state. Just want to confirm, the proposal in this PR is to keep the deposits in certain circumstances? |
@alexanderbez see the tree solutions in my post above. If we want to keep some proposals and be able to query for not refunded deposits (burned), then for integrity, imho, we should not delete that deposit records (but we can and should delete refunded deposits). |
Yeah, I agree with you. But our question is when a voting period completed proposal's deposits queried what should be returned? |
No, for now we are keeping them only for fulfilling the |
I suppose nothing should be returned, i.e. |
@robert-zaremba, I udpated this PR according to the @alexanderbez 's suggeston, can you review again. |
Yes, this is basically solution 2. |
Yes |
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.
utACK. Left one suggestion in the docs.
Co-authored-by: Robert Zaremba <[email protected]>
@atheeshp @robert-zaremba should we put automerge on? |
I think we should. |
## Description Updating the spec to follow the implementation ref: cosmos/cosmos-sdk#9519 (review) --- ### 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... - [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [x] added `!` to the type prefix if API or client breaking change - [x] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting)) - [x] provided a link to the relevant issue or specification - [x] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules) - [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing) - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### 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... - [x] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [x] confirmed `!` in the type prefix if API or client breaking change - [ ] confirmed all author checklist items have been addressed - [ ] reviewed state machine logic - [ ] reviewed API design and naming - [x] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable)
Description
Closes: #9419
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