cognite-extractor-utils 7.4.5__py3-none-any.whl → 7.4.6__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.
Potentially problematic release.
This version of cognite-extractor-utils might be problematic. Click here for more details.
- cognite/extractorutils/__init__.py +1 -1
- cognite/extractorutils/uploader/files.py +8 -0
- {cognite_extractor_utils-7.4.5.dist-info → cognite_extractor_utils-7.4.6.dist-info}/METADATA +1 -1
- {cognite_extractor_utils-7.4.5.dist-info → cognite_extractor_utils-7.4.6.dist-info}/RECORD +6 -6
- {cognite_extractor_utils-7.4.5.dist-info → cognite_extractor_utils-7.4.6.dist-info}/LICENSE +0 -0
- {cognite_extractor_utils-7.4.5.dist-info → cognite_extractor_utils-7.4.6.dist-info}/WHEEL +0 -0
|
@@ -258,6 +258,14 @@ class IOFileUploadQueue(AbstractUploadQueue):
|
|
|
258
258
|
file_meta, url = self._create_cdm(instance_id=node_id)
|
|
259
259
|
else:
|
|
260
260
|
file_meta, url = self.cdf_client.files.create(file_metadata=file_meta, overwrite=self.overwrite_existing)
|
|
261
|
+
# trigger update after creation (upsert =P)
|
|
262
|
+
basic_attributes = set(["externalId", "name"])
|
|
263
|
+
attr = set(file_meta.dump().keys())
|
|
264
|
+
diff = attr - basic_attributes
|
|
265
|
+
|
|
266
|
+
if len(diff) >= 1 and "externalId" in attr:
|
|
267
|
+
file_meta = self.cdf_client.files.update(file_meta)
|
|
268
|
+
|
|
261
269
|
return file_meta, url
|
|
262
270
|
|
|
263
271
|
def _upload_bytes(self, size: int, file: BinaryIO, file_meta: FileMetadataOrCogniteExtractorFile) -> None:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
cognite/extractorutils/__init__.py,sha256=
|
|
1
|
+
cognite/extractorutils/__init__.py,sha256=jESU8PKOb8tIky_I-mT5j7p3Z2NYdFF7J6sCQrqQIo4,739
|
|
2
2
|
cognite/extractorutils/_inner_util.py,sha256=gmz6aqS7jDNsg8z4RHgJjMFohDLOMiaU4gMWBhg3xcE,1558
|
|
3
3
|
cognite/extractorutils/base.py,sha256=q6NU2bPec3WOasVnnIFoh-aUJudVZWZ2R6emz3IRj8Q,16391
|
|
4
4
|
cognite/extractorutils/configtools/__init__.py,sha256=L-daaqInIsmHcjb2forJeY0fW8tz1mlteOUo7IsWnrU,3059
|
|
@@ -23,13 +23,13 @@ cognite/extractorutils/uploader/_metrics.py,sha256=J2LJXb19L_SLSJ_voNIQHYLp0pjxU
|
|
|
23
23
|
cognite/extractorutils/uploader/assets.py,sha256=2E90N1kxsaA6Ah4h0_r_dTVhDYY_68ItRWrHYkkltJw,5628
|
|
24
24
|
cognite/extractorutils/uploader/data_modeling.py,sha256=w35Ix5mu0Cgfn4ywnDyif4VVjo04LVTlkMEevk6ztUs,3639
|
|
25
25
|
cognite/extractorutils/uploader/events.py,sha256=NZP2tMoU_rh_rb-EZiUBsOT5KdNABHN4c9Oddk0OsdE,5680
|
|
26
|
-
cognite/extractorutils/uploader/files.py,sha256=
|
|
26
|
+
cognite/extractorutils/uploader/files.py,sha256=0keDvZt_c9_-qougSvrrL2wlBuw-LRnz2RqtbyQ5GdY,21981
|
|
27
27
|
cognite/extractorutils/uploader/raw.py,sha256=wFjF90PFTjmByOWx_Y4_YfDJ2w2jl0EQJ2Tjx2MP2PM,6738
|
|
28
28
|
cognite/extractorutils/uploader/time_series.py,sha256=HBtQdsQoIOaL-EG5lMsaY-ORwVb0kGiXG86VjE5-_Bg,26815
|
|
29
29
|
cognite/extractorutils/uploader_extractor.py,sha256=E-mpVvbPg_Tk90U4S9JybV0duptJ2SXE88HB6npE3zI,7732
|
|
30
30
|
cognite/extractorutils/uploader_types.py,sha256=wxfrsiKPTzG5lmoYtQsxt8Xyj-s5HnaLl8WDzJNrazg,1020
|
|
31
31
|
cognite/extractorutils/util.py,sha256=T6ef5b7aYJ8yq9swQwybYaLe3YGr3hElsJQy8E-d5Rs,17469
|
|
32
|
-
cognite_extractor_utils-7.4.
|
|
33
|
-
cognite_extractor_utils-7.4.
|
|
34
|
-
cognite_extractor_utils-7.4.
|
|
35
|
-
cognite_extractor_utils-7.4.
|
|
32
|
+
cognite_extractor_utils-7.4.6.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
|
33
|
+
cognite_extractor_utils-7.4.6.dist-info/METADATA,sha256=cNHJjQZRVIivrh7tg2hxZUJQBbT1WE30ZQO9C78ZTws,5557
|
|
34
|
+
cognite_extractor_utils-7.4.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
35
|
+
cognite_extractor_utils-7.4.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|