cognite-toolkit 0.7.61__py3-none-any.whl → 0.7.62__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cognite_toolkit/_cdf_tk/apps/_migrate_app.py +1 -1
- cognite_toolkit/_cdf_tk/commands/_migrate/conversion.py +10 -2
- cognite_toolkit/_repo_files/GitHub/.github/workflows/deploy.yaml +1 -1
- cognite_toolkit/_repo_files/GitHub/.github/workflows/dry-run.yaml +1 -1
- cognite_toolkit/_resources/cdf.toml +1 -1
- cognite_toolkit/_version.py +1 -1
- {cognite_toolkit-0.7.61.dist-info → cognite_toolkit-0.7.62.dist-info}/METADATA +1 -1
- {cognite_toolkit-0.7.61.dist-info → cognite_toolkit-0.7.62.dist-info}/RECORD +10 -10
- {cognite_toolkit-0.7.61.dist-info → cognite_toolkit-0.7.62.dist-info}/WHEEL +0 -0
- {cognite_toolkit-0.7.61.dist-info → cognite_toolkit-0.7.62.dist-info}/entry_points.txt +0 -0
|
@@ -745,7 +745,7 @@ class MigrateApp(typer.Typer):
|
|
|
745
745
|
)
|
|
746
746
|
cmd = MigrationCommand(client=client)
|
|
747
747
|
|
|
748
|
-
if data_set_id is None:
|
|
748
|
+
if data_set_id is None and mapping_file is None:
|
|
749
749
|
skip_linking = not questionary.confirm(
|
|
750
750
|
"Do you want to link old and new Files?", default=not skip_linking
|
|
751
751
|
).unsafe_ask()
|
|
@@ -137,11 +137,19 @@ class DirectRelationCache:
|
|
|
137
137
|
if source_ids:
|
|
138
138
|
# SourceSystems are not cached in the client, so we have to handle the caching ourselves.
|
|
139
139
|
cache = cast(dict[str, DirectRelationReference], self._cache_map[self.TableName.SOURCE_NAME])
|
|
140
|
-
missing
|
|
140
|
+
missing: dict[str, str] = {}
|
|
141
|
+
for source_id in source_ids:
|
|
142
|
+
if source_id.casefold() not in cache:
|
|
143
|
+
missing[source_id.casefold()] = source_id
|
|
144
|
+
elif source_id not in cache:
|
|
145
|
+
missing[source_id] = source_id
|
|
141
146
|
if missing:
|
|
142
147
|
source_systems = self._client.migration.created_source_system.retrieve(list(missing))
|
|
143
148
|
for source_system in source_systems:
|
|
144
|
-
|
|
149
|
+
source_reference = source_system.as_direct_relation_reference()
|
|
150
|
+
cache[source_system.source] = source_reference
|
|
151
|
+
if original_str := missing.get(source_system.source):
|
|
152
|
+
cache[original_str] = source_reference
|
|
145
153
|
if file_ids:
|
|
146
154
|
self._update_cache(self._client.migration.lookup.files(id=list(file_ids)), self.TableName.FILE_ID)
|
|
147
155
|
if asset_external_ids:
|
cognite_toolkit/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.7.
|
|
1
|
+
__version__ = "0.7.62"
|
|
@@ -10,7 +10,7 @@ cognite_toolkit/_cdf_tk/apps/_download_app.py,sha256=Iw-q4lIMagFQ7b8RVRubUQNAPbq
|
|
|
10
10
|
cognite_toolkit/_cdf_tk/apps/_dump_app.py,sha256=8Z0D2snV48FC5eMBYJQ9fDnaNQCII3yrgrGolRtSOSc,39325
|
|
11
11
|
cognite_toolkit/_cdf_tk/apps/_import_app.py,sha256=5n5AF40HJ0Q_3LENCknG0MxH4pMUS8OwsqvtCYj_t7w,2086
|
|
12
12
|
cognite_toolkit/_cdf_tk/apps/_landing_app.py,sha256=qZqO0qN33-6TTF9O4fYuNF6zhJH-QyUWsuElWr8sH6w,1365
|
|
13
|
-
cognite_toolkit/_cdf_tk/apps/_migrate_app.py,sha256=
|
|
13
|
+
cognite_toolkit/_cdf_tk/apps/_migrate_app.py,sha256=RKCZwlOuHiQ8YSDYM5W2XQ6asitsdte-KuVHEG_JJUk,49167
|
|
14
14
|
cognite_toolkit/_cdf_tk/apps/_modules_app.py,sha256=sbgTYVKSb-HdaSJrccZGLRj28ifCIjbxQC6eADy16vk,8958
|
|
15
15
|
cognite_toolkit/_cdf_tk/apps/_profile_app.py,sha256=ilJ8GuFkzexEAqZDuEqp7P-H_RxSFH2oO1t_bcDhJIQ,7067
|
|
16
16
|
cognite_toolkit/_cdf_tk/apps/_purge.py,sha256=P7WoQURdrUGDOvBQMZ695Xqj_j8Mfln6eIovGQdOqUE,14172
|
|
@@ -224,7 +224,7 @@ cognite_toolkit/_cdf_tk/commands/_download.py,sha256=dVddH9t7oGx1kdQ3CCYYQb96Uxx
|
|
|
224
224
|
cognite_toolkit/_cdf_tk/commands/_import_cmd.py,sha256=_qUF8xdJFoXDbtDYGCVC6kz9kyrcN_abXV9nFicThvw,11276
|
|
225
225
|
cognite_toolkit/_cdf_tk/commands/_migrate/__init__.py,sha256=8ki04tJGH1dHdF2NtVF4HyhaC0XDDS7onrH_nvd9KtE,153
|
|
226
226
|
cognite_toolkit/_cdf_tk/commands/_migrate/command.py,sha256=meyp2cFcq5Wtq4FvELSqdwHRA45o9FMWFL_5AnXALvc,13587
|
|
227
|
-
cognite_toolkit/_cdf_tk/commands/_migrate/conversion.py,sha256=-
|
|
227
|
+
cognite_toolkit/_cdf_tk/commands/_migrate/conversion.py,sha256=-LTIQUalqlRZxK0rfKWqljHLVh8VIH7yq_P-timfQDw,18318
|
|
228
228
|
cognite_toolkit/_cdf_tk/commands/_migrate/creators.py,sha256=Gp3CKruTxeSDS3HiWiLsQ4mN2SZ4BQB5xQ50o68GTs8,9616
|
|
229
229
|
cognite_toolkit/_cdf_tk/commands/_migrate/data_classes.py,sha256=_b2hXpTUI2_t-WKHzYXw1iSGb3w4pcIb53CTi9rbJ7k,13667
|
|
230
230
|
cognite_toolkit/_cdf_tk/commands/_migrate/data_mapper.py,sha256=qHYeFCBBGPejbgC_g_uHNM8fJLBkxWBBNKLFILkPaTI,28097
|
|
@@ -432,13 +432,13 @@ cognite_toolkit/_repo_files/.gitignore,sha256=ip9kf9tcC5OguF4YF4JFEApnKYw0nG0vPi
|
|
|
432
432
|
cognite_toolkit/_repo_files/AzureDevOps/.devops/README.md,sha256=OLA0D7yCX2tACpzvkA0IfkgQ4_swSd-OlJ1tYcTBpsA,240
|
|
433
433
|
cognite_toolkit/_repo_files/AzureDevOps/.devops/deploy-pipeline.yml,sha256=brULcs8joAeBC_w_aoWjDDUHs3JheLMIR9ajPUK96nc,693
|
|
434
434
|
cognite_toolkit/_repo_files/AzureDevOps/.devops/dry-run-pipeline.yml,sha256=OBFDhFWK1mlT4Dc6mDUE2Es834l8sAlYG50-5RxRtHk,723
|
|
435
|
-
cognite_toolkit/_repo_files/GitHub/.github/workflows/deploy.yaml,sha256=
|
|
436
|
-
cognite_toolkit/_repo_files/GitHub/.github/workflows/dry-run.yaml,sha256=
|
|
437
|
-
cognite_toolkit/_resources/cdf.toml,sha256=
|
|
438
|
-
cognite_toolkit/_version.py,sha256
|
|
435
|
+
cognite_toolkit/_repo_files/GitHub/.github/workflows/deploy.yaml,sha256=jJYHZX7YNodw2J3zPCKpUt7zOcRq4Z9DDWSUFu2mpMc,667
|
|
436
|
+
cognite_toolkit/_repo_files/GitHub/.github/workflows/dry-run.yaml,sha256=a2RU5KGKbZS_SSvkInZtkbswTrWMQkqSr42Wlhx4Di0,2430
|
|
437
|
+
cognite_toolkit/_resources/cdf.toml,sha256=r-m4fwgvn8-Q6ZHEEr7NWW9HOhavJZUCNxlS7_HcTjA,475
|
|
438
|
+
cognite_toolkit/_version.py,sha256=-lU0l5-pIa7inPRB-7jzbkH90Ef12r9upMApt29G7Nk,23
|
|
439
439
|
cognite_toolkit/demo/__init__.py,sha256=-m1JoUiwRhNCL18eJ6t7fZOL7RPfowhCuqhYFtLgrss,72
|
|
440
440
|
cognite_toolkit/demo/_base.py,sha256=6xKBUQpXZXGQ3fJ5f7nj7oT0s2n7OTAGIa17ZlKHZ5U,8052
|
|
441
|
-
cognite_toolkit-0.7.
|
|
442
|
-
cognite_toolkit-0.7.
|
|
443
|
-
cognite_toolkit-0.7.
|
|
444
|
-
cognite_toolkit-0.7.
|
|
441
|
+
cognite_toolkit-0.7.62.dist-info/WHEEL,sha256=e_m4S054HL0hyR3CpOk-b7Q7fDX6BuFkgL5OjAExXas,80
|
|
442
|
+
cognite_toolkit-0.7.62.dist-info/entry_points.txt,sha256=EtZ17K2mUjh-AY0QNU1CPIB_aDSSOdmtNI_4Fj967mA,84
|
|
443
|
+
cognite_toolkit-0.7.62.dist-info/METADATA,sha256=WAFBnCs67Rq4CJev_KTtMluhrABDvTE_5yrnOVbuJKg,5026
|
|
444
|
+
cognite_toolkit-0.7.62.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|