Skip to content

Commit

Permalink
changed flag name to be more descriptive
Browse files Browse the repository at this point in the history
Signed-off-by: David Y Liu <[email protected]>
  • Loading branch information
mavysavydav committed Jul 13, 2021
1 parent a72a3e2 commit 4a7ea3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions sdk/python/feast/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,20 +181,20 @@ def feature_view_list(ctx: click.Context):

@cli.command("apply", cls=NoOptionDefaultFormat)
@click.option(
"--validate-off",
"--skip-source-validation",
is_flag=True,
help="Don't validate the data sources.",
help="Don't validate the data sources by checking for that the tables exist.",
)
@click.pass_context
def apply_total_command(ctx: click.Context, validate_off: bool):
def apply_total_command(ctx: click.Context, skip_source_validation: bool):
"""
Create or update a feature store deployment
"""
repo = ctx.obj["CHDIR"]
cli_check_repo(repo)
repo_config = load_repo_config(repo)
try:
apply_total(repo_config, repo, validate_off)
apply_total(repo_config, repo, skip_source_validation)
except FeastProviderLoginError as e:
print(str(e))

Expand Down
4 changes: 2 additions & 2 deletions sdk/python/feast/repo_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def parse_repo(repo_root: Path) -> ParsedRepo:


@log_exceptions_and_usage
def apply_total(repo_config: RepoConfig, repo_path: Path, validate_off: bool):
def apply_total(repo_config: RepoConfig, repo_path: Path, skip_source_validation: bool):
from colorama import Fore, Style

os.chdir(repo_path)
Expand All @@ -133,7 +133,7 @@ def apply_total(repo_config: RepoConfig, repo_path: Path, validate_off: bool):
repo = parse_repo(repo_path)
data_sources = [t.input for t in repo.feature_views]

if not validate_off:
if not skip_source_validation:
# Make sure the data source used by this feature view is supported by Feast
for data_source in data_sources:
data_source.validate(repo_config)
Expand Down

0 comments on commit 4a7ea3f

Please sign in to comment.