Skip to content

Commit

Permalink
Merge pull request #10 from Qualytics/sc-15320/cli-bug-related-to-tic…
Browse files Browse the repository at this point in the history
…ket-66302957

Fixed additional metadata when it's null
  • Loading branch information
shindiogawa authored Jan 3, 2024
2 parents e6bba7b + aab2fc8 commit 7e5ddc3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.1.6
current_version = 0.1.7
commit = True
tag = True
tag_name = {new_version}
Expand Down
10 changes: 8 additions & 2 deletions qualytics/qualytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from typing_extensions import Annotated
from croniter import croniter

__version__ = "0.1.6"
__version__ = "0.1.7"

app = typer.Typer()

Expand All @@ -42,6 +42,7 @@
CRONTAB_ERROR_PATH = os.path.expanduser(f"{BASE_PATH}/schedule-operation-errors.txt")
CRONTAB_COMMANDS_PATH = os.path.expanduser(f"{BASE_PATH}/schedule-operation.txt")


def validate_and_format_url(url: str) -> str:
"""Validates and formats the URL to the desired structure."""

Expand Down Expand Up @@ -335,7 +336,12 @@ def checks_import(datastore: str = typer.Option(..., "--datastore",
"from quality check id": f"{quality_check['id']}",
"main datastore id": f"{datastore_id}"
}
quality_check['additional_metadata'].update(additional_metadata)

if quality_check['additional_metadata'] is None:
quality_check['additional_metadata'] = additional_metadata
else:
quality_check['additional_metadata'].update(additional_metadata)

payload = {
"fields": [field['name'] for field in quality_check['fields']],
"description": f"{quality_check['description']} {description}",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'GitHub': 'https://github.com/Qualytics/qualytics-cli',
'Userguide': 'https://qualytics.github.io/userguide/'
}
__version__ = "0.1.6"
__version__ = "0.1.7"
setup(
name="qualytics-cli",
packages=find_packages(),
Expand Down

0 comments on commit 7e5ddc3

Please sign in to comment.