Add a provisional API for replacing the help formatter #4011

Merged
mikeshardmind merged 3 commits from help-formatter-api into V3/develop 2020-08-06 02:12:15 +02:00
mikeshardmind commented 2020-06-24 01:14:25 +02:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

  • Adds an API for replacing the help formatter
  • Defines which interfaces are required
  • Adds some information for 3rd party developers
  • Adds commands for resetting help behavior (to allow end users to fix issues with misbehaving cogs)

This is follow up from things which were planned originally in #2667 but tracked in #3601 and resolves a portion of that issue.

### Type - [ ] Bugfix - [X] Enhancement - [X] New feature ### Description of the changes - Adds an API for replacing the help formatter - Defines which interfaces are required - Adds some information for 3rd party developers - Adds commands for resetting help behavior (to allow end users to fix issues with misbehaving cogs) This is follow up from things which were planned originally in #2667 but tracked in #3601 and resolves a portion of that issue.
palmtree5 (Migrated from github.com) reviewed 2020-06-24 01:14:25 +02:00
tekulvw (Migrated from github.com) reviewed 2020-06-24 01:14:25 +02:00
mikeshardmind commented 2020-06-26 01:21:04 +02:00 (Migrated from github.com)

Something I considered this evening is that this might need to either wait until Red's formatter has support for sending help to a non-context based invoke (such as the occasional question of sending help on bot mention) or may need to be provisional so that the interface defined by the abc included is allowed to be expanded on with fewer restrictions.

Something I considered this evening is that this might need to either wait until Red's formatter has support for sending help to a non-context based invoke (such as the occasional question of sending help on bot mention) or may need to be provisional so that the interface defined by the abc included is allowed to be expanded on with fewer restrictions.
Jackenmen commented 2020-07-18 21:42:56 +02:00 (Migrated from github.com)

This needs to be shown in docs + I think we should mark this API as provisional for now. I'm gonna do the actual review (hopefully) soon™

This needs to be shown in docs + I think we should mark this API as provisional for now. I'm gonna do the actual review (hopefully) soon™
mikeshardmind commented 2020-07-18 21:46:03 +02:00 (Migrated from github.com)

I'll add that file to the docs with a note on it being provisional at some point today then.

I'll add that file to the docs with a note on it being provisional at some point today then.
PredaaA (Migrated from github.com) reviewed 2020-07-28 22:02:44 +02:00
PredaaA (Migrated from github.com) left a comment
No description provided.
I tested that PR on the functionnality, and everything is working well.
Jackenmen (Migrated from github.com) reviewed 2020-08-05 19:08:10 +02:00
Jackenmen (Migrated from github.com) left a comment

GH suggestion only review

GH suggestion only review
Jackenmen (Migrated from github.com) commented 2020-07-20 01:22:44 +02:00

Using top-level header here makes Sphinx show "Help functionality" as a separate top menu entry which I don't think it should?
image

******************
Help Functionality
******************
Using top-level header here makes Sphinx show "Help functionality" as a separate top menu entry which I don't think it should? ![image](https://user-images.githubusercontent.com/6032823/87887677-709b9080-ca27-11ea-8ee5-3dfaadbbb8ba.png) ```suggestion ****************** Help Functionality ****************** ```
Jackenmen (Migrated from github.com) commented 2020-07-20 01:27:03 +02:00

typo and added backticks

        This exists for use in ``cog_unload`` for cogs which replace the formatter
typo and added backticks ```suggestion This exists for use in ``cog_unload`` for cogs which replace the formatter ```
@ -1,13 +1,10 @@
# Warning: The implementation below touches several private attributes.
Jackenmen (Migrated from github.com) commented 2020-07-20 01:27:58 +02:00

add space back

# While the issue above discusses this as theoretical, merely interacting with config within
add space back ```suggestion # While the issue above discusses this as theoretical, merely interacting with config within ```
@ -102,23 +105,72 @@ class NoSubCommand(Exception):
self.not_found = not_found
Jackenmen (Migrated from github.com) commented 2020-07-20 01:29:37 +02:00

typo

        In the future, this class will receive changes to support
typo ```suggestion In the future, this class will receive changes to support ```
Jackenmen (Migrated from github.com) commented 2020-07-20 01:30:51 +02:00

typo

        This class is documented but may receive changes between
typo ```suggestion This class is documented but may receive changes between ```
Jackenmen (Migrated from github.com) approved these changes 2020-08-06 02:09:45 +02:00
Jackenmen (Migrated from github.com) left a comment

This PR works and since this is all marked as provisional, it can (and most likely will) still freely get any design changes later.

This PR works and since this is all marked as provisional, it can (and most likely will) still freely get any design changes later.
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!4011
No description provided.