You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This allows us to use a @ExcludedFromDiff annotation to exclude unwanted properties from the diff. This normally works just fine, but I came across a case where, if the objects with excluded fields are part of a collection, and I compare the collection itself, the differ reports a state of CHANGED instead of the expected UNTOUCHED.
For example, this comparison reports UNTOUCHED:
data classMyObject(
@get:ExcludedFromDiff
valprop:String
)
val base =MyObject("test")
differ.compare(base, base.copy(prop ="whatever"))
I've tried my best to debug the issue, but failed. If you have any insights and could at least confirm whether you think this might be a bug and whether there's any workaround in version 0.95, that would be greatly appreciated!
The text was updated successfully, but these errors were encountered:
Hi Daniel,
First of all, thanks a lot for the awesome library! We've been using it in open-source Spinnaker for over a year now with great results.
I think I may have run into a corner case. We are configuring a differ in Kotlin like so:
This allows us to use a
@ExcludedFromDiff
annotation to exclude unwanted properties from the diff. This normally works just fine, but I came across a case where, if the objects with excluded fields are part of a collection, and I compare the collection itself, the differ reports a state ofCHANGED
instead of the expectedUNTOUCHED
.For example, this comparison reports
UNTOUCHED
:But this comparison reports
CHANGED
:I've tried my best to debug the issue, but failed. If you have any insights and could at least confirm whether you think this might be a bug and whether there's any workaround in version 0.95, that would be greatly appreciated!
The text was updated successfully, but these errors were encountered: