Skip to content

Commit 4af8fba

Browse files
Merge branch 'upstream'
# Conflicts: # connect/migration_handler.py # connect/models/__init__.py # connect/models/event.py # connect/models/fulfillment.py # connect/models/tier_config.py # tests/test_migration_handler.py # tests/test_tier_config.py
2 parents 3553fae + 2aecf83 commit 4af8fba

12 files changed

+189
-1667
lines changed

connect/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def __init__(self, config=None):
4040
'config',
4141
'exceptions',
4242
'logger',
43-
'migration_handler',
4443
'models',
4544
'resources',
4645
'FulfillmentAutomation',

connect/migration_handler.py

Lines changed: 0 additions & 187 deletions
This file was deleted.

connect/models/fulfillment.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,7 @@ def removed_items(self):
9999
return list(filter(
100100
lambda item: item.quantity == 0 and item.old_quantity > 0,
101101
self.asset.items))
102+
103+
def needs_migration(self, migration_key='migration_info'):
104+
# type: (str) -> bool
105+
return self.asset.get_param_by_id(migration_key) is not None

tests/data/request.migrate.direct.invalid.json

Lines changed: 0 additions & 185 deletions
This file was deleted.

0 commit comments

Comments
 (0)