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

Boolean Flags Update. #246

Closed
wants to merge 6 commits into from
Closed

Boolean Flags Update. #246

wants to merge 6 commits into from

Conversation

aserputov
Copy link

@aserputov aserputov commented Oct 29, 2021

To help us get this pull request reviewed and merged quickly, please be sure to include the following items:

  • Tests (if applicable)
  • Documentation (if applicable)
  • Changelog entry
  • A full explanation here in the PR description of the work done

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Tests
  • Other

Backward Compatibility

Is this change backward compatible with the most recently released version? Does it introduce changes which might change the user experience in any way? Does it alter the API in any way?

  • Yes (backward compatible)
  • No (breaking changes)

Issue Linking

#245

What's new?

-New: Boolean Flags

@aserputov aserputov requested a review from a team as a code owner October 29, 2021 06:36
@aserputov aserputov requested review from beardedeagle, sushantmimani and mayuriesha and removed request for a team October 29, 2021 06:36
Copy link
Contributor

@rbailey-godaddy rbailey-godaddy left a comment

Choose a reason for hiding this comment

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

Exactly (I think). Could you also fix --quiet and --log-timestamps further down the file?

@rbailey-godaddy
Copy link
Contributor

Unfortunately, I just released the unit tests and they all hate this syntax, so it appears a little more research is needed to find a solution that expresses what we want and is valid...

@tarkatronic
Copy link
Contributor

@aserputov With a little more investigation, reading the change log for click, I found this gem:

Help for boolean flags with show_default=True shows the flag name instead of True or False. #1538

So it looks like all that needs to be done here is upgrade click from 7.x to 8.x!

@tarkatronic
Copy link
Contributor

Hi @aserputov I see you've run poetry update to update the poetry.lock; unfortunately this isn't doing quite what the command sounds like it's doing. Since click is specified in our pyproject.toml as click = "^7", this means "use any version of click >= 7.0, and < 8.0", and poetry update won't change that.

What you will want to do is run poetry add "click@latest", which will actually update that record in the pyproject.toml. From there, make sure all of the tests are still passing, and then if you could also update the output of tartufo --help in the README.md, that would be a huge help!

And finally, please remember to add a note to the CHANGELOG.md about this! 😄

@tarkatronic tarkatronic linked an issue Nov 4, 2021 that may be closed by this pull request
@sushantmimani
Copy link
Contributor

@aserputov There are 2 failing steps in CI and a few merge conflicts. Can you please fix them?

@aserputov
Copy link
Author

@sushantmimani yes, I will try to fix it, now.

@aserputov
Copy link
Author

aserputov commented Nov 19, 2021

@sushantmimani I was trying to fix the failed tests, and I think the problem is in the version of python I use. My current v "3.9" and I should've fixed this issue in "3.7". Could you please advise me if I'm correct?

@aserputov
Copy link
Author

aserputov commented Nov 19, 2021

@tarkatronic hey, what do you think about that issue? Do you believe we should complete the updates, or do you have any new plans for it?

@tarkatronic
Copy link
Contributor

@aserputov This is still a necessary change for our 3.0 release, so I would love to see this finished soon! You should try updating your branch against the latest v3.x and see if the errors are resolved. It looks like really just one test failing in Windows, and we're not seeing these failures in other PRs.

Hopefully it's just that easy of a quick fix!

Also be sure that your CHANGELOG entry gets moved up into the latest TBD section. 😄

@tarkatronic
Copy link
Contributor

@aserputov I apologize but for the sake of expediency, I will need to take over this change; we are trying to get v3.0 out as quickly as we can, so I need to get this change finished. I will be sure to acknowledge your work in the release notes though! Thank you for working through this up to now.

@aserputov
Copy link
Author

@tarkatronic thank you.

@tarkatronic
Copy link
Contributor

Superseded by #292

@tarkatronic tarkatronic closed this Dec 8, 2021
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.

Better defaults for boolean flags
4 participants