Skip to content

Refactor Feast CLI/SDK configuration#551

Merged
feast-ci-bot merged 4 commits into
feast-dev:masterfrom
woop:python-config-refactor
Mar 19, 2020
Merged

Refactor Feast CLI/SDK configuration#551
feast-ci-bot merged 4 commits into
feast-dev:masterfrom
woop:python-config-refactor

Conversation

@woop
Copy link
Copy Markdown
Member

@woop woop commented Mar 19, 2020

What this PR does / why we need it:

The original implementation of configuration loading in the Feast SDK and CLI had a few problems

  1. Logic was scattered over client.py, config.py, and cli.py and was overly verbose.
  2. No clear definition of available keys and default options
  3. No centralized loader that takes config option precedence into account (initialized, env, file, default)
  4. No type casting (int, bool, float)

This PR cleans up the configuration and adds the above functionality.

Which issue(s) this PR fixes:

Does this PR introduce a user-facing change?:

None

@feast-ci-bot
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: woop

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@khorshuheng
Copy link
Copy Markdown
Collaborator

/lgtm

@feast-ci-bot feast-ci-bot merged commit 28f02d2 into feast-dev:master Mar 19, 2020
@khorshuheng khorshuheng mentioned this pull request Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants