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

Remove all non-inheritable extensions from the base profile before snapshotting #2886

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

mmsmits
Copy link
Member

@mmsmits mmsmits commented Oct 8, 2024

fixes #1814

@mmsmits mmsmits marked this pull request as ready for review October 8, 2024 09:34
@mmsmits mmsmits enabled auto-merge October 8, 2024 09:35
@@ -2433,8 +2433,8 @@ private static bool isAlmostExactly(ElementDefinition elem, ElementDefinition ba
}

// Also ignore any Changed extensions on base and diff
elemClone.RemoveAllConstrainedByDiffExtensions();
baseClone.RemoveAllConstrainedByDiffExtensions();
elemClone.RemoveAllNonInheritableExtensions();
Copy link
Member

Choose a reason for hiding this comment

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

Does this method replace the original ones? So RemoveallNonInheritableExtension replaces RemoveAllConstrainedByDiffExtensions? If so, should we not remove/obsolete the original method?

@@ -73,6 +72,47 @@ public static void RemoveAllConstrainedByDiffExtensions<T>(this IEnumerable<T> e
}
}

internal static void RemoveAllNonInheritableExtensions(this Element element)
Copy link
Member

Choose a reason for hiding this comment

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

Can we use a bit code in a shared project instead of copy/paste? I know the snapget is unique to both, but maybe this overlaps?

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.

Make sure we do not propagate "publishing extensions" while creating a snapshot
2 participants