-
Notifications
You must be signed in to change notification settings - Fork 10
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
Adding element kind #208
Adding element kind #208
Conversation
Kind element - is a valid type
Hi Petr, thanks for the contribution! Best, |
it would be great to proceed with this PR too. @daogrady Thanks! |
Sure, can you please cite a relevant section from CAPire or show a runtime example so I can confirm this is valid? |
well, I see your point. Indeed - doesn't seem like documented because it's not used in the compiled file, but if we talk about parsed model - the kind element is there. I don't already remember what was the purpose - but I had to filter out elements based on this kind in my code:
so it's a good point which other selector do we need to use.. I already do not remember why e.type !== 'cds.Association' was not enough to distiguish columns from assitiations.. may be need to check again. But this is a fact - that parsed model has kind: element for all the elements. It's just a question - what is the case when elements have something else.. Probably i just don't need to use it all - will check it |
Hi @ThePlenkov , were you able to find something pointing to the existence of such a property? If not, I'd like to close this PR for now. Best, |
The point is - it is not documented but it is used everywhere in the code , it's 100% one of the core csn types, they just don't render it. Can we ping someone from the compiler module may be to check it? |
When you say "in the code", do you mean "in samples" (like in the bookstore), or "the cds implementation code"? In case of the former, please link any such example so I can confirm it is valid. |
No no I mean CDs core code itself. They use it in conditional logic |
The general policy for things that are not documented in CAPire is, that they are not part of the API and are thus probably not documented on purpose. That goes especially for things that can only be found in the @David-Kunz could you maybe chime in and clear up whether |
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.
I checked in with a team of the runtime and they confirmed that this change is indeed valid. Thanks for the contribution!
Kind element - is a valid type