-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Split public and private data manager APIs into separate modules #6023
Open
Jackenmen
wants to merge
2
commits into
Cog-Creators:V3/develop
Choose a base branch
from
Jackenmen:data_manager_api_changes_for_rarely_used
base: V3/develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Split public and private data manager APIs into separate modules #6023
Jackenmen
wants to merge
2
commits into
Cog-Creators:V3/develop
from
Jackenmen:data_manager_api_changes_for_rarely_used
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jackenmen
added
Type: Enhancement
Something meant to enhance existing Red features.
Breaking Change
Will potentially break some cogs.
labels
Apr 15, 2023
github-actions
bot
added
Category: Cogs - Audio
This is related to the Audio cog.
Category: Core - API - Config
This is related to the `redbot.core.config` module and `redbot.core.drivers` package.
Category: Core - API - Other
This is related to core APIs that don't have a dedicated label.
Category: Core - Bot Commands
This is related to core commands (Core and CogManagerUI cog classes).
Category: Core - Command-line Interfaces
This is related to Red's CLIs (redbot, redbot-launcher, redbot-setup).
Category: Core - Other Internals
This is related to core internals that don't have a dedicated label.
Category: Meta
This is related to the repository maintenance.
labels
Apr 15, 2023
Jackenmen
force-pushed
the
data_manager_api_changes_for_rarely_used
branch
from
May 8, 2023 09:58
def7152
to
1f8deb2
Compare
github-actions
bot
removed
the
Category: Core - API - Config
This is related to the `redbot.core.config` module and `redbot.core.drivers` package.
label
May 8, 2023
Jackenmen
changed the title
Document and clarify publicity of rarely used data_manager APIs
Split public and private data manager APIs
May 8, 2023
Jackenmen
force-pushed
the
data_manager_api_changes_for_rarely_used
branch
2 times, most recently
from
May 10, 2023 15:01
d99efdf
to
e6a9a8d
Compare
Jackenmen
force-pushed
the
data_manager_api_changes_for_rarely_used
branch
from
May 10, 2023 15:06
e6a9a8d
to
6266503
Compare
Jackenmen
changed the title
Split public and private data manager APIs
Split public and private data manager APIs into separate modules
May 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Category: Cogs - Audio
This is related to the Audio cog.
Category: Core - API - Other
This is related to core APIs that don't have a dedicated label.
Category: Core - Bot Commands
This is related to core commands (Core and CogManagerUI cog classes).
Category: Core - Command-line Interfaces
This is related to Red's CLIs (redbot, redbot-launcher, redbot-setup).
Category: Core - Other Internals
This is related to core internals that don't have a dedicated label.
Category: Meta
This is related to the repository maintenance.
Type: Enhancement
Something meant to enhance existing Red features.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the changes
instance_name
variable that wasn't part of 3.5's public API (nor were they clearly defined to be part of the public API in 3.4) of thedata_manager
module and supersede it with a publicinstance_name()
function returning the same value_
-prefixed module (basic_config
,basic_config_default
,appdir
,config_dir
load_existing_config()
,config_file
,create_temp_config()
,load_basic_configuration()
have been moved toredbot.core._data_manager
)_base_data_path()
directly todata_path()
and use that everywhere in the module insteadI was also forced to move
cli_level_to_log_level()
from internal utils toredbot.core.cli
due to a circular import. This is a better location for it anyway, especially sinceredbot.core._cli
is now private as well.Have the changes in this PR been tested?
Yes