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

Do not drop extensions when merging a grouping Entry #109

Merged
merged 3 commits into from Jan 10, 2020

Conversation

wenovus
Copy link
Collaborator

@wenovus wenovus commented Dec 18, 2019

Currently, when the merge function carries out the transplant of top-level nodes from a grouping to their target parent, extensions at the grouping level, which are stored at a temporary Entry to which the top-level nodes are attached before transplanting, are being dropped. This is because the merge code forgets about the Exts field when it carries out the transplant operation.

This change simply transplants the extensions as well to all the top-level nodes to make the transplant more complete.

See example #108

Fixes #108

@coveralls
Copy link

coveralls commented Dec 18, 2019

Coverage Status

Coverage increased (+0.008%) to 71.934% when pulling dcf7d23 on grouping-extension into ea615a6 on master.

@LeonGWang
Copy link
Contributor

LGTM. Thanks Wen!

@LeonGWang
Copy link
Contributor

When can we expect this PR to be accepted?

Copy link
Contributor

@aashaikh aashaikh left a comment

Choose a reason for hiding this comment

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

LGTM -- thanks for making the changes.

@wenovus wenovus merged commit 914e05b into master Jan 10, 2020
@wenovus wenovus deleted the grouping-extension branch January 10, 2020 17:12
LeonGWang added a commit to aristanetworks/goyang that referenced this pull request Jan 11, 2020
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.

'Entry.Ext' field is lost during 'merge()'
4 participants