Unload modlog should disable modlog #4067

Closed
opened 2020-07-10 17:54:50 +02:00 by Bakersbakebread · 13 comments
Bakersbakebread commented 2020-07-10 17:54:50 +02:00 (Migrated from github.com)

What were you trying to do?

Unload to disable modlog

What were you expecting to happen?

Unloading modlog disabled modlog

What actually happened?

Unloading modlog does not disable modlog

How can we reproduce this issue?

Unload modlog with an active channel set.

#### What were you trying to do? Unload to disable modlog #### What were you expecting to happen? Unloading modlog disabled modlog #### What actually happened? Unloading modlog does not disable modlog #### How can we reproduce this issue? Unload modlog with an active channel set.
Drapersniper commented 2020-07-10 17:59:47 +02:00 (Migrated from github.com)

Modlog cog and modlog api are two different things. The former is an interface for configuration that anyone could make a different looking one.

If you are referring to the API. Then perhaps a setting to disable the api. But that can get messy as cogs atm May depend on it. And assume it's always avaliable, so such a change would end up being breaking, unless the silence calls to the api when it's disable. But that's obfuscating the behaviour

Modlog cog and modlog api are two different things. The former is an interface for configuration that anyone could make a different looking one. If you are referring to the API. Then perhaps a setting to disable the api. But that can get messy as cogs atm May depend on it. And assume it's always avaliable, so such a change would end up being breaking, unless the silence calls to the api when it's disable. But that's obfuscating the behaviour
Dav-Git commented 2020-07-10 18:07:28 +02:00 (Migrated from github.com)

I don't see this being beneficial. Properly made cogs will provide an option to disable modlog entries or you can do so by disabling the casetype via the modlog cog.

I don't see this being beneficial. Properly made cogs will provide an option to disable modlog entries or you can do so by disabling the casetype via the modlog cog.
Jackenmen commented 2020-07-10 18:12:38 +02:00 (Migrated from github.com)

This has never gone anywhere but I want to bring up again moving commands for changing API settings out of the cogs and putting them directly in core commands. To be specific: moving [p]modlogset from modlog cog to core commands (possibly to [p]set modlog), moving [p]bankset out of bank cog (possibly to [p]set bank), moving [p]economyset registeramount (and probably also [p]bank reset and [p]bank prune) to [p]bankset/[p]set bank. IMO, they shouldn't be part of any cog since they allow to change settings of a core API, same as [p]autoimmune, [p]whitelist, or [p]embedset that also allow users to change API settings.

This has never gone anywhere but I want to bring up again moving commands for changing API settings out of the cogs and putting them directly in core commands. To be specific: moving `[p]modlogset` from `modlog` cog to core commands (possibly to `[p]set modlog`), moving `[p]bankset` out of `bank` cog (possibly to `[p]set bank`), moving `[p]economyset registeramount` (and probably also `[p]bank reset` and `[p]bank prune`) to `[p]bankset`/`[p]set bank`. IMO, they shouldn't be part of any cog since they allow to change settings of a core API, same as `[p]autoimmune`, `[p]whitelist`, or `[p]embedset` that also allow users to change API settings.
Dav-Git commented 2020-07-10 18:34:37 +02:00 (Migrated from github.com)

This has never gone anywhere but I want to bring up again moving commands for changing API settings out of the cogs and putting them directly in core commands. To be specific: moving [p]modlogset from modlog cog to core commands (possibly to [p]set modlog), moving [p]bankset out of bank cog (possibly to [p]set bank), moving [p]economyset registeramount (and probably also [p]bank reset and [p]bank prune) to [p]bankset/[p]set bank. IMO, they shouldn't be part of any cog since they allow to change settings of a core API, same as [p]autoimmune, [p]whitelist, or [p]embedset that also allow users to change API settings.

I like that, however that would leave some cogs as relatively useless. No? E.g. for modlog there's not much more than the settings and the viewing of individual cases which at least makes me think it could be moved to core entirely. If that happens though, core ends up being massive again, so I can understand why the categorization and split into multiple cogs was made.

> This has never gone anywhere but I want to bring up again moving commands for changing API settings out of the cogs and putting them directly in core commands. To be specific: moving `[p]modlogset` from `modlog` cog to core commands (possibly to `[p]set modlog`), moving `[p]bankset` out of `bank` cog (possibly to `[p]set bank`), moving `[p]economyset registeramount` (and probably also `[p]bank reset` and `[p]bank prune`) to `[p]bankset`/`[p]set bank`. IMO, they shouldn't be part of any cog since they allow to change settings of a core API, same as `[p]autoimmune`, `[p]whitelist`, or `[p]embedset` that also allow users to change API settings. I like that, however that would leave some cogs as relatively useless. No? E.g. for modlog there's not much more than the settings and the viewing of individual cases which at least makes me think it could be moved to core entirely. If that happens though, core ends up being massive again, so I can understand why the categorization and split into multiple cogs was made.
Jackenmen commented 2020-07-10 18:38:53 +02:00 (Migrated from github.com)

I like that, however that would leave some cogs as relatively useless.

ModLog would still have [p]casesfor, [p]case, and [p]reason commands, Bank cog would be removed since there would be nothing in it, and Economy cog still has plenty to offer.

> I like that, however that would leave some cogs as relatively useless. ModLog would still have `[p]casesfor`, `[p]case`, and `[p]reason` commands, Bank cog would be removed since there would be nothing in it, and Economy cog still has plenty to offer.
Jackenmen commented 2020-07-10 18:39:54 +02:00 (Migrated from github.com)

I'm specifically only talking about command that allow to change API's settings, nothing else.

I'm specifically **only** talking about command that allow to change API's settings, nothing else.
mikeshardmind commented 2020-07-10 19:49:21 +02:00 (Migrated from github.com)

This isn't a bug, and I don't think it's something that should be changed either. As a documented and supported API that cogs use, it isn't intended to be replaced, and the output of cases to a channel can be controlled.

This isn't a bug, and I don't think it's something that should be changed either. As a documented and supported API that cogs use, it isn't intended to be replaced, and the output of cases to a channel can be controlled.
Jackenmen commented 2020-07-10 20:03:06 +02:00 (Migrated from github.com)

Right, I forgot about the clue of the issue... I don't think the API should be disableable either, I just wanted
to use this as an occasion to propose (again) something that would make more sense for what ModLog really is - a core API.

Right, I forgot about the clue of the issue... I don't think the API should be disableable either, I just wanted to use this as an occasion to propose (again) something that would make more sense for what ModLog really is - a *core* API.
mikeshardmind commented 2020-07-10 20:07:38 +02:00 (Migrated from github.com)

+1 from me on moving the API management commands to core_commands, but I think it needs to happen on a breaking release since this is going to break people's usage of permissions, also makes it clearer that modlog isn't something that can be disabled.

+1 from me on moving the API management commands to core_commands, but I think it needs to happen on a breaking release since this is going to break people's usage of permissions, also makes it clearer that modlog isn't something that can be disabled.
Bakersbakebread commented 2020-07-10 20:28:49 +02:00 (Migrated from github.com)

+1 from me on moving the API management commands to core_commands, but I think it needs to happen on a breaking release since this is going to break people's usage of permissions, also makes it clearer that modlog isn't something that can be disabled.

That's the crux of this issue, I expected the unload to disable it as this is common behaviour with most cogs.

It being hidden inside the cog and unloading the cog hides the options to disable it.

As in, clearing the modlog channel to globally disable.

> +1 from me on moving the API management commands to core_commands, but I think it needs to happen on a breaking release since this is going to break people's usage of permissions, also makes it clearer that modlog isn't something that can be disabled. That's the crux of this issue, I expected the unload to disable it as this is common behaviour with most cogs. It being hidden inside the cog and unloading the cog hides the options to disable it. As in, clearing the modlog channel to globally disable.
Jackenmen commented 2020-07-29 23:27:33 +02:00 (Migrated from github.com)

I made #4128 to express the idea of moving commands for API settings out of cogs. Does anyone involved in this issue has anything against closing this issue in favor of #4128?

I made #4128 to express the idea of moving commands for API settings out of cogs. Does anyone involved in this issue has anything against closing this issue in favor of #4128?
Bakersbakebread commented 2020-07-30 00:01:57 +02:00 (Migrated from github.com)

Nope, lgtm

Nope, lgtm
Jackenmen commented 2020-07-30 02:32:53 +02:00 (Migrated from github.com)

Closing in favour of #4128.

Closing in favour of #4128.
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#4067
No description provided.