-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix issue with deep dependency types #340
Fix issue with deep dependency types #340
Conversation
… GetDependencyTypes
Changing method to compute a dependency depth and use that for sorting the order of the objects
Validated with @alelom that the changes to the create order is only between types that the order is fine to be switched. For example, IMaterialProperty vs Constraint6DOF, and that all dependencies are still pushed before any potential host object. Essentially, there are a couple of orders that all are fine. The previous order was fine, but so is this new one. Hence updating the correct order to new order.
Adding test for the case highlighted in the issue that was the one used to find the problem being fixed in the PR
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.
The code solves the issue and works well! Reviewed all changes and tests.
@IsakNaslundBh to confirm, the following actions are now queued:
|
The check |
The check |
Issues addressed by this PR
Closes #339
Fixing an issue with the dependency ordering that could occur for some cases where a deeper dependency chain required to be evaluated. Was highlighted when trying to push Bar loads by their own, leading to an error in terms of order where the Bars where pushed before for example Nodes and Sections.
Issue has now been fixed with a tweak to the sorting methodology.
Also, adding a non-generic method for extracting dependency types for a particular type.
Test files
Can be validated with new PushTest in verification solution.
Also, pushing a single BarLoad to Robot, while using BHoM/Robot_Toolkit#506 should work.
Changelog
Additional comments