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

Fixed a bug in GOV rule #4008

Merged
merged 3 commits into from
Jan 26, 2024
Merged

Fixed a bug in GOV rule #4008

merged 3 commits into from
Jan 26, 2024

Conversation

Soupstraw
Copy link
Contributor

@Soupstraw Soupstraw commented Jan 24, 2024

Description

Fixes a bug where it was possible to vote for a proposal even if the voter's role shouldn't allow it.

resolves #3980

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
    versioning process.
  • The version bounds in .cabal files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
  • All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages. New section is never added with the code changes. (See RELEASING.md)
  • Code is formatted with fourmolu (use scripts/fourmolize.sh)
  • Cabal files are formatted (use scripts/cabal-format.sh)
  • hie.yaml has been updated (use scripts/gen-hie.sh)
  • Self-reviewed the diff

@Soupstraw Soupstraw force-pushed the jj/committee-voting-bug branch 6 times, most recently from d58f0f0 to 683def8 Compare January 24, 2024 15:53
@Soupstraw Soupstraw marked this pull request as ready for review January 24, 2024 15:58
@Soupstraw Soupstraw force-pushed the jj/committee-voting-bug branch 5 times, most recently from 3a65d87 to 2443622 Compare January 24, 2024 16:39
Copy link
Contributor

@lehins lehins left a comment

Choose a reason for hiding this comment

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

Perfect! I love the switch to NonEmpty in predicate failures! I have a few suggestions, but they aren't critical

@Soupstraw Soupstraw force-pushed the jj/committee-voting-bug branch 6 times, most recently from 9c3ca4c to 281ced5 Compare January 25, 2024 15:48
@Soupstraw Soupstraw enabled auto-merge (rebase) January 25, 2024 15:51
@lehins lehins disabled auto-merge January 25, 2024 21:18
@lehins lehins enabled auto-merge (squash) January 25, 2024 21:19
@lehins lehins merged commit 39a48ac into master Jan 26, 2024
9 of 39 checks passed
@Soupstraw Soupstraw deleted the jj/committee-voting-bug branch January 26, 2024 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CommitteeMember can vote on UpdateCommitteeProposal
2 participants