Move modlogset/bankset commands to core #4486

Merged
palmtree5 merged 41 commits from V3/move_modlog_bank_commands into V3/develop 2021-11-25 10:06:30 +01:00
palmtree5 commented 2020-10-13 05:07:23 +02:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

Fixes #4128
Fixes #3709

This accomplishes everything on the list in the mentioned issue, though I did this by simply moving the commands over. The only renames happening here are:

  • [p]economyset registeramount -> [p]bankset registeramount
  • [p]bank reset -> [p]bankset reset
  • [p]bank prune -> [p]bankset prune`

This obviously removes the Bank cog. The Modlog cog remains with 3 commands ([p]case, [p]casesfor, and [p]reason)

Other changes

  • added RawUserIdConverter to redbot.core.commands
  • added is_owner_if_bank_global to redbot.core.bank (#3709)
### Type - [ ] Bugfix - [x] Enhancement - [ ] New feature ### Description of the changes Fixes #4128 Fixes #3709 This accomplishes everything on the list in the mentioned issue, though I did this by simply moving the commands over. The only renames happening here are: - `[p]economyset registeramount` -> `[p]bankset registeramount` - `[p]bank reset` -> `[p]bankset reset` - `[p]bank prune` -> [p]bankset prune` This obviously removes the `Bank` cog. The `Modlog` cog remains with 3 commands (`[p]case`, `[p]casesfor`, and `[p]reason`) ### Other changes - added `RawUserIdConverter` to `redbot.core.commands` - added `is_owner_if_bank_global` to `redbot.core.bank` (#3709)
Dav-Git (Migrated from github.com) requested changes 2020-10-13 07:29:26 +02:00
Dav-Git (Migrated from github.com) left a comment

I don't think this move serves it's intended purpose without grouping all commands under set. The idea was to have all settings in one place which this PR doesn't really accomplish now.
If the commands were moved into the set command group we would have achieved that goal.

I don't think this move serves it's intended purpose without grouping all commands under ``set``. The idea was to have all settings in one place which this PR doesn't really accomplish now. If the commands were moved into the ``set`` command group we would have achieved that goal.
Drapersniper commented 2020-10-13 09:45:44 +02:00 (Migrated from github.com)

There's such a thing as having too many commands, when the audio api is done for example it will not be under set due to the number of commands it will introduce. I disbelieve that every single global configuration command must be under set... that becomes a mess of a user experience as there's too many commands under a single group to deal with

There's such a thing as having too many commands, when the audio api is done for example it will not be under set due to the number of commands it will introduce. I disbelieve that every single global configuration command must be under set... that becomes a mess of a user experience as there's too many commands under a single group to deal with
palmtree5 commented 2020-10-14 08:42:08 +02:00 (Migrated from github.com)

I agree with Draper. Commands for configuring APIs on the bot (like modlog and bank) should absolutely be in the core cog, but I also feel they should not all be under [p]set as that will result in a further mess (which is already the case there meaning we may wish to do some regrouping of [p]set's subcommands either by creating command groups under it or splitting things out of [p]set into their own groups to group relevant commands together)

I agree with Draper. Commands for configuring APIs on the bot (like modlog and bank) should absolutely be in the core cog, but I also feel they should not all be under `[p]set` as that will result in a further mess (which is already the case there meaning we may wish to do some regrouping of `[p]set`'s subcommands either by creating command groups under it or splitting things out of `[p]set` into their own groups to group relevant commands together)
Dav-Git commented 2020-10-14 13:40:01 +02:00 (Migrated from github.com)

That's a good point. A regrouping of set commands to sort them by core API /feature they belong to makes sense. However with these groups any commands that control core or API settings need to be in set

That's a good point. A regrouping of set commands to sort them by core API /feature they belong to makes sense. However with these groups any commands that control core or API settings need to be in ``set``
palmtree5 commented 2020-10-16 05:38:09 +02:00 (Migrated from github.com)

So this PR was already a breaking change for the command moves and renames but initially there was an issue with tests failing, necessitating moving redbot.cogs.mod.converters.RawUserIds. I wound up moving that to redbot.core.commands.converter.RawUserIds and getting rid of redbot.cogs.mod.converters meaning that particular converter would be covered in our version guarantees moving forward.

So this PR was already a breaking change for the command moves and renames but initially there was an issue with tests failing, necessitating moving `redbot.cogs.mod.converters.RawUserIds`. I wound up moving that to `redbot.core.commands.converter.RawUserIds` and getting rid of `redbot.cogs.mod.converters` meaning that particular converter would be covered in our version guarantees moving forward.
palmtree5 commented 2021-05-27 05:46:54 +02:00 (Migrated from github.com)

Merge conflicts have been fixed on this one. Should hopefully have not broken anything either but still probably needs testing to be sure of that

Merge conflicts have been fixed on this one. Should hopefully have not broken anything either but still probably needs testing to be sure of that
palmtree5 commented 2021-05-27 05:57:13 +02:00 (Migrated from github.com)

Ok, NOW the merge conflicts have actually been fixed (after I managed to miss a couple trying to resolve in vscode lol).

Ok, NOW the merge conflicts have actually been fixed (after I managed to miss a couple trying to resolve in vscode lol).
aikaterna (Migrated from github.com) reviewed 2021-07-23 19:40:27 +02:00
aikaterna (Migrated from github.com) commented 2021-07-23 19:40:26 +02:00

This should be [p]bankset registeramount 5000

This should be `[p]bankset registeramount 5000`
aikaterna commented 2021-07-23 19:41:46 +02:00 (Migrated from github.com)

There was some talk in AC this morning about some setting info that is duplicated in both bankset showsettings and economyset showsettings (max balance and default initial balance) where they should be removed from the economy settings and just have them available in bank settings.

https://discord.com/channels/133049272517001216/718148684629540905/868174816082006036
https://discord.com/channels/133049272517001216/718148684629540905/868181565878960168

There was some talk in AC this morning about some setting info that is duplicated in both bankset showsettings and economyset showsettings (max balance and default initial balance) where they should be removed from the economy settings and just have them available in bank settings. https://discord.com/channels/133049272517001216/718148684629540905/868174816082006036 https://discord.com/channels/133049272517001216/718148684629540905/868181565878960168
Jackenmen commented 2021-10-24 02:07:21 +02:00 (Migrated from github.com)

@palmtree5 If you have some time to resolve the conflicts that have shown up here since May, I think I could go ahead with getting this reviewed and merged soon.
Let me know if you won't have time for this and I'll try finding some time to resolve these conflicts myself.

@palmtree5 If you have some time to resolve the conflicts that have shown up here since May, I think I could go ahead with getting this reviewed and merged soon. Let me know if you won't have time for this and I'll try finding some time to resolve these conflicts myself.
palmtree5 commented 2021-10-24 02:49:54 +02:00 (Migrated from github.com)

I'll try to look at this in the next couple days

I'll try to look at this in the next couple days
palmtree5 commented 2021-10-27 02:04:05 +02:00 (Migrated from github.com)

@jack1142 conflicts have been resolved on this and checks have passed

@jack1142 conflicts have been resolved on this and checks have passed
Jackenmen (Migrated from github.com) approved these changes 2021-11-25 10:04:50 +01:00
Jackenmen (Migrated from github.com) left a comment

LGTM

LGTM ![](https://i.fluffy.cc/3X84Bq2RR182XcPr0NTKKCp7wvNT8MhD.gif)
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!4486
No description provided.