Skip to content

Update CreateCAPProject notebook for CDS 9.x#137

Open
priyankasaraf-111 wants to merge 1 commit into
SAP-samples:mainfrom
priyankasaraf-111:update-capnb-for-cds9
Open

Update CreateCAPProject notebook for CDS 9.x#137
priyankasaraf-111 wants to merge 1 commit into
SAP-samples:mainfrom
priyankasaraf-111:update-capnb-for-cds9

Conversation

@priyankasaraf-111

Copy link
Copy Markdown

Summary

  • Use cds init --add nodejs to generate a package.json with @sap/cds as a declared dependency (CDS 9 best practice)
  • Add npm install after init so the project is self-contained
  • Fix conversation CSV filename: sap.capire.incidents-Incidents.conversation.csv (CDS 9.x renames composition tables to include the parent entity name; old name sap.capire.incidents-conversation.csv would silently not load)

Test plan

  • Run all cells in the notebook — project initializes and installs cleanly
  • cds watch starts without errors
  • Conversation data loads correctly in the running service

- Use `cds init --add nodejs` to generate a proper package.json with
  @sap/cds as a declared dependency instead of relying on global install
- Add `npm install` step after init
- Fix conversation CSV filename to match CDS 9.x naming convention:
  sap.capire.incidents-Incidents.conversation.csv (was -conversation.csv)
@cla-assistant

cla-assistant Bot commented Jun 11, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

1 participant