Skip to content

Conversation

@Exirel
Copy link
Contributor

@Exirel Exirel commented May 18, 2020

Description

The "_command_groups" attribute is used to generate the documentation for plugin's command (there is an old piece of code for some undocumented feature here but that's something else).

The problem is that it tries to derive the plugin's name from the Python module the callable come from, instead of, you know, the actual plugin's name.

Since we added the "plugin_name" attribute on all callable back in 8776354 (see #1840) we can now use it safely for the command group.

One-line fix for you all!

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make quality and make test)
  • I have tested the functionality of the things this change touches

The "_command_groups" attribute is used to generate the documentation
for plugin's command (there is an old piece of code for some
undocumented feature here but that's something else).

The problem is that it tries to derive the plugin's name from the Python
module the callable come from, instead of, you know, the actual plugin's
name.

Since we added the "plugin_name" attribute on all callable back in
8776354 (see sopel-irc#1840) we can now use it
safely for the command group.

One-line fix for you all!
@Exirel Exirel added the Bugfix Generally, PRs that reference (and fix) one or more issue(s) label May 18, 2020
@Exirel Exirel added this to the 7.0.4 milestone May 18, 2020
@Exirel Exirel requested a review from dgw May 18, 2020 13:42
Copy link
Member

@dgw dgw left a comment

Choose a reason for hiding this comment

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

Lol, this should have been an obvious thing to do in the PR that added plugin_name to callables. Oh well!

@dgw dgw merged commit 73a0523 into sopel-irc:7.0.x May 18, 2020
@Exirel Exirel deleted the fix-command-group-plugin-name branch June 23, 2020 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bugfix Generally, PRs that reference (and fix) one or more issue(s)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants