-
Notifications
You must be signed in to change notification settings - Fork 13
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
Versioning_Engine: method to easily generate method keys for versioning #1693
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.
Still reviewing functionality wise, but a few comments to be starting with? 😄
@FraserGreenroyd , I fixed the problems raised in your review |
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.
Am happy with the changes and am happy with the output (see previous comment).
Perhaps intended due to Worth flagging as that is a planned feature (think this one) |
I think from the demo @adecler gave this morning, the matching starts from the right and works left, so with those inputs it would be looking for Maybe a warning to the user to say that the provided thing couldn't be found might be worthwhile? Or if the issue you link is the right one then solving that at a later date. |
No, sorry, re-read the description and sounds right (but thought the demo showed using just a part of the namespace) |
It does, but it started from the right rather than the left. So I think something like |
A simple way to settle that discussion is to look at the code: return Engine.Reflection.Query.AllMethodList()
.Where(x => x.Name == methodName && x.DeclaringType.FullName.EndsWith(declaringType))
.Select(x => x.VersioningKey())
.ToList(); I was using |
/azp run BHoM_Engine.CheckInstaller |
Azure Pipelines successfully started running 1 pipeline(s). |
Issues addressed by this PR
Provide helper method/component to go along with this PR: BHoM/BHoM_UI#247
This makes it way easier to populate the inputs of a
PreviousVersion
attribute.