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

[FR] Add an option to use config file over env vars. #922

Closed
1 of 4 tasks
loomlike opened this issue Dec 14, 2022 · 0 comments · Fixed by #923
Closed
1 of 4 tasks

[FR] Add an option to use config file over env vars. #922

loomlike opened this issue Dec 14, 2022 · 0 comments · Fixed by #923
Labels
feature New feature or request

Comments

@loomlike
Copy link
Collaborator

Willingness to contribute

Yes. I can contribute a fix for this bug independently.

Feature Request Proposal

Give options to read config variables either from env or yaml file.

Motivation

Currently, feathr client always use env vars regardless of the configured variables in the feathr yaml file.
This behavior is sometimes confusing since the yaml config is explicitly written while the env vars are hidden and implicit.

I think some of customers already get used to use env vars over the config file and thus changing the priority of reading config variables may cause problems to the existing workflows and pipelines.

So I'm proposing introducing a flag to FeathrClient to indicate which variables (env or config yaml file) the feathr client should read.

Details

No response

What component(s) does this feature request affect?

  • Python Client: This is the client users use to interact with most of our API. Mostly written in Python.
  • Computation Engine: The computation engine that execute the actual feature join and generation work. Mostly in Scala and Spark.
  • Feature Registry API: The frontend API layer supports SQL, Purview(Atlas) as storage. The API layer is in Python(FAST API)
  • Feature Registry Web UI: The Web UI for feature registry. Written in React
@loomlike loomlike added the feature New feature or request label Dec 14, 2022
blrchen pushed a commit that referenced this issue Dec 22, 2022
Introduce an option to select between env vars and config yaml file.
Feathr client to use explicitly configured yaml file over environment variable if use_env_var flag is set to False.

The changes are added as the last argument of the existing functions and set default to True (use env variables) so that
existing codes don't break.

Resolves #922
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant