This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support inheritance while migrating (#1234)
Closes #1233. ### Summary of Changes - new additional differ, that compares only api elements whose parent classes are mapped onto each other or with a super- or subclass - improve flexibility for adding and changing and deleting differs in `run_migrate.py` by adding a constructor to AbstractDiffer - new methods for getting all the results or attributes of one api - remove distance_elements and used edit distance from levenshtein-api instead - hash function for subclasses of AbctractType and Parameter - fix possible runtime errors (RecursionError, NoneError) ### Testing Instructions run `migrate` command or `test_inheritance_differ.py`
- Loading branch information
Showing
28 changed files
with
1,230 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 1 addition & 11 deletions
12
package-parser/package_parser/processing/migration/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,2 @@ | ||
from package_parser.processing.migration.model import ( | ||
AbstractDiffer, | ||
APIMapping, | ||
ManyToManyMapping, | ||
ManyToOneMapping, | ||
Mapping, | ||
OneToManyMapping, | ||
OneToOneMapping, | ||
SimpleDiffer, | ||
) | ||
|
||
from ._api_mapping import APIMapping | ||
from ._migrate import Migration |
Oops, something went wrong.