Skip to content

Link the tested remote-service samples from the external-service page - #34

Merged
oblomov-dev merged 1 commit into
mainfrom
claude/link-samples-stack
Sep 29, 2026
Merged

oblomov-dev merged 1 commit into
mainfrom
claude/link-samples-stack

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

What changes

docs/examples/external-odata.md ("Calling an External Service")

  • The warning "Not exercised by this project's test suite" becomes a tip pointing to cap2UI5/samples-stack. Its sample Z2UI5_CL_CAPS_APP_001 reads SAP S/4HANA's API_BUSINESS_PARTNER with cds.connect.to and cds.ql. It runs against CAP's mock when no system is configured, and its tests cover the mock and a real OData V2 request. The tip still says that no test runs the page's own Northwind code.
  • "Next" gets a link to samples-stack, which names Z2UI5_CL_CAPS_APP_002: a function module called over RFC with @sap/cds-rfc.

docs/.verify-refs-ignore

  • Adds z2ui5_cl_caps_app_001 and z2ui5_cl_caps_app_002 under a new section, "apps of other repositories", with a reason on each entry. verify-refs treats any z2ui5_ name as a framework class. These two are apps registered with defineApp in samples-stack, so they are not in the abap2UI5 source it checks.

Check run

npm ci, then shallow clones (--depth 1) of cap2UI5/cap2UI5 and abap2UI5/abap2UI5, then:

CAP2UI5_DIR=<cap2UI5 clone> ABAP2UI5_DIR=<abap2UI5 clone> npm run check:ci

It printed verify-refs: OK — every documented path, class, app id and option resolves and the VitePress build finished (build complete). The patch applied cleanly on main at ec4c42f, and nothing needed fixing.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TRkYvBYut1a1PjFYuUAcqj


Generated by Claude Code

The page said, rightly, that nothing tested a remote service call and
that its Northwind code was the shape rather than a measured recipe.
cap2UI5/samples-stack now has that recipe: Z2UI5_CL_CAPS_APP_001 reads
SAP S/4HANA's API_BUSINESS_PARTNER with cds.connect.to and cds.ql, runs
against CAP's mock without the system, and is tested against that mock
and through a real OData V2 request. Z2UI5_CL_CAPS_APP_002 does the same
for a function module over RFC with @sap/cds-rfc.

The warning becomes a pointer to the sample, and keeps saying that the
Northwind code itself runs in no test. verify-refs reads the two sample
names as framework classes because of their z2ui5_ prefix, so they go
into .verify-refs-ignore with that reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TRkYvBYut1a1PjFYuUAcqj
@oblomov-dev
oblomov-dev merged commit 0ff3b88 into main Sep 29, 2026
1 check passed
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