Skip to content

Commit 310885c

Browse files
committed
move collaborative flag to metadata instead of runtime
1 parent a6b7073 commit 310885c

File tree

4 files changed

+1
-17
lines changed

4 files changed

+1
-17
lines changed

packages/models-library/src/models_library/service_settings_labels.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -372,16 +372,6 @@ class DynamicSidecarServiceLabels(BaseModel):
372372
),
373373
] = None
374374

375-
is_collaborative: Annotated[
376-
bool,
377-
Field(
378-
alias="simcore.service.is-collaborative",
379-
description=(
380-
"if True, the service is collaborative and will not be locked"
381-
),
382-
),
383-
] = False
384-
385375
compose_spec: Annotated[
386376
Json[ComposeSpecLabelDict | None] | None,
387377
Field(
@@ -673,7 +663,6 @@ def _update_json_schema_extra(schema: JsonDict) -> None:
673663
"simcore.service.user-preferences-path": json_dumps(
674664
"/tmp/path_to_preferences" # noqa: S108
675665
),
676-
"simcore.service.is_collaborative": "False",
677666
},
678667
# dynamic-service with compose spec
679668
{
@@ -713,7 +702,6 @@ def _update_json_schema_extra(schema: JsonDict) -> None:
713702
"simcore.service.callbacks-mapping": json_dumps(
714703
CallbacksMapping.model_json_schema()["examples"][3]
715704
),
716-
"simcore.service.is_collaborative": "True",
717705
},
718706
]
719707
},

packages/models-library/src/models_library/services_metadata_published.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
][1],
8585
},
8686
"min-visible-inputs": 2,
87+
"is-collaborative": True,
8788
}
8889

8990

packages/service-integration/src/service_integration/osparc_config.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@ class RuntimeConfig(BaseModel):
213213

214214
paths_mapping: PathMappingsLabel | None = None
215215

216-
is_collaborative: bool = False
217-
218216
user_preferences_path: Path | None = None
219217
boot_options: BootOptions | None = None
220218
min_visible_inputs: NonNegativeInt | None = None

services/director-v2/src/simcore_service_director_v2/models/dynamic_services_scheduler.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,6 @@ def endpoint(self) -> AnyHttpUrl:
406406

407407
paths_mapping: PathMappingsLabel # overwrites in DynamicSidecarServiceLabels
408408

409-
is_collaborative: bool = False
410-
411409
user_preferences_path: Path | None = None
412410
callbacks_mapping: Annotated[CallbacksMapping, Field(default_factory=dict)]
413411

@@ -515,7 +513,6 @@ def from_http_request(
515513
"product_name": service.product_name,
516514
"product_api_base_url": service.product_api_base_url,
517515
"paths_mapping": simcore_service_labels.paths_mapping,
518-
"is_collaborative": simcore_service_labels.is_collaborative,
519516
"callbacks_mapping": simcore_service_labels.callbacks_mapping,
520517
"compose_spec": json_dumps(simcore_service_labels.compose_spec),
521518
"container_http_entry": simcore_service_labels.container_http_entry,

0 commit comments

Comments
 (0)