[Mod] Add two new settings to disable name/nickname tracking #4799

Merged
Flame442 merged 8 commits from track-names into V3/develop 2021-02-16 20:13:38 +01:00
Flame442 commented 2021-02-10 04:04:47 +01:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

Adds two new commands, [p]modset trackallnames and [p]modset tracknicknames. Since trackallnames needs to be able to be run in DMs, the group command [p]modset was modified to be usable in DMs, as well as [p]modset showsettings.

[p]modset trackallnames disables name tracking and overrides the nickname tracking setting for all guilds.
[p]modset tracknicknames disables nickname tracking in the current guild.

Closes #4514
Closes #4798

### Type - [ ] Bugfix - [ ] Enhancement - [x] New feature ### Description of the changes Adds two new commands, `[p]modset trackallnames` and `[p]modset tracknicknames`. Since `trackallnames` needs to be able to be run in DMs, the group command `[p]modset` was modified to be usable in DMs, as well as `[p]modset showsettings`. `[p]modset trackallnames` disables name tracking and overrides the nickname tracking setting for all guilds. `[p]modset tracknicknames` disables nickname tracking in the current guild. Closes #4514 Closes #4798
Jackenmen commented 2021-02-15 01:17:08 +01:00 (Migrated from github.com)

Not a review, I just have two things up for consideration.

  • Should the tracking be enabled by default? Personally, I think it's alright to keep it on by default, but I think that some people don't agree with this so I want to bring it up.
  • I think it would make some sense to have a way to clear all stored usernames and/or nicknames as disabling the functionality currently still keeps all the names and nicknames in the bot's storage.
Not a review, I just have two things up for consideration. - Should the tracking be enabled by default? Personally, I think it's alright to keep it on by default, but I think that some people don't agree with this so I want to bring it up. - I think it would make some sense to have a way to clear all stored usernames and/or nicknames as disabling the functionality currently still keeps all the names and nicknames in the bot's storage.
Flame442 commented 2021-02-15 01:34:05 +01:00 (Migrated from github.com)

I think it would make some sense to have a way to clear all stored usernames and/or nicknames as disabling the functionality currently still keeps all the names and nicknames in the bot's storage.

Personally, I think that should be done explicitly somewhere else (does the cog data deletion have anything else it deletes anyway?) rather than bundling it in here.

> I think it would make some sense to have a way to clear all stored usernames and/or nicknames as disabling the functionality currently still keeps all the names and nicknames in the bot's storage. Personally, I think that should be done explicitly somewhere else (does the cog data deletion have anything else it deletes anyway?) rather than bundling it in here.
Jackenmen commented 2021-02-15 23:03:31 +01:00 (Migrated from github.com)

Hmm, without a way to clear the data this PR does not fully resolve #4798 IMO as there's no way to clear the data other than doing it manually in the data storage while the bot is offline.

Edit: seems like #4514 also mentions a command for wiping username and nickname data so that isn't resolved either.

Hmm, without a way to clear the data this PR does not fully resolve #4798 IMO as there's no way to clear the data other than doing it manually in the data storage while the bot is offline. Edit: seems like #4514 also mentions a command for wiping username and nickname data so that isn't resolved either.
TrustyJAID commented 2021-02-16 00:33:20 +01:00 (Migrated from github.com)

I really like this change. However, Jack is right about the missing features as they should be included in this. Removing past names is trivial with a config clear on users. Clearing nickname changes is a bit more challenging since you'd have to iterate through the entire guild and member list. In my experience though clearing the username's changed my mod settings from 14mb down to 3mb in size.

I really like this change. However, Jack is right about the missing features as they should be included in this. Removing past names is trivial with a config clear on users. Clearing nickname changes is a bit more challenging since you'd have to iterate through the entire guild and member list. In my experience though clearing the username's changed my mod settings from 14mb down to 3mb in size.
Jackenmen (Migrated from github.com) reviewed 2021-02-16 18:20:00 +01:00
Jackenmen (Migrated from github.com) left a comment

LGTM code-wise and I've tested the changes too. Not approving yet as there's an ongoing conversation on what the defaults should be.

LGTM code-wise and I've tested the changes too. Not approving yet as there's an ongoing conversation on what the defaults should be.
Jackenmen (Migrated from github.com) requested changes 2021-02-16 18:33:15 +01:00
Jackenmen (Migrated from github.com) left a comment

Actually, I've just remembered that we wanted a hint about the [p]modset deletenames (already approved so it's safe to add here) to be included when disabling tracking of all names so that should get addressed.

Actually, I've just remembered that we wanted a hint about the `[p]modset deletenames` (already approved so it's safe to add here) to be included when disabling tracking of all names so that should get addressed.
Jackenmen (Migrated from github.com) reviewed 2021-02-16 19:58:44 +01:00
Jackenmen (Migrated from github.com) left a comment
No description provided.
LGTM.
Jackenmen (Migrated from github.com) approved these changes 2021-02-16 20:13:31 +01:00
Sign in to join this conversation.
No reviewers
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!4799
No description provided.