F copy entity
1 unresolved thread
1 unresolved thread
Summary
Function to copy an entity.
Note to reviewer: This MR depends on f-merge-entities.
Test Environment
There is a unit test.
Check List for the Author
-
All automated tests pass -
Reference related Issues -
Up-to-date CHANGELOG.md -
Add type hints in created/changed code -
Annotations in code (Gitlab comments) - Intent of new code
- Problems with old code
- Why this implementation?
Check List for the Reviewer
-
I understand the intent of this MR -
All automated tests pass -
Up-to-date CHANGELOG.md -
The test environment setup works and the intended behavior is reproducible in the test environment -
In-code documentation and comments are up-to-date. -
Check: Are there spezifications? Are they satisfied?
For further good practices have a look at our review guidelines.
Edited by Alexander Schlemmer
Merge request reports
Activity
added EnhancementProposed label
assigned to @salexan
mentioned in issue #97 (closed)
added 18 commits
-
265e165d...ecf16ac0 - 17 commits from branch
dev
- 5f38cfb9 - Merge branch 'dev' into f-copy-entity
-
265e165d...ecf16ac0 - 17 commits from branch
added 5 commits
- 472b7972 - ENH: new function to merge entities
- d14761bc - ENH: changed merge function such that it is an in-place operation
- f1243df7 - changed name of function
- 27c515a4 - FIX: problem when importance keyword was not present in diff output
- a99a3538 - Merge branch 'f-merge-entities' into f-copy-entity
Toggle commit list- Resolved by Alexander Schlemmer
mentioned in merge request !50 (closed)
requested review from @timm
added 8 commits
- f66eba25 - STY: style fixes for this branch
- a02f3bf7 - TST: added test stub
- 5075530a - TST: added a basic unit test for merge entities function
- aea1beaa - FIX: Workaround for bug 109 (problems with xml representations of list values)
- a0c1db9f - FIX: added workaround for bug 109 and corresponding tests
- ded2b128 - FIX: added unit for workaround
- a73c710e - MAINT: move doc file to f-refactor-high-level-api
- 394d2f5d - Merge branch 'f-merge-entities' into f-copy-entity
Toggle commit list691 if entity.role == "File": 692 new = File() 693 elif entity.role == "Property": 694 new = Property() 695 elif entity.role == "RecordType": 696 new = RecordType() 697 elif entity.role == "Record": 698 new = Record() 699 elif entity.role == "Entity": 700 new = Entity() 701 else: 702 raise RuntimeError("Unkonwn role.") 703 704 # Copy special attributes: 705 # TODO: this might rise an exception when copying 706 # special file attributes like checksum and size. changed this line in version 9 of the diff
- Resolved by Alexander Schlemmer
- Resolved by Alexander Schlemmer
- Resolved by Alexander Schlemmer
- Resolved by Alexander Schlemmer
- Resolved by Alexander Schlemmer
- Resolved by Alexander Schlemmer
- Resolved by Alexander Schlemmer
- Resolved by Alexander Schlemmer
- Resolved by Alexander Schlemmer
- Resolved by Alexander Schlemmer
- Resolved by Alexander Schlemmer
- Resolved by Alexander Schlemmer
added 1 commit
- 465f41f2 - DOC: renamed COMAPRED to SPECIAL_ATTRIBUTES and added documentation
added 1 commit
- a68883c4 - TST: adapted test to use member function instead of copy_entity
added 1 commit
- 8f6d3528 - DOC: updated merge_entities docstr to note that the function is currently experimental
enabled an automatic merge when the pipeline for 8f6d3528 succeeds
mentioned in commit 77c1d75e
Please register or sign in to reply