You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warnings node_modules/@cap-js/change-tracking/index.cds:23:3: No OData navigation property generated, target “sap.changelog.ChangeLog” is outside of service ...
#121
Open
D027152 opened this issue
Sep 18, 2024
· 2 comments
Some services that we have defined in our repository https://github.tools.sap/erp4sme/crypto-for-business contain entities that are enabled for change tracking via annotation @changelog.
For all these services the command cds build --production creates warnings like the following: [WARNING] node_modules/@cap-js/change-tracking/index.cds:23:3: No OData navigation property generated, target “sap.changelog.ChangeLog” is outside of service ...:
These warnings seem not to harm. However: Is there a possibility to get rid of them?
The reason for the warnings seems to be that each entity gets the annotation changes, which points to entity ChangeView, which contains the association changeLog pointing to entity ChangeLog. The entity ChangeView is contained in our odata services, but entity ChangeLog is not.
Hello @D027152
these warnings indeed do no harm, but I unfortunately don't know how to get rid of them, except working around this by manually creating a service entity proxy in your servic definition and using redirects, but I would say this solution is high effort and quite ugly compared to living with the warnings.
I'll take this into our regular modeling-sync to discuss this with the compiler experts, but this may take some time.
Hello
Some services that we have defined in our repository https://github.tools.sap/erp4sme/crypto-for-business contain entities that are enabled for change tracking via annotation @changelog.
For all these services the command cds build --production creates warnings like the following:
[WARNING] node_modules/@cap-js/change-tracking/index.cds:23:3: No OData navigation property generated, target “sap.changelog.ChangeLog” is outside of service ...:
These warnings seem not to harm. However: Is there a possibility to get rid of them?
The reason for the warnings seems to be that each entity gets the annotation changes, which points to entity ChangeView, which contains the association changeLog pointing to entity ChangeLog. The entity ChangeView is contained in our odata services, but entity ChangeLog is not.
to reconstruct:
The text was updated successfully, but these errors were encountered: