From 92ec766a6b2bfdb7ae7e47761feb5183e49be9c3 Mon Sep 17 00:00:00 2001 From: anders-albert Date: Wed, 11 Dec 2024 16:57:22 +0100 Subject: [PATCH] feat: print graphql model ids --- .../_cdf_tk/loaders/_resource_loaders/datamodel_loaders.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cognite_toolkit/_cdf_tk/loaders/_resource_loaders/datamodel_loaders.py b/cognite_toolkit/_cdf_tk/loaders/_resource_loaders/datamodel_loaders.py index 310e0fe0e..3267d51d1 100644 --- a/cognite_toolkit/_cdf_tk/loaders/_resource_loaders/datamodel_loaders.py +++ b/cognite_toolkit/_cdf_tk/loaders/_resource_loaders/datamodel_loaders.py @@ -14,6 +14,7 @@ from __future__ import annotations import re +import sys from collections import defaultdict from collections.abc import Hashable, Iterable, Sequence from functools import lru_cache @@ -1175,6 +1176,8 @@ def create(self, items: GraphQLDataModelWriteList) -> list[DMLApplyResult]: print(LowSeverityWarning(f"Description is above limit for {item_id}. Truncating...")) description = description[: 1024 - len(suffix) + 1 - 3] + "..." description += f" {suffix}" + if "--verbose" in sys.argv: + print(f"Deploying GraphQL schema {item_id}") created = self.client.dml.apply_dml( item.as_id(),