Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use custom groups in config instead of a big list #5880

Open
wants to merge 11 commits into
base: V3/develop
Choose a base branch
from

Conversation

Dav-Git
Copy link
Contributor

@Dav-Git Dav-Git commented Oct 13, 2022

Description of the changes

Move aliases config from a list per guild to custom groups.
Additionally potentially change the cache structure to better fit the new config model.
Add a migration to migrate existing Alias Data to the new config forma.

Have the changes in this PR been tested?

Yes

This closes #5242

@github-actions github-actions bot added the Category: Cogs - Alias This is related to the Alias cog. label Oct 13, 2022
@Dav-Git Dav-Git force-pushed the 5242-migrate_alias_config_to_dicts branch from 271bd56 to 821bea5 Compare October 13, 2022 15:05
@Drapersniper
Copy link
Contributor

You should group Config calls to avoid repeated calls to the same scope - alias is one of the few areas of red that these optimisations have a real world benefit

@Dav-Git
Copy link
Contributor Author

Dav-Git commented Oct 13, 2022

Agreed. Optimizations like this will follow when I have it generally working.
But thanks for the heads up :)

@Kowlin Kowlin changed the title [Alias]Use custom groups in config instead of a big list Use custom groups in config instead of a big list Oct 13, 2022
@Kowlin Kowlin added Type: Enhancement Something meant to enhance existing Red features. Type: Optimisation Situations where too much time is necessary to complete the task. labels Oct 13, 2022
@Dav-Git Dav-Git marked this pull request as ready for review October 17, 2022 08:54
@Dav-Git
Copy link
Contributor Author

Dav-Git commented Oct 17, 2022

No idea what broke the docs test... Works on my Machine(TM) and the error in the actions output isn't really telling me much.

@Flame442 Flame442 added the hacktoberfest-accepted Used to mark a PR as valid Hacktoberfest contribution. DO NOT REMOVE UNTIL END OF NOVEMBER (sic!)! label Oct 18, 2022
@Flame442
Copy link
Member

I noticed something about a timeout trying to reach a URL in the docs test output, so I just reran the test and it came back positive. Seems like a temporary outage caused it to fail. All set now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Cogs - Alias This is related to the Alias cog. hacktoberfest-accepted Used to mark a PR as valid Hacktoberfest contribution. DO NOT REMOVE UNTIL END OF NOVEMBER (sic!)! Type: Enhancement Something meant to enhance existing Red features. Type: Optimisation Situations where too much time is necessary to complete the task.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate Alias's config from a list of entries to a name->alias_data mapping
5 participants