-
Notifications
You must be signed in to change notification settings - Fork 3
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
Return property defs by type #185
Conversation
@flavens You can try it in the UI lib and see if it does what you need const systemProps = resource.getPropertyDefinitions(SystemPropertyDefinition);
const resProps = resource.getPropertyDefinitions(ResourcePropertyDefinition); Since the type arg is optional, the return type is generic ( We could make the type arg non optional, so the compiler would know whether you asked for system or resource props. Shall we make another method called |
I can get PropertyDefinitions, system + resource. However, I figured out that there are some missing essential information. We need more for each resourceProp:
This is why I created this object
Good idea
Yes that would be convenient! |
@flavens Ok, thanks for your input. If will see how this could fit in. |
@flavens I think now I understood what you mean :-) You want a collection of cardinalities for a given resource class that
I think we should move the new methods created on this branch so far from I think this has some consequences on the current implementation of
Maybe this can be done in a backward compatible way. I now remember the reason for having I suggest that we continue on this on Monday. Would that be ok? |
Yes it's ok! I will then take a look at |
@flavens Now the property definitions are contained in the cardinalities (not just the property index). Would this be enough for your use-case? The implementation is not good however. I need to figure out how I could transform in between data structures |
…rtyDefinition from ResourceClassDefinition
…rtyDefinition from ResourceClassDefinition
@tobiasschweizer which is the new method I can use in dsp-ui to get the properties with all information? Your previous setup does not work anymore. |
I will have to move some methods. Could you just check
|
This reverts commit c7d3023.
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.
LGTM
@lrosenth This PR changes the way the entity info is made available on a
changed to
The resource class will now be represented by a In short, more information is returned now and some methods have been added, but existing code won't break (only the name change could be an issue). |
resolves https://dasch.myjetbrains.com/youtrack/issue/DSP-142