This repository was archived by the owner on Jan 19, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: map api elements between versions #1119
Merged
lars-reimann
merged 93 commits into
main
from
1118-map-list-of-old-api-elements-to-list-of-new-api-elements
Dec 1, 2022
Merged
feat: map api elements between versions #1119
lars-reimann
merged 93 commits into
main
from
1118-map-list-of-old-api-elements-to-list-of-new-api-elements
Dec 1, 2022
Conversation
This file contains hidden or 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
switching to an other pc - migth not working <3 to xorg
and unspecified-encoding
from classes, and (global) functions
with included license
and hopefully the error disapperears
…ate-a-simple-implementation-of-the-differ
… 1118-map-list-of-old-api-elements-to-list-of-new-api-elements
c4befe8
to
bc4d25a
Compare
…iffer # Conflicts: # package-parser/package_parser/processing/migration/_differ.py
… 1118-map-list-of-old-api-elements-to-list-of-new-api-elements
…-new-api-elements # Conflicts: # package-parser/package_parser/processing/migration/__init__.py
lars-reimann
suggested changes
Nov 30, 2022
lars-reimann
approved these changes
Dec 1, 2022
🎉 This PR is included in version 1.72.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #1118.
Summary of Changes
adding file
package_parser/processing/migration/mapping.py
including the methodmap_api
, which returns a map from old api elements to new api elements. This mapping is represented in the classesOne/ManyToOne/ManyMapping
. Two mapping objects can be merged (merge_mappings
method) as well as a list of mappings (_merge_similar_mappings
and_merge_mappings_with_same_elements
).Testing Instructions
run
test_mapping.py