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

[FEATURE] utils: Nested config keys manipulation #33

Open
Jerrie-Aries opened this issue Aug 6, 2023 · 0 comments
Open

[FEATURE] utils: Nested config keys manipulation #33

Jerrie-Aries opened this issue Aug 6, 2023 · 0 comments
Assignees
Labels
Enhancement New feature or request Extended Utils Extended Utils related issue Feature request Feature request related.

Comments

@Jerrie-Aries
Copy link
Owner

Summary

Nested config keys manipulation support.

What plugin is the feature request for?

Extended Utils

The Problem

Currently we can only manipulate (set, remove) the root of config keys. Because of that, some base methods were kind of useless on nested keys.

It would be better if we can also manipulate keys in nested dictionary.

The Ideal Solution

Extend the set, get and remove methods of BaseConfig to also support nested keys.

Possible solution:

  • Identifier to access deeper key, e.g ., _, / etc.

The Current Solution

Manually access the nested key without method provided by BaseConfig class.

Additional Context

Implementation of this may or may not break some of the plugins. Thorough checks must be done if this were to be added.

@Jerrie-Aries Jerrie-Aries added Enhancement New feature or request Extended Utils Extended Utils related issue Feature request Feature request related. labels Aug 6, 2023
@Jerrie-Aries Jerrie-Aries self-assigned this Aug 6, 2023
@Jerrie-Aries Jerrie-Aries moved this from In Progress to Todo in @Jerrie-Aries' modmail-plugins Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Extended Utils Extended Utils related issue Feature request Feature request related.
Projects
Development

No branches or pull requests

1 participant