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

Dimitrie/cnx 925 Invalidates model cards from layer change events (name, colour) #472

Conversation

didimitrie
Copy link
Member

Invalidates model cards from layer change events (name, colour). Very fast demo:

Rhino_T3al7UjVI6.mp4

Copy link

linear bot commented Jan 7, 2025

Copy link

codecov bot commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 9.16%. Comparing base (a9850c2) to head (1016c9b).
Report is 5 commits behind head on dev.

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.
📢 Have feedback on the report? Share it here.

Copy link
Member

@oguzhankoral oguzhankoral left a 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();
Copy link
Member

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);
Copy link
Member

Choose a reason for hiding this comment

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

same for groupIdIntersection -> groupOrLayerIdIntersection

Copy link
Member Author

Choose a reason for hiding this comment

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

done!

@didimitrie didimitrie merged commit 9b5cc21 into dev Jan 7, 2025
3 checks passed
@didimitrie didimitrie deleted the dimitrie/cnx-925-object-tracking-modifying-layer-color-or-layer-name branch January 7, 2025 18:48
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