From fd8c2a32f9dd2085f6acf53ed430fc47aa3f4d96 Mon Sep 17 00:00:00 2001 From: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com> Date: Tue, 9 Dec 2025 17:27:26 +0000 Subject: [PATCH] chore(speckleifc): changed ifc status messages (#478) * remove this function * Changed progress messages --- src/speckleifc/main.py | 4 ++-- .../core/api/inputs/model_ingestion_inputs.py | 12 ------------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/speckleifc/main.py b/src/speckleifc/main.py index 93dbf7a..00c59f8 100644 --- a/src/speckleifc/main.py +++ b/src/speckleifc/main.py @@ -57,7 +57,7 @@ def open_and_convert_file( ModelIngestionUpdateInput( project_id=project.id, ingestion_id=model_ingestion_id, - progress_message="File validated, converting", + progress_message="Converting file", progress=None, ) ) @@ -72,7 +72,7 @@ def open_and_convert_file( ModelIngestionUpdateInput( project_id=project.id, ingestion_id=model_ingestion_id, - progress_message="Conversion complete, sending", + progress_message="Uploading objects", progress=None, ) ) diff --git a/src/specklepy/core/api/inputs/model_ingestion_inputs.py b/src/specklepy/core/api/inputs/model_ingestion_inputs.py index 6cd49b6..76d6d04 100644 --- a/src/specklepy/core/api/inputs/model_ingestion_inputs.py +++ b/src/specklepy/core/api/inputs/model_ingestion_inputs.py @@ -48,18 +48,6 @@ class ModelIngestionFailedInput(GraphQLBaseModel): error_reason: str error_stacktrace: str | None - @staticmethod - def from_exception( - ingestion_id: str, project_id: str, exception: Exception, message: str | None - ) -> "ModelIngestionFailedInput": - """test""" - return ModelIngestionFailedInput( - ingestion_id=ingestion_id, - project_id=project_id, - error_reason=message if message else str(exception), - error_stacktrace=str(exception), - ) - class ModelIngestionCancelledInput(GraphQLBaseModel): ingestion_id: str