Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable AView to process 1:n mappings by id and by name #231

Merged
merged 8 commits into from
Nov 7, 2019

Conversation

dg-datavisyn
Copy link
Contributor

@dg-datavisyn dg-datavisyn commented Oct 14, 2019

Closes #230

Summary

The resolveSelection method of AView internally relies on the numeric _id value and only maps to the first targetIdType element. This value is not always known to external MappingProviders. So a mapping by name is also needed. Additionally, the AView is now also able to resolve 1:n mappings and not just 1:1 mappings.

This change causes a new minor version.

Copy link
Member

@thinkh thinkh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your changes. I suggest to add and refine the function documentation. It would be great if you could add some test cases for the functions in resolve.ts that show the input and output of each function.

src/views/AView.ts Outdated Show resolved Hide resolved
src/views/AView.ts Outdated Show resolved Hide resolved
src/views/resolve.ts Show resolved Hide resolved
src/views/resolve.ts Show resolved Hide resolved
src/views/resolve.ts Show resolved Hide resolved
dg-datavisyn and others added 4 commits November 7, 2019 13:40
Co-Authored-By: Holger Stitz <holger.stitz@datavisyn.io>
Co-Authored-By: Holger Stitz <holger.stitz@datavisyn.io>
Copy link
Member

@thinkh thinkh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now!

@thinkh thinkh merged commit 7409151 into develop Nov 7, 2019
@thinkh thinkh deleted the dgirardi/230_1toN_mappings branch November 7, 2019 13:14
@lehnerchristian lehnerchristian mentioned this pull request Nov 7, 2019
28 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants