omnata-plugin-runtime 0.10.7a248__tar.gz → 0.10.7a249__tar.gz
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-0.10.7a248 → omnata_plugin_runtime-0.10.7a249}/PKG-INFO +1 -1
- {omnata_plugin_runtime-0.10.7a248 → omnata_plugin_runtime-0.10.7a249}/pyproject.toml +1 -1
- {omnata_plugin_runtime-0.10.7a248 → omnata_plugin_runtime-0.10.7a249}/src/omnata_plugin_runtime/configuration.py +37 -32
- {omnata_plugin_runtime-0.10.7a248 → omnata_plugin_runtime-0.10.7a249}/LICENSE +0 -0
- {omnata_plugin_runtime-0.10.7a248 → omnata_plugin_runtime-0.10.7a249}/README.md +0 -0
- {omnata_plugin_runtime-0.10.7a248 → omnata_plugin_runtime-0.10.7a249}/src/omnata_plugin_runtime/__init__.py +0 -0
- {omnata_plugin_runtime-0.10.7a248 → omnata_plugin_runtime-0.10.7a249}/src/omnata_plugin_runtime/api.py +0 -0
- {omnata_plugin_runtime-0.10.7a248 → omnata_plugin_runtime-0.10.7a249}/src/omnata_plugin_runtime/forms.py +0 -0
- {omnata_plugin_runtime-0.10.7a248 → omnata_plugin_runtime-0.10.7a249}/src/omnata_plugin_runtime/json_schema.py +0 -0
- {omnata_plugin_runtime-0.10.7a248 → omnata_plugin_runtime-0.10.7a249}/src/omnata_plugin_runtime/logging.py +0 -0
- {omnata_plugin_runtime-0.10.7a248 → omnata_plugin_runtime-0.10.7a249}/src/omnata_plugin_runtime/omnata_plugin.py +0 -0
- {omnata_plugin_runtime-0.10.7a248 → omnata_plugin_runtime-0.10.7a249}/src/omnata_plugin_runtime/plugin_entrypoints.py +0 -0
- {omnata_plugin_runtime-0.10.7a248 → omnata_plugin_runtime-0.10.7a249}/src/omnata_plugin_runtime/rate_limiting.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "omnata-plugin-runtime"
|
3
|
-
version = "0.10.7-
|
3
|
+
version = "0.10.7-a249"
|
4
4
|
description = "Classes and common runtime components for building and running Omnata Plugins"
|
5
5
|
authors = ["James Weakley <james.weakley@omnata.com>"]
|
6
6
|
readme = "README.md"
|
@@ -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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|