Skip to content

feat(adt-contracts): Add RAP contracts with BDEF, DDLS, and Generator support#93

Open
kilo-code-bot[bot] wants to merge 2 commits intomainfrom
gt/maple/7371639b
Open

feat(adt-contracts): Add RAP contracts with BDEF, DDLS, and Generator support#93
kilo-code-bot[bot] wants to merge 2 commits intomainfrom
gt/maple/7371639b

Conversation

@kilo-code-bot
Copy link
Copy Markdown

@kilo-code-bot kilo-code-bot bot commented Apr 4, 2026

Summary

  • Add RAP (RESTful ABAP Programming) contracts for SAP ADT
  • Implement Behavior Definition contract (BDEF) at /sap/bc/adt/rap/behaviours
  • Implement CDS View Entity contract (DDLS) at /sap/bc/adt/ddl/ddls
  • Implement RAP Generator workspace contract at /sap/bc/adt/rap/generator
  • Add 23 contract definition tests verifying paths, methods, headers, and query parameters

Files

  • packages/adt-contracts/src/adt/rap/behaviours.ts - BDEF contract
  • packages/adt-contracts/src/adt/rap/ddls.ts - DDLS contract
  • packages/adt-contracts/src/adt/rap/generator.ts - RAP Generator contract
  • packages/adt-contracts/src/adt/rap/index.ts - Module exports
  • packages/adt-contracts/tests/adt/rap.test.ts - Tests

Open with Devin

… support

- Add behaviourDefinitionsContract for /sap/bc/adt/rap/behaviours endpoint
- Add ddlsContract for /sap/bc/adt/ddl/ddls endpoint
- Add rapGeneratorContract for /sap/bc/adt/rap/generator endpoint
- Export rapContract from adt/index.ts
- Add contract definition tests in tests/adt/rap.test.ts
- Integration tests check for ADT_SERVICE_KEY availability
@kilo-code-bot
Copy link
Copy Markdown
Author

kilo-code-bot bot commented Apr 4, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (7 files)
  • packages/adt-contracts/src/adt/index.ts - Export additions
  • packages/adt-contracts/src/adt/rap/behaviours.ts - BDEF contract
  • packages/adt-contracts/src/adt/rap/ddls.ts - DDLS contract
  • packages/adt-contracts/src/adt/rap/generator.ts - RAP Generator contract
  • packages/adt-contracts/src/adt/rap/index.ts - Module exports
  • packages/adt-contracts/tests/adt/rap.test.ts - Tests
  • packages/adt-contracts/tsconfig.json - Project references

The PR adds RAP (RESTful ABAP Programming) contracts with:

  • Behavior Definition (BDEF) CRUD + source operations
  • CDS View Entity (DDLS) CRUD + source + parent operations
  • RAP Generator workspace management

Code follows existing patterns, uses the crud helper, and includes 23 contract definition tests.


Reviewed by minimax-m2.5-20260211 · 204,870 tokens

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud bot commented Apr 4, 2026

View your CI Pipeline Execution ↗ for commit 62b0aab

Command Status Duration Result
nx affected -t lint test build e2e-ci --verbose... ✅ Succeeded 11s View ↗

☁️ Nx Cloud last updated this comment at 2026-04-04 23:44:48 UTC

Copy link
Copy Markdown
Contributor

@nx-cloud nx-cloud bot left a comment

Choose a reason for hiding this comment

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

✅ The fix from Nx Cloud was applied

We removed ../adt-client and ../adt-auth from the references array in packages/adt-contracts/tsconfig.json to fix the circular TypeScript project reference that was causing the adt-contracts:build failure. Since adt-client already references adt-contracts, adding the reverse reference created a cycle that prevented rolldown-plugin-dts from loading the package entry points. None of the new RAP contract files import from adt-client or adt-auth, so these references were both incorrect and unnecessary.

Tip

We verified this fix by re-running adt-contracts:build.

Suggested Fix changes
diff --git a/packages/adt-contracts/tsconfig.json b/packages/adt-contracts/tsconfig.json
index 04a5e92..3247407 100644
--- a/packages/adt-contracts/tsconfig.json
+++ b/packages/adt-contracts/tsconfig.json
@@ -10,12 +10,6 @@
   },
   "include": ["src/**/*.ts", "tests/**/*.ts"],
   "references": [
-    {
-      "path": "../adt-client"
-    },
-    {
-      "path": "../adt-auth"
-    },
     {
       "path": "../adt-schemas"
     },

Revert fix via Nx Cloud  

View interactive diff ↗

➡️ This fix was applied by Petr Plenkov

🎓 Learn more about Self-Healing CI on nx.dev

devin-ai-integration[bot]

This comment was marked as resolved.

Co-authored-by: kilo-code-bot[bot] <kilo-code-bot[bot]@users.noreply.github.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 4, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
9.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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.

0 participants