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

Add deprecation warnings to ConfigLoader and TemplatedConfigLoader #2693

Closed
1 task done
merelcht opened this issue Jun 15, 2023 · 4 comments · Fixed by #2840
Closed
1 task done

Add deprecation warnings to ConfigLoader and TemplatedConfigLoader #2693

merelcht opened this issue Jun 15, 2023 · 4 comments · Fixed by #2840

Comments

@merelcht
Copy link
Member

merelcht commented Jun 15, 2023

Description

We plan to deprecate ConfigLoader and TemplatedConfigLoader and replace them with the OmegaConfigLoader from 0.19.0 onwards.

Implementation

Add a deprecation warning in the code and docs.

Follow-up

@astrojuanlu
Copy link
Member

Do you think, rather than deprecating ConfigLoader, we could "swap" it and make it an alias to OmegaConfigLoader (say, in 0.20.x)?

@merelcht
Copy link
Member Author

Do you think, rather than deprecating ConfigLoader, we could "swap" it and make it an alias to OmegaConfigLoader (say, in 0.20.x)?

I think that's something we should discuss as a team when this ticket gets groomed. If we want to essentially rename OmegaConfigLoader to ConfigLoader and make it the default, I personally would do that for 0.19.0. Why wait until 0.20.0 which might be 1-2 years away?

@noklam
Copy link
Contributor

noklam commented Jun 19, 2023

Options

  1. Rename OmegaConfigLoader -> ConfigLoader (Or keep the alias)
  2. Remove ConfigLoader and TemplatedConfigLoader , keep only OmegaConfigLoader

We are opting for 2.

@astrojuanlu
Copy link
Member

(Context: We noted that making users that had already adopted OmegaConfigLoader change the name back to ConfigLoader could frustrate them, and also make issues potentially more difficult to debug)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants