-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix: Use the fully-qualified names from .definitions instead of namespace #60
fix: Use the fully-qualified names from .definitions instead of namespace #60
Conversation
…-from-definitions-instead-of-csns-namespace
@RoshniNaveenaS @Fannon @zongqichen @RamIndia : Could you please review this pull request? Thanks. |
@zongqichen @Fannon : Could you please review once more? Thanks. |
@Fannon @zongqichen : Could you please review? |
"packages": [ | ||
{ | ||
"description": "Description for capire bookshop ord sample", | ||
"ordId": "sap.test.cdsrc.sample:package:capirebookshopordsample-api:v1", |
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.
it looks it could generate multi packages by appending different suffix, I guess it's valid @Fannon.
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.
Ok, so does it now append suffixes or not? I thought for now, it just generates one package and assigns all the ORD resources to it? But in the future, we would add the option to automatically add the suffixes and assign the resources to the right kind of package :)
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.
Yes, the original code has the logic to append suffix to different type.
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
Addressing the following issue from #38 :
Instead of
csn.namespace
, we should use e.g.cds.model.definitions["AdminService"].model.namespace