Also, there are quite a lot of changes due to a refactor to use @derivedFrom property to make the relationships between entities instead of copying and pushing to an array.
Members that have 0 voting power aren't deleted since that might break when trying to query votes of a member that is no longer active. Updated the useGetMemberList query to reflect that change.
Closes #249
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
Manual testing. Every entity is the same before and after the changes.
To test it, you should hardcode the voting power of the setVote function and modify the code to allow you to keep voting after a member has already voted.
Checklist:
[x] My code follows the existing style of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any UI changes have been tested and made responsive for mobile views
Description
Increasing the voting power now updates the total votes of the proposal and option.
(disregard the window showing the vote impact since this video is done hardcoding the voting power since the feature it's not implemented)
https://www.loom.com/share/fc38d581da884b65a4c2424a28bd5332
Also, there are quite a lot of changes due to a refactor to use
@derivedFrom
property to make the relationships between entities instead of copying and pushing to an array.Members that have 0 voting power aren't deleted since that might break when trying to query votes of a member that is no longer active. Updated the
useGetMemberList
query to reflect that change.Closes #249
Type of change
How Has This Been Tested?
Manual testing. Every entity is the same before and after the changes.
To test it, you should hardcode the voting power of the
setVote
function and modify the code to allow you to keep voting after a member has already voted.Checklist: