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

rules: add get-all methods for all types of rules #2011

Merged
merged 1 commit into from
Feb 9, 2021

Conversation

Exirel
Copy link
Contributor

@Exirel Exirel commented Dec 29, 2020

Description

When I implemented the new rule system, I made the methods that were necessary to be backward compatible with the bot's doc, which is used by the help plugin, but nothing more.

However, now that I have extended that to all type of rules (including commands and URL callback), it was time to add the appropriate methods for all types of rules.

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

@Exirel Exirel added the Feature label Dec 29, 2020
@Exirel Exirel added this to the 7.1.0 milestone Dec 29, 2020
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.

Attack of the nemesiS in this one. 😹

That was literally all I could find to talk about, except for a brief musing about why it's get_all_generic_rules() instead of just get_all_rules() (but I figured that out myself 😁).

sopel/plugins/rules.py Outdated Show resolved Hide resolved
sopel/plugins/rules.py Outdated Show resolved Hide resolved
sopel/plugins/rules.py Outdated Show resolved Hide resolved
sopel/plugins/rules.py Outdated Show resolved Hide resolved
sopel/plugins/rules.py Outdated Show resolved Hide resolved
Co-authored-by: dgw <dgw@technobabbl.es>
@Exirel Exirel force-pushed the rules-get-all-methods branch from a861bb6 to 847d95d Compare January 14, 2021 16:27
@Exirel
Copy link
Contributor Author

Exirel commented Jan 14, 2021

Rebased & squashed, since it was just typo fix.

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.

🚀🚢

@dgw dgw merged commit 5f25c78 into sopel-irc:master Feb 9, 2021
@Exirel Exirel deleted the rules-get-all-methods branch May 1, 2021 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants