Skip to content

Conversation

JR-Morgan
Copy link
Member

@JR-Morgan JR-Morgan commented Feb 19, 2025

Previously, we were selecting all spatial children to as RootIds to become immediate children of the root Collection speckle object. Additionally they were also included during traversal as spatial children to be nested under the "elements" property during recursive traversal.

Obviously these two strategies cannot both be employed without leading to the problem in question where many copies of each element was included in the tree.

(i.e. all spatial relationships were being sent flat AND included as nested children via the traversal)

See Linear ticket for an example Speckle model

Pre PR (slightly simplified)

  graph TD;
      Root_Collection--> IFC_Project;
      IFC_Project-->IFC_Site;
      IFC_Site-->IFC_Building;
      IFC_Building-->IFC_Storey;
      IFC_Storey-->IFC_Roof;
      Root_Collection-->IFC_Building;
      Root_Collection-->IFC_Site;
      Root_Collection-->IFC_Roof;
Loading

Post PR

  graph TD;
      Root_Collection-->IFC_Project;
      IFC_Project-->IFC_Site;
      IFC_Site-->IFC_Building;
      IFC_Building-->IFC_Storey;
      IFC_Storey-->IFC_Roof;
Loading

Copy link

linear bot commented Feb 19, 2025

Copy link

codecov bot commented Feb 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 8.71%. Comparing base (3ff4075) to head (afb1053).
Report is 1 commits behind head on dev.

Additional details and impacted files
@@          Coverage Diff          @@
##             dev    #604   +/-   ##
=====================================
  Coverage   8.71%   8.71%           
=====================================
  Files        227     227           
  Lines       4370    4370           
  Branches     545     545           
=====================================
  Hits         381     381           
  Misses      3974    3974           
  Partials      15      15           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JR-Morgan JR-Morgan enabled auto-merge (squash) February 27, 2025 14:00
@JR-Morgan JR-Morgan merged commit af548ba into dev Feb 27, 2025
5 checks passed
@JR-Morgan JR-Morgan deleted the jedd/cnx-1082-duplicate-ifc-spaces branch February 27, 2025 14:08
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