PropertyValue method could fallback to call RunExtensionMethod #1054
Replies: 4 comments 8 replies
-
Sounds like a nice improvement in one direction (get, even if a bit confusing in defining vs derived), but I can imagine the users being confused when attempting to set derived properties. I have a feeling this could be a step too far in trying to make user's life easier. However, maybe an informative warning could pop up in case there was an existing |
Beta Was this translation helpful? Give feedback.
-
I think this sounds very good. The asymmetry of some properties not working on Set - when they do on Get Like it. |
Beta Was this translation helpful? Give feedback.
-
I am on the fence on this one. I am always worried about features that can cause bug being reported due to (understandable) lack of knowledge of internal workings. From a C# perspective, it is always very easy to find out of a property is settable or not. From a UI perspective, not so much. So I can already see the screenshot of a red Don't get me wrong, I think this is a nice feature but I think we would need to solve the disparity between C# and UIs before we can consider this as a safe feature to add. |
Beta Was this translation helpful? Give feedback.
-
A bit of a bumb to this idea, with another use case that would be in favour of adding this mechanism, namely the filtering and grouping and ordering methods we have in the Data_Engine. Adding this RunExtentionMethod mechanism to the PropertyValue method would allow for those methods to be used with this as well. Could for example be ordering a list of bars by their length or similar, which I think could be a really powerful addition. |
Beta Was this translation helpful? Give feedback.
-
Current PropertyValue method that is at the core of our GetProperty method currently checks for defined properties as well as for values in custom data. I know this will also be expanded to a search of the fragments.
Wonder if a final last fallback could be to call RunExtentionMethod with the provided property name as assumed method name. That way you could for example provide a
Bar
and ask for "Length" and it would fall back to fetching the length via the Query method in the structures engine.The benefit I would see to this would be pretty much the same as the downside I would see to this; it blurs the boundary between Defining properties and Derived properties. This could make the use a bit more simple, that engineers using the tools does not have to know if they need to use get property or a query method to fetch some particular piece of information, but it will also mean a separating between the data you can directly get from GetProperty and Explode.
I think the benefit could outweigh the downsides, but glad to get other peoples opinions!
@adecler @FraserGreenroyd @al-fisher @alelom @pawelbaran
Beta Was this translation helpful? Give feedback.
All reactions