Skip to content

Value Help for Nodejs bookshop sample#19

Merged
MarievonSeggern merged 6 commits into
mainfrom
value-help
Jul 16, 2025
Merged

Value Help for Nodejs bookshop sample#19
MarievonSeggern merged 6 commits into
mainfrom
value-help

Conversation

@MarievonSeggern

Copy link
Copy Markdown
Contributor

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.

@cla-assistant

cla-assistant Bot commented Jul 14, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@finkmanAtSap finkmanAtSap left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread ams-cap-nodejs-bookshop/.cdsrc.json Outdated
Comment thread ams-cap-nodejs-bookshop/README.md Outdated
MarievonSeggern and others added 2 commits July 14, 2025 14:01
Co-authored-by: Manuel Fink <123368068+finkmanAtSap@users.noreply.github.com>

@finkmanAtSap finkmanAtSap left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread ams-cap-nodejs-bookshop/db.sqlite

@finkmanAtSap finkmanAtSap left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@MarievonSeggern
MarievonSeggern merged commit 7b648ba into main Jul 16, 2025
3 checks passed
@MarievonSeggern
MarievonSeggern deleted the value-help branch July 16, 2025 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants