Skip to content

Commit

Permalink
Merge branch 'upstream'
Browse files Browse the repository at this point in the history
# 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
  • Loading branch information
JaviCerveraIngram committed May 24, 2019
2 parents 3553fae + 2aecf83 commit 4af8fba
Show file tree
Hide file tree
Showing 12 changed files with 189 additions and 1,667 deletions.
1 change: 0 additions & 1 deletion connect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def __init__(self, config=None):
'config',
'exceptions',
'logger',
'migration_handler',
'models',
'resources',
'FulfillmentAutomation',
Expand Down
187 changes: 0 additions & 187 deletions connect/migration_handler.py

This file was deleted.

4 changes: 4 additions & 0 deletions connect/models/fulfillment.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,7 @@ def removed_items(self):
return list(filter(
lambda item: item.quantity == 0 and item.old_quantity > 0,
self.asset.items))

def needs_migration(self, migration_key='migration_info'):
# type: (str) -> bool
return self.asset.get_param_by_id(migration_key) is not None
185 changes: 0 additions & 185 deletions tests/data/request.migrate.direct.invalid.json

This file was deleted.

0 comments on commit 4af8fba

Please sign in to comment.