Red v3.4 and End user data. #4093

Closed
opened 2020-07-21 00:52:42 +02:00 by Kowlin · 1 comment
Kowlin commented 2020-07-21 00:52:42 +02:00 (Migrated from github.com)

Hey everyone!

We're bringing some important news today regarding Red and data storage, with the upcoming changes to the Discord Developer ToS we're giving you new options to control your data (A big thanks to @mikeshardmind )

You may receive e-mails and notifications from Discord asking you to remove end user data from specific users who have data stored on your bot. Red v3.4 will make it the burden to remove any end user data from the bot a lot easier.

Starting from Red version 3.4 you will have access to the following features.

For Red end users:

  • You have the ability to see what type of information and end user data is stored with the command mydata whatdata.
  • You'll have the ability to export your data with the command mydata getmydata.
    • Note that this feature is still in active development and may not be fully supported initially.
  • You will gain access to a command to delete your own end user data from the bot with the command mydata forgetme.

For Red owners:

  • You as a bot owner will gain the ability to remove data on a per user basis via an command.
  • You will be shown what information a cog stores as its data (this isn't part of Red 3.4 but we plan to add support for it at a later release).
  • You will have the ability to remove all data associated with a cog (deferred).
  • You will be able to delete an end user and its data from the bot.
  • Downloader will warn you when an updated cog has changed its end user data that its storing.

For Red Cog developers:

  • You'll gain a new field named end_user_data_statement in your info.json (On the cog side) and new Red-specific dunder variable named __red_end_user_data_statement__ (put in the cog package) which allows you to explain what EUD you're storing. (https://github.com/Cog-Creators/Red-DiscordBot/pull/4045, https://github.com/Cog-Creators/Red-DiscordBot/pull/4169)
    • Bot owner can see this field before installing cog (end_user_data_statement in info.json) as well as when the cog is loaded (__red_end_user_data_statement__ in the cog package).
    • Bot owner will be notified about the changes to that field during cog update.
  • Your cogs will have the ability to programmatically delete end user data by overwriting the function red_delete_data_for_user

Important information with v3.4:

  • We are not unloading all cogs on the start of Red v3.4
  • Upon updating and starting Red v3.4 all cogs will be unloaded.
    • This is to ensure that the bot owner is aware of what data is stored on each cog.

Breaking changes with v3.4:

  • Attributes and method names starting with red_, and dunder names starting with red (ie. of the form __red_*__) will be reserved. (https://github.com/Cog-Creators/Red-DiscordBot/pull/4085)
  • By default, none of the .send() methods will mention roles or @​everyone/@​here. (https://github.com/Cog-Creators/Red-DiscordBot/pull/3845)
    • d.py 1.4 introduces allowed_mentions kwarg to .send() methods that can be used to make the message mention roles or @​everyone/@​here.
    • The default value of the filter kwarg in Context.send() will be changed to None which means that enabling @​everyone/@​here mentions will now require using the aforementioned allowed_mentions kwarg instead.
  • Cog package names (i.e. name of the folder the cog is in and the name used when loading the cog) will have to be valid Python identifiers. (https://github.com/Cog-Creators/Red-DiscordBot/pull/3679)
    • This basically means that the cog package names cannot start with a number and they can only contain ascii numbers, letters, and underscores + they can't use a reserved python keyword as a name.
  • redbot.core.utils.chat_formatting.humanize_list() will accept empty sequences instead of raising IndexError for them. (https://github.com/Cog-Creators/Red-DiscordBot/pull/2982)

Any comments on this are welcome on this issue, its associated PRs/issues, or over on our Discord server.

Hey everyone! We're bringing some important news today regarding Red and data storage, with the upcoming changes to the Discord Developer ToS we're giving you new options to control your data (A big thanks to @mikeshardmind ) You may receive e-mails and notifications from Discord asking you to remove end user data from specific users who have data stored on your bot. Red v3.4 will make it the burden to remove any end user data from the bot a lot easier. Starting from Red version 3.4 you will have access to the following features. __For Red end users:__ * You have the ability to see what type of information and end user data is stored with the command ``mydata whatdata``. * You'll have the ability to export your data with the command ``mydata getmydata``. * Note that this feature is still in active development and may not be fully supported initially. * You will gain access to a command to delete your own end user data from the bot with the command ``mydata forgetme``. __For Red owners:__ * You as a bot owner will gain the ability to remove data on a per user basis via an command. * You will be shown what information a cog stores as its data (this isn't part of Red 3.4 but we plan to add support for it at a later release). * ~~You will have the ability to remove all data associated with a cog~~ (deferred). * You will be able to delete an end user and its data from the bot. * Downloader will warn you when an updated cog has changed its end user data that its storing. __For Red Cog developers:__ * You'll gain a new field named ``end_user_data_statement`` in your ``info.json`` (On the cog side) and new Red-specific dunder variable named `__red_end_user_data_statement__` (put in the cog package) which allows you to explain what EUD you're storing. (https://github.com/Cog-Creators/Red-DiscordBot/pull/4045, https://github.com/Cog-Creators/Red-DiscordBot/pull/4169) * Bot owner can see this field before installing cog (`end_user_data_statement` in `info.json`) as well as when the cog is loaded (`__red_end_user_data_statement__` in the cog package). * Bot owner will be notified about the changes to that field during cog update. * Your cogs will have the ability to programmatically delete end user data by overwriting the function ``red_delete_data_for_user`` * There are various levels of deletion, see the PR for more details (https://github.com/Cog-Creators/Red-DiscordBot/pull/4045) __Important information with v3.4:__ * We are not unloading all cogs on the start of Red v3.4 * ~~Upon updating and starting Red v3.4 all cogs will be unloaded.~~ * ~~This is to ensure that the bot owner is aware of what data is stored on each cog.~~ __Breaking changes with v3.4:__ * Attributes and method names starting with ``red_``, and dunder names starting with red (ie. of the form ``__red_*__``) will be reserved. (https://github.com/Cog-Creators/Red-DiscordBot/pull/4085) * By default, none of the .send() methods will mention roles or @​everyone/@​here. (https://github.com/Cog-Creators/Red-DiscordBot/pull/3845) * d.py 1.4 introduces ``allowed_mentions`` kwarg to .send() methods that can be used to make the message mention roles or @​everyone/@​here. * The default value of the ``filter`` kwarg in ``Context.send()`` will be changed to None which means that enabling @​everyone/@​here mentions will now require using the aforementioned ``allowed_mentions`` kwarg instead. * Cog package names (i.e. name of the folder the cog is in and the name used when loading the cog) will have to be valid Python identifiers. (https://github.com/Cog-Creators/Red-DiscordBot/pull/3679) * This basically means that the cog package names cannot start with a number and they can only contain ascii numbers, letters, and underscores + they can't use a [reserved python keyword](https://docs.python.org/3/reference/lexical_analysis.html#keywords) as a name. * ``redbot.core.utils.chat_formatting.humanize_list()`` will accept empty sequences instead of raising ``IndexError`` for them. (https://github.com/Cog-Creators/Red-DiscordBot/pull/2982) Any comments on this are welcome on this issue, its associated PRs/issues, or over on [our Discord server](https://discord.gg/red).
Bluscream commented 2020-08-18 02:35:34 +02:00 (Migrated from github.com)

GDPR LMAO

GDPR LMAO
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#4093
No description provided.