Skip to content

Commit

Permalink
Diffing_Engine: Do not include static properties and fields in differ…
Browse files Browse the repository at this point in the history
…ences (#3410)
  • Loading branch information
IsakNaslundBh authored Sep 25, 2024
2 parents 6a1046d + ac8fd55 commit 0471f52
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion Diffing_Engine/Query/DifferentProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
using BH.oM.Base.Attributes;
using BH.oM.Diffing;
using BH.oM.Base;
using kellerman = KellermanSoftware.CompareNetObjects;
using System.Reflection;
using BH.Engine.Base;

Expand Down
1 change: 0 additions & 1 deletion Diffing_Engine/Query/NumericalDifferenceInclusion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
using BH.oM.Base.Attributes;
using BH.oM.Diffing;
using BH.oM.Base;
using kellerman = KellermanSoftware.CompareNetObjects;
using System.Reflection;
using BH.Engine.Base;
using BH.Engine.Reflection;
Expand Down
2 changes: 2 additions & 0 deletions Diffing_Engine/Query/ObjectDifferences.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ private static IEnumerable<PropertyDifference> Differences(this object pastObjec
kellermanComparer.Config.TypesToIgnore.Add(typeof(RevisionFragment)); // Never include the changes in RevisionFragment.
kellermanComparer.Config.TypesToIgnore.AddRange(cc.TypeExceptions);
kellermanComparer.Config.MembersToIgnore = cc.PropertyExceptions;
kellermanComparer.Config.CompareStaticFields = false;
kellermanComparer.Config.CompareStaticProperties = false;

// Kellerman configuration for tolerance.
// Setting Custom Tolerance for specific properties is complex with Kellerman.
Expand Down

0 comments on commit 0471f52

Please sign in to comment.