Skip to content

Commit 9a34999

Browse files
committed
WIP
1 parent 6d2034f commit 9a34999

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

src/datapilot/clients/altimate/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
"catalog",
77
"run_results",
88
"sources",
9+
"semantic_manifest",
910
}

src/datapilot/core/platforms/dbt/cli/cli.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def project_health(
159159
@click.option("--catalog-path", required=False, prompt=False, help="Path to the catalog file.")
160160
@click.option("--run-results-path", required=False, prompt=False, help="Path to the run_results.json file.")
161161
@click.option("--sources-path", required=False, prompt=False, help="Path to the sources.json file (source freshness results).")
162+
@click.option("--semantic-manifest-path", required=False, prompt=False, help="Path to the semantic_manifest.json file.")
162163
def onboard(
163164
token,
164165
instance_name,
@@ -170,6 +171,7 @@ def onboard(
170171
catalog_path,
171172
run_results_path,
172173
sources_path,
174+
semantic_manifest_path,
173175
):
174176
"""Onboard a manifest file to DBT. You can specify either --dbt_integration_id or --dbt_integration_name."""
175177

@@ -270,6 +272,16 @@ def onboard(
270272
else:
271273
click.echo(f"{response['message']}")
272274

275+
if semantic_manifest_path:
276+
response = onboard_file(
277+
token, instance_name, dbt_integration_id, dbt_integration_environment, "semantic_manifest", semantic_manifest_path, backend_url
278+
)
279+
if response["ok"]:
280+
click.echo("Semantic manifest onboarded successfully!")
281+
artifacts_uploaded.append("semantic_manifest")
282+
else:
283+
click.echo(f"{response['message']}")
284+
273285
# Start ingestion
274286
response = start_dbt_ingestion(token, instance_name, dbt_integration_id, dbt_integration_environment, backend_url)
275287
if response["ok"]:

tests/clients/altimate/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class TestOnboardFile:
66
def test_supported_artifact_types(self):
77
"""Test that all expected artifact types are supported."""
8-
expected_types = {"manifest", "catalog", "run_results", "sources"}
8+
expected_types = {"manifest", "catalog", "run_results", "sources", "semantic_manifest"}
99
assert SUPPORTED_ARTIFACT_TYPES == expected_types
1010

1111
def test_unsupported_file_type_returns_error(self):

tests/core/platform/dbt/test_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,4 @@ def test_onboard_help_shows_all_artifact_options():
126126
assert "--catalog-path" in result.output
127127
assert "--run-results-path" in result.output
128128
assert "--sources-path" in result.output
129+
assert "--semantic-manifest-path" in result.output

0 commit comments

Comments
 (0)