diff --git a/src/speckleifc/main.py b/src/speckleifc/main.py index 00c59f8..bd010a3 100644 --- a/src/speckleifc/main.py +++ b/src/speckleifc/main.py @@ -23,6 +23,7 @@ from specklepy.transports.server import ServerTransport def open_and_convert_file( file_path: str, project: Project, + version_message: str, model_ingestion_id: str, client: SpeckleClient, ) -> Version: @@ -86,7 +87,7 @@ def open_and_convert_file( project_id=project.id, ingestion_id=model_ingestion_id, root_object_id=root_id, - # version_message=version_message, + version_message=version_message, ) ) diff --git a/src/specklepy/core/api/inputs/model_ingestion_inputs.py b/src/specklepy/core/api/inputs/model_ingestion_inputs.py index 76d6d04..852456f 100644 --- a/src/specklepy/core/api/inputs/model_ingestion_inputs.py +++ b/src/specklepy/core/api/inputs/model_ingestion_inputs.py @@ -40,6 +40,7 @@ class ModelIngestionSuccessInput(GraphQLBaseModel): ingestion_id: str project_id: str root_object_id: str + version_message: str | None class ModelIngestionFailedInput(GraphQLBaseModel): diff --git a/tests/integration/client/current/test_model_ingestion_resource.py b/tests/integration/client/current/test_model_ingestion_resource.py index dd06bf8..551ae52 100644 --- a/tests/integration/client/current/test_model_ingestion_resource.py +++ b/tests/integration/client/current/test_model_ingestion_resource.py @@ -207,7 +207,7 @@ class TestIngestionResource: ingestion_id=ingestion.id, root_object_id=object_id, project_id=project.id, - # version_message=None, + version_message=None, ) res = client.model_ingestion.complete(input) @@ -271,7 +271,7 @@ class TestIngestionResource: ingestion_id=ingestion.id, root_object_id="asdfasdfasdfasfd", project_id=project.id, - # version_message=None, + version_message=None, ) with pytest.raises(GraphQLException): _ = client.model_ingestion.complete(input)