omnata-plugin-runtime 0.10.7a248__py3-none-any.whl → 0.10.7a250__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.
- omnata_plugin_runtime/configuration.py +37 -32
- omnata_plugin_runtime/json_schema.py +8 -4
- {omnata_plugin_runtime-0.10.7a248.dist-info → omnata_plugin_runtime-0.10.7a250.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.10.7a248.dist-info → omnata_plugin_runtime-0.10.7a250.dist-info}/RECORD +6 -6
- {omnata_plugin_runtime-0.10.7a248.dist-info → omnata_plugin_runtime-0.10.7a250.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.10.7a248.dist-info → omnata_plugin_runtime-0.10.7a250.dist-info}/WHEEL +0 -0
@@ -505,39 +505,44 @@ class InboundSyncStreamsConfiguration(SubscriptableBaseModel):
|
|
505
505
|
@model_validator(mode='before')
|
506
506
|
@classmethod
|
507
507
|
def migrate_bulk_configuration(cls, data: Any) -> Any:
|
508
|
-
if 'sync_strategy_bulk_configuration' in data
|
508
|
+
if 'sync_strategy_bulk_configuration' in data \
|
509
|
+
and data['sync_strategy_bulk_configuration'] is not None \
|
510
|
+
and 'storage_behaviour_bulk_configuration' in data \
|
511
|
+
and data['storage_behaviour_bulk_configuration'] is not None:
|
509
512
|
return data
|
510
|
-
if 'bulk_configuration' in data:
|
511
|
-
#
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
513
|
+
if 'bulk_configuration' not in data:
|
514
|
+
# This was previously a default value
|
515
|
+
data['bulk_configuration'] = InboundSyncBulkConfiguration.CUSTOMIZE.value
|
516
|
+
# Recently deprecated values
|
517
|
+
# AUTO_MERGE = "Auto / Merge changes" # Merge
|
518
|
+
# AUTO_APPEND = "Auto / Keep history" # Append
|
519
|
+
# CUSTOMIZE = "Customize - choose sync behaviours for each object"
|
520
|
+
# Deprecated longer ago
|
521
|
+
# ALL_FULL_REPLACE = "All Objects - Full refresh / Replace"
|
522
|
+
# ALL_FULL_APPEND = "All Objects - Full refresh / Append"
|
523
|
+
# ALL_INCR_MERGE = "All Objects - Incremental / Merge"
|
524
|
+
# ALL_INCR_APPEND = "All Objects - Incremental / Append"
|
525
|
+
if data['bulk_configuration']== InboundSyncBulkConfiguration.AUTO_MERGE.value:
|
526
|
+
data['sync_strategy_bulk_configuration']= InboundSyncStrategyBulkConfiguration.AUTO.value
|
527
|
+
data['storage_behaviour_bulk_configuration']= InboundStorageBehaviourBulkConfiguration.MERGE.value
|
528
|
+
elif data['bulk_configuration']== InboundSyncBulkConfiguration.AUTO_APPEND.value:
|
529
|
+
data['sync_strategy_bulk_configuration']= InboundSyncStrategyBulkConfiguration.AUTO.value
|
530
|
+
data['storage_behaviour_bulk_configuration']= InboundStorageBehaviourBulkConfiguration.APPEND.value
|
531
|
+
elif data['bulk_configuration']== InboundSyncBulkConfiguration.CUSTOMIZE.value:
|
532
|
+
data['sync_strategy_bulk_configuration']= InboundSyncStrategyBulkConfiguration.MANUAL.value
|
533
|
+
data['storage_behaviour_bulk_configuration']= InboundStorageBehaviourBulkConfiguration.MANUAL.value
|
534
|
+
elif data['bulk_configuration']== InboundSyncBulkConfiguration.ALL_FULL_REPLACE.value:
|
535
|
+
data['sync_strategy_bulk_configuration']= InboundSyncStrategyBulkConfiguration.MANUAL.value
|
536
|
+
data['storage_behaviour_bulk_configuration']= InboundStorageBehaviourBulkConfiguration.MERGE.value
|
537
|
+
elif data['bulk_configuration']== InboundSyncBulkConfiguration.ALL_FULL_APPEND.value:
|
538
|
+
data['sync_strategy_bulk_configuration']= InboundSyncStrategyBulkConfiguration.MANUAL.value
|
539
|
+
data['storage_behaviour_bulk_configuration']= InboundStorageBehaviourBulkConfiguration.APPEND.value
|
540
|
+
elif data['bulk_configuration']== InboundSyncBulkConfiguration.ALL_INCR_MERGE.value:
|
541
|
+
data['sync_strategy_bulk_configuration']= InboundSyncStrategyBulkConfiguration.AUTO.value
|
542
|
+
data['storage_behaviour_bulk_configuration']= InboundStorageBehaviourBulkConfiguration.MERGE.value
|
543
|
+
elif data['bulk_configuration']== InboundSyncBulkConfiguration.ALL_INCR_APPEND.value:
|
544
|
+
data['sync_strategy_bulk_configuration']= InboundSyncStrategyBulkConfiguration.AUTO.value
|
545
|
+
data['storage_behaviour_bulk_configuration']= InboundStorageBehaviourBulkConfiguration.APPEND.value
|
541
546
|
# remove this once the old UI is deprecated
|
542
547
|
#del data['bulk_configuration']
|
543
548
|
return data
|
@@ -252,11 +252,15 @@ class SnowflakeViewColumn(BaseModel):
|
|
252
252
|
# Collect columns to be moved
|
253
253
|
columns_to_move:List[Self] = []
|
254
254
|
# Collect Omnata System columns and keep them at the front
|
255
|
-
|
255
|
+
omnata_system_columns_start = []
|
256
|
+
omnata_system_columns_end = []
|
256
257
|
for column in join_columns[:]:
|
257
|
-
if column.original_name
|
258
|
+
if column.original_name=="OMNATA_APP_IDENTIFIER":
|
258
259
|
join_columns.remove(column)
|
259
|
-
|
260
|
+
omnata_system_columns_start.append(column)
|
261
|
+
elif column.original_name.startswith("OMNATA_"):
|
262
|
+
join_columns.remove(column)
|
263
|
+
omnata_system_columns_end.append(column)
|
260
264
|
|
261
265
|
for column in join_columns:
|
262
266
|
for other_column in join_columns:
|
@@ -268,7 +272,7 @@ class SnowflakeViewColumn(BaseModel):
|
|
268
272
|
for column in columns_to_move:
|
269
273
|
join_columns.remove(column)
|
270
274
|
join_columns.insert(0, column)
|
271
|
-
return
|
275
|
+
return omnata_system_columns_start + join_columns + omnata_system_columns_end
|
272
276
|
|
273
277
|
|
274
278
|
class SnowflakeViewJoin(BaseModel):
|
{omnata_plugin_runtime-0.10.7a248.dist-info → omnata_plugin_runtime-0.10.7a250.dist-info}/RECORD
RENAMED
@@ -1,13 +1,13 @@
|
|
1
1
|
omnata_plugin_runtime/__init__.py,sha256=MS9d1whnfT_B3-ThqZ7l63QeC_8OEKTuaYV5wTwRpBA,1576
|
2
2
|
omnata_plugin_runtime/api.py,sha256=baGraSMiD4Yvi3ZWrEv_TKh8Ktd1U8riBdOpe9j0Puw,8202
|
3
|
-
omnata_plugin_runtime/configuration.py,sha256=
|
3
|
+
omnata_plugin_runtime/configuration.py,sha256=0rfIGv8rCu8OwL7m-VOXIBjd05iyaBWRdt2h9o6scwo,46754
|
4
4
|
omnata_plugin_runtime/forms.py,sha256=9YHJ_T17lT-rwyDaUg_0yj_YMPda4DRCw_wrvf8hE0E,19964
|
5
|
-
omnata_plugin_runtime/json_schema.py,sha256=
|
5
|
+
omnata_plugin_runtime/json_schema.py,sha256=Kng9tCG4vHkt-p8XUuvTrzYXudmc8r0dgvQVQn6KrAs,30918
|
6
6
|
omnata_plugin_runtime/logging.py,sha256=WBuZt8lF9E5oFWM4KYQbE8dDJ_HctJ1pN3BHwU6rcd0,4461
|
7
7
|
omnata_plugin_runtime/omnata_plugin.py,sha256=M0b6f9lKKEoEI0zf-ZwZcIPKPQTmHTIMhvcrBc94Mhg,133278
|
8
8
|
omnata_plugin_runtime/plugin_entrypoints.py,sha256=iqGl8_nEEnPGKg3Aem4YLSQ6d5xS3ju5gq8MJbx6sCA,31968
|
9
9
|
omnata_plugin_runtime/rate_limiting.py,sha256=qpr5esU4Ks8hMzuMpSR3gLFdor2ZUXYWCjmsQH_K6lQ,25882
|
10
|
-
omnata_plugin_runtime-0.10.
|
11
|
-
omnata_plugin_runtime-0.10.
|
12
|
-
omnata_plugin_runtime-0.10.
|
13
|
-
omnata_plugin_runtime-0.10.
|
10
|
+
omnata_plugin_runtime-0.10.7a250.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
|
11
|
+
omnata_plugin_runtime-0.10.7a250.dist-info/METADATA,sha256=cArWu-lk5ftYw5xTFkzgtm2PJVYMYOg6lB4kKEbCOYU,2211
|
12
|
+
omnata_plugin_runtime-0.10.7a250.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
13
|
+
omnata_plugin_runtime-0.10.7a250.dist-info/RECORD,,
|
{omnata_plugin_runtime-0.10.7a248.dist-info → omnata_plugin_runtime-0.10.7a250.dist-info}/LICENSE
RENAMED
File without changes
|
{omnata_plugin_runtime-0.10.7a248.dist-info → omnata_plugin_runtime-0.10.7a250.dist-info}/WHEEL
RENAMED
File without changes
|