-
Notifications
You must be signed in to change notification settings - Fork 2
Value Help for Nodejs bookshop sample #19
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
Conversation
finkmanAtSap
left a comment
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.
Looks really good 😊 I just have some minor suggestions.
Co-authored-by: Manuel Fink <[email protected]>
finkmanAtSap
left a comment
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.
Thanks. Looks good. I'm just a bit worried if the db.sqlite file is really in the required shape.
Perhaps you could verify this with a simple unit test for the value help service similar to cat-serivce.test.js
You should be able to authenticate as the mock user with name principal-propagation for this test like so.
As a second test, you could verify that alice has no access because she is lacking the Reader role afaik.
…lp; update .cdsrc.json and .gitignore
finkmanAtSap
left a comment
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.
Awesome!
I added value help for the genre attribute in the cap bookshop sample. Therefore I added the vh-service.cds and the added the value help annotation in the schema.dcl. Changes that need to be done in the mta.yaml file are described in the README.md file.