-
Notifications
You must be signed in to change notification settings - Fork 7
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
Dimitrie/cnx 925 Invalidates model cards from layer change events (name, colour) #472
Dimitrie/cnx 925 Invalidates model cards from layer change events (name, colour) #472
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #472 +/- ##
=====================================
Coverage 9.16% 9.16%
=====================================
Files 228 228
Lines 4297 4297
Branches 544 544
=====================================
Hits 394 394
Misses 3887 3887
Partials 16 16 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minors
{ | ||
return; | ||
} | ||
|
||
// Actual model card invalidation | ||
string[] objectIdsList = ChangedObjectIds.Keys.ToArray(); | ||
var changedObjectIdsInGroups = ChangedObjectIdsInGroups.Keys.ToArray(); | ||
var changedObjectIdsInGroups = ChangedObjectIdsInGroupsOrLayers.Keys.ToArray(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would rename from changedObjectIdsInGroups
to changedObjectIdsInGroupsOrLayers
variable too to not confuse ourselves later
|
||
if (isExpired) | ||
var groupIdIntersection = modelCard.SendFilter.NotNull().SelectedObjectIds.Intersect(changedObjectIdsInGroups); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for groupIdIntersection
-> groupOrLayerIdIntersection
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
Invalidates model cards from layer change events (name, colour). Very fast demo:
Rhino_T3al7UjVI6.mp4