From 1ebc3cdbb08a77f53812a6f3bae5dad30689746d Mon Sep 17 00:00:00 2001 From: matusdrobuliak66 Date: Wed, 18 Dec 2024 14:35:33 +0100 Subject: [PATCH] review @pcrespov --- .../src/simcore_postgres_database/models/licensed_items.py | 1 + .../models/schemas/model_adapter.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/postgres-database/src/simcore_postgres_database/models/licensed_items.py b/packages/postgres-database/src/simcore_postgres_database/models/licensed_items.py index 861f28537f1..a0ea136f4bb 100644 --- a/packages/postgres-database/src/simcore_postgres_database/models/licensed_items.py +++ b/packages/postgres-database/src/simcore_postgres_database/models/licensed_items.py @@ -62,6 +62,7 @@ class LicensedResourceType(str, enum.Enum): "license_key", sa.String, nullable=True, + doc="Purpose: Acts as a mapping key to the internal license server. Usage: The Sim4Life base applications use this key to check out a seat from the internal license server.", ), column_created_datetime(timezone=True), column_modified_datetime(timezone=True), diff --git a/services/api-server/src/simcore_service_api_server/models/schemas/model_adapter.py b/services/api-server/src/simcore_service_api_server/models/schemas/model_adapter.py index 7765ad95980..06da65580f8 100644 --- a/services/api-server/src/simcore_service_api_server/models/schemas/model_adapter.py +++ b/services/api-server/src/simcore_service_api_server/models/schemas/model_adapter.py @@ -141,5 +141,7 @@ class LicensedItemGet(BaseModel): assert set(LicensedItemGet.model_fields.keys()) == set( _LicensedItemGet.model_fields.keys() - - {"license_key"} # TODO: @bisgaard-itis please expose + - { + "license_key" + } # NOTE: @bisgaard-itis please expose https://github.com/ITISFoundation/osparc-simcore/issues/6875 )