add support of versioning in mock_storage_client_holding_data
1 unresolved thread
1 unresolved thread
add support of versioning in mock_storage_client_holding_data
Edited by Yannick
Merge request reports
Activity
88 """ 89 If version is None it will return the latest version. To determine the latest version, two cases: 90 * the version field in the record is not set or None => considered as the latest 91 * the version field set and not None => latest = record with the greater version (basic int comparison) 92 """ 93 94 latest = None 85 95 for d in data: 86 96 # CAREFUL: id might be optional in the model (not set on write) 87 97 # Also storage seems to have problematic behavior with id ending in ':' 88 98 if id is not None and (id == d.id or id + ":" == d.id): 89 99 if version is None or version == d.version: # Note: version None means latest 90 return d 100 if d.version is None: # no version set in record just return this one 101 return d 102 elif latest is None or d.version > latest.version: changed this line in version 2 of the diff
- Resolved by Alexandre Vincent
added 36 commits
-
ce9dbdf4...d7db8671 - 34 commits from branch
master
- 6f76b7a5 - add support of versioning in mock_storage_client_holding_data
- 69f4c4d8 - fix typo + rework conditions
-
ce9dbdf4...d7db8671 - 34 commits from branch
mentioned in commit 507e5c57
changed milestone to %M12 - Release 0.15
Please register or sign in to reply