Skip to content

[Backport release-2.28] Use Config parameters instead of a Config setter to set a Profile on a Config object. (#5539) #5586

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

Merged
merged 9 commits into from
Jul 17, 2025

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jul 17, 2025

This PR removes the Config::set_profile method along with its corresponding C and C++ APIs, changing the logic so that users can specify a Profile directly on a Config object to retrieve its rest.* parameters. Instead of using the setter method, the new approach is to pass the Profile details as normal config parameters: "profile_name" and "profile_dir".

The primary motivation for this change is to enable setting Profile details via environment variables as an alternative to configuring them through code. This approach leverages the existing behavior of Config::get_from_config_or_fallback, which reads environment variables and treats them as standard config parameters. As a result, users can now use the TILEDB_PROFILE_NAME and TILEDB_PROFILE_DIR environment variables, improving the overall user experience - especially for those who frequently switch/test across different internal clusters.


TYPE: IMPROVEMENT
DESC: Use config parameters instead of a config setter to set a profile on a config object.

@github-actions github-actions bot requested a review from a team as a code owner July 17, 2025 10:54
@kounelisagis kounelisagis reopened this Jul 17, 2025
@ypatia ypatia merged commit df28cfb into release-2.28 Jul 17, 2025
59 checks passed
@ypatia ypatia deleted the backport/pr-5539-to-release-2.28 branch July 17, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants