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

Improve information available from diffs #574

Merged
merged 1 commit into from
Sep 22, 2020
Merged

Conversation

mtdowling
Copy link
Member

This change adds a lot more details to the result of a ModelDiff,
including access to the raw Differences between the models, access to
the old and new models through the Differences object, access to the old
validation events and new validation events, and access to the diff
events. Helper methods were added to ModelDiff.Result to detect which
validation events were introduced by a change, which validation
events were resolved by a change, and if there are breaking changes in
the diff (e.g., events that are ERROR or DANGER). Note that any kind of
suppression of diff events would need to be applied and managed outside
of this helper functionality.

Added some missing equals and hashCode implementations.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This change adds a lot more details to the result of a ModelDiff,
including access to the raw Differences between the models, access to
the old and new models through the Differences object, access to the old
validation events and new validation events, and access to the diff
events. Helper methods were added to ModelDiff.Result to detect which
validation events were introduced by a change,  which validation
events were resolved by a change, and if there are breaking changes in
the diff (e.g., events that are ERROR or DANGER). Note that any kind of
suppression of diff events would need to be applied and managed outside
of this helper functionality.

Added some missing equals and hashCode implementations.
@mtdowling mtdowling merged commit 5879d77 into master Sep 22, 2020
@mtdowling mtdowling deleted the diff-validation branch December 11, 2020 17:59
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.

2 participants