-
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
Backward compatibility for removed Engine.Create methods #164
Backward compatibility for removed Engine.Create methods #164
Conversation
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.
Yep. Makes sense @adecler - thanks Also - I don't know if you have already explicitly added UI deprecation as an additional use case to versioning going forward (in addition to the namespace, type, method, internal property cases etc.) |
/azp run BHoM_UI.CheckInstaller |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run BHoM_UI.CheckInstaller |
Azure Pipelines successfully started running 1 pipeline(s). |
Issues addressed by this PR
Closes #163
After an attempt of solving this problem within the Versioning_Toolkit, I ended up taking care of it directly in the BHoM_UI. The main reason for it is the lack of return type stored in the json version of a MethodInfo. I tried to work with method Name and namespace to identify the return type but there was a few too many exceptions for my liking. Solving it here felt more robust and is after all a UI specific versioning issue. This doesn't change the fact that I will add a support for explicitly deprecated method in the versioning engine as planned.
Test files
Additional comments
For the input selection menu to remove pre-existing inputs properly, make sure to use the corresponding PR in Grasshopper_Toolkit. For Dynamo, the equivalent fix has been pushed to the pending PR.