Skip to content

Conversation

wgrant
Copy link
Contributor

@wgrant wgrant commented May 13, 2025

ENG-5110

what

Explicitly name click objects that end with magic suffixes

why

Click 8.2.0 includes this change: "When generating a command’s name from a decorated function’s name, the suffixes _command, _cmd, _group, and _grp are removed.". That renamed our user ensure-group command to user ensure, and caused our account-group group to now clobber the account group.

poetry doesn't pull in 8.2.0 yet, as we support older Pythons than the new Click does. But this broke platform functional tests, which install directly through pip.

testing

Manually, sadly. But platform ftests will verify it.

@wgrant wgrant requested a review from a team as a code owner May 13, 2025 04:26
…5110)

Click 8.2.0 includes this change: "When generating a command’s name from
a decorated function’s name, the suffixes _command, _cmd, _group, and
_grp are removed.". That renamed our `user ensure-group` command to
`user ensure`, and caused our `account-group` group to now clobber the
`account` group.

This broke platform functional tests.
@wgrant wgrant force-pushed the wgrant/fix/click-8.2.0-compat branch from 65d5d5d to 8a49cde Compare May 13, 2025 04:38
@wgrant wgrant merged commit 3a09f89 into main May 13, 2025
7 checks passed
@wgrant wgrant deleted the wgrant/fix/click-8.2.0-compat branch May 13, 2025 04:41
@wgrant wgrant mentioned this pull request May 13, 2025
wgrant added a commit that referenced this pull request May 13, 2025
### what

Release 0.1.5

Also try to unbitrot the release workflow.

### why

#67 fixes an account, account-group and user command regression with click 8.2.0, so we should get it out there.

### testing

platform functional tests no longer fail.
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.

2 participants