-
Notifications
You must be signed in to change notification settings - Fork 998
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
Refactor configurable options and add sphinx docs #1174
Refactor configurable options and add sphinx docs #1174
Conversation
sdk/python/feast/constants.py
Outdated
#: Oauth token request url | ||
OAUTH_TOKEN_REQUEST_URL: str = "" | ||
|
||
MAX_WAIT_INTERVAL: str = "60" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excluded docs for this on purpose since it's only used internally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean by internally
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's only used by wait_retry_backoff
. Although it can be configured for ingest method, not sure if we want to expose that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just strange how we allow users to set it but we dont document it. I think it should be documented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shifted out of configurable options.
d2155fe
to
1cd114d
Compare
Signed-off-by: Terence <[email protected]>
1cd114d
to
22838c8
Compare
Signed-off-by: Terence <[email protected]>
2bc2037
to
eddf9e8
Compare
Signed-off-by: Terence <[email protected]>
eddf9e8
to
fc5c87b
Compare
Signed-off-by: Terence <[email protected]>
I love this PR. |
Signed-off-by: Terence <[email protected]>
Signed-off-by: Terence <[email protected]>
sdk/python/feast/constants.py
Outdated
#: Feast Spark Job ingestion jobs staging location | ||
SPARK_STAGING_LOCATION: str = "" | ||
|
||
#: Feast Spark Job ingestion jar file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this http only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup I think so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how do users know that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It currently depends on spark launcher: in dataproc http
and gs
is supported; in emr http
and s3
, in local mode http
and file
sdk/python/feast/constants.py
Outdated
#: Spark Job launcher | ||
SPARK_LAUNCHER: str = "dataproc" # standalone, dataproc, emr | ||
|
||
#: Feast Spark Job ingestion jobs staging location |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the possible options?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
#: Time to wait for historical feature requests before timing out. | ||
BATCH_FEATURE_REQUEST_WAIT_TIME_SECONDS: str = "600" | ||
|
||
#: Authentication Provider - Google OpenID/OAuth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the possible options?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
sdk/python/feast/constants.py
Outdated
#: Enable user authentication to Feast Core | ||
ENABLE_AUTH: str = "False" | ||
|
||
#: Auth token for user authentication to Feast |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What kind of auth? What does this mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
sdk/python/feast/constants.py
Outdated
#: Default StatsD port | ||
STATSD_PORT: str = "" | ||
|
||
#: IngestionJob DeadLetter Destination |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the possible options?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again gs
supported by dataproc launcher, s3
by emr.
We do not include s3 support in dataproc launcher and vice versa
sdk/python/feast/constants.py
Outdated
AUTH_PROVIDER: str = "google" | ||
|
||
#: Spark Job launcher | ||
SPARK_LAUNCHER: str = "dataproc" # standalone, dataproc, emr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we change this to standalone
so that users arent forced to use dataproc by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defaults to None. Users should set this on their own.
Signed-off-by: Terence <[email protected]>
e1b9676
to
6fce7e9
Compare
Signed-off-by: Terence <[email protected]>
6fce7e9
to
36bc636
Compare
Signed-off-by: Terence <[email protected]>
Signed-off-by: Terence <[email protected]>
/retest |
sdk/python/feast/constants.py
Outdated
class ConfigMeta(type): | ||
""" | ||
Class factory which customizes ConfigOptions class instantiation. | ||
Specifically, setting its name to lowercase of capitalized variable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setting its name
what is "it"?
Signed-off-by: Terence <[email protected]>
Signed-off-by: Terence <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pyalex, terryyylim The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
* Refactor constants and add sphinx docs Signed-off-by: Terence <[email protected]> * Set default jobservice to none Signed-off-by: Terence <[email protected]> * Fix auth tests Signed-off-by: Terence <[email protected]> * Some fixes Signed-off-by: Terence <[email protected]> * Address comments Signed-off-by: Terence <[email protected]> * Address comments Signed-off-by: Terence <[email protected]> * Test none default Signed-off-by: Terence <[email protected]> * Set default as none Signed-off-by: Terence <[email protected]> * Update docs Signed-off-by: Terence <[email protected]> * Cleanup spark launcher constant Signed-off-by: Terence <[email protected]> * Update constants and clarify docstring Signed-off-by: Terence <[email protected]> * Polish docstrings Signed-off-by: Terence <[email protected]>
Signed-off-by: Terence [email protected]
What this PR does / why we need it:
Currently, constants used for
Config
class are declared separately from default values and the term is used interchangeably with config options, making it difficult to maintain as the number of configurable options increase.This PR addresses the following:
eg.
CONFIG_SPARK_HISTORICAL_FEATURE_OUTPUT_FORMAT = "historical_feature_output_format"
toCONFIG_HISTORICAL_FEATURE_OUTPUT_FORMAT = "historical_feature_output_format"
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: