-
-
Notifications
You must be signed in to change notification settings - Fork 415
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
Fix bug where Flags.remove could set flags in addition to unsetting them #3777
Conversation
The title of the PR will appear in the changelog, can you change it to something more "end user friendly"? |
FYI a "Fixes X" should appear in general at the end of the commit comment. |
Hi @redvers, The changelog - fixed label was added to this pull request; all PRs with a changelog label need to have release notes included as part of the PR. If you haven't added release notes already, please do. Release notes are added by creating a uniquely named file in the The basic format of the release notes (using markdown) should be:
Thanks. |
I'd rather see the test coverage as either part of this PR or for the test coverage PR to come first and this to follow. There's no test here to show this works and doesn't break other things. I'd be in favor of adding the test coverage to this PR. |
So, my test suite uses the new create() constructor throughout... so won't work unless that change is also merged. eg:
Should I put it all in one then? |
Is the bug possible without the |
I'll re-write the test suite to use the other format and push. |
@redvers can you update the commit comment to be:
Release notes of ## Fix bug where Flags.remove could set flags in addition to unsetting them
Flags.remove when given a flag to remove that wasn't currently present in the set, would turn the flag on.
It should only be turning flags off, not turning them on. would be good as well. |
These two
as tests would be good enough coverage for me to push this update through. We don't need a full suite. Merely ones showing the two basic cases we expect for |
@redvers I can do the commit comment change on squash/merge. |
If it's okay with you I'd like to do the squash. I want to make sure I understand the full-workflow so any future work will require less work from the maintainers. |
Flags.remove when given a flag to remove that wasn't currently present in the set, would turn the flag on. It should only be turning flags off, not turning them on. Closes ponylang#3776
@redvers fine with me. |
Okay - so I think pending CI - I think that's everything? Yay! |
Note - I've written a test-suite to cover 90% of this module but it's dependent on a second PR that I'm about to open.
Test coverage is in there.