Skip to content

Commit 187d08b

Browse files
smahatiziyang-workschgeovmikhailenkorenejeglinsky
authored
Release July 2024 (#1149)
* replace `npm add` with `npm install -D` for typescript setup (#986) replace `npm add` with `npm install -D` * Fix bg-color of title on home page * [CAPJAVA^3] Fix the wrong precondition in the list (#983) Fix the wrong precondition in the list * fix CDL * Explain PostgreSQL limitations (#974) * Explain PostgreSQL limitations * Update databases-postgres.md * Update databases-postgres.md * Update databases-postgres.md * Update databases-postgres.md * Update databases-postgres.md * Update databases-postgres.md * Update databases-postgres.md * Update guides/databases-postgres.md Co-authored-by: Stefan Henke <[email protected]> * Update guides/databases-postgres.md Co-authored-by: Stefan Henke <[email protected]> * Update guides/databases-postgres.md Co-authored-by: Adrian Görler <[email protected]> * Update guides/databases-postgres.md * editing * Update guides/databases-postgres.md Co-authored-by: René Jeglinsky <[email protected]> * Update guides/databases-postgres.md Co-authored-by: René Jeglinsky <[email protected]> * Update databases-postgres.md * Update databases-postgres.md * Update databases-postgres.md --------- Co-authored-by: Stefan Henke <[email protected]> Co-authored-by: Adrian Görler <[email protected]> Co-authored-by: Rene Jeglinsky <[email protected]> * Mention that draft decorations can't be used in annotation expressions (#984) * Mention that draft decorations can't be used in annotation expressions Sth like `(IsActiveEntity = false)` doesn't work. * Update cds/cdl.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update cds/cdl.md Co-authored-by: Steffen Weinstock <[email protected]> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Steffen Weinstock <[email protected]> * fix cdl * . * clearer beginning for beginners * Remove docs about obsolete K8s service bindings config (#991) * Remove obsolete tip in `cds.env` guide (#996) * Remove obsolete tip in `cds.env` guide * File name * CDL: Added learn more about path annotation video (#995) * learn more about path annotation video * add video on test data generation * Java Reflection API: Fix localized example (#999) * XML to Markdown syntax on images (#997) * image syntax in markdown * image syntax in markdown * changed image languge to markdown * changed image langugage to markdown * changed image to markdown * changed images to markdown * changed to markdown * changed to markdown * changed to markdown * changed to markdown * change to markdown * changed syntax to markdown * changed syntax to markdown * changed syntax to markdown * changed to markdown syntax * changed to markdown * changed to markdown syntax * changed syntax to markdown * fix --------- Co-authored-by: Rene Jeglinsky <[email protected]> * consistent naming for App Router (#1002) * Update dependency com.sap.cds:cds4j-api to v2.10.1 (#1003) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update dependency sass to v1.77.5 (#992) chore(deps): update dependency sass to v1.77.5 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update dependency @sap/cds-dk to v7.9.3 (#988) chore(deps): update dependency @sap/cds-dk to v7.9.3 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Data Privacy Updates (#945) * tested new flow * fix email ref in pdm service * updates, new screenshot * added date of birth * new screenshot * re-added sections * Update dependency com.sap.cds:cds-services-api to v2.10.1 (#1012) * editing * Mermaid docs (#1014) * Mermaid docs * Apply suggestions from code review --------- Co-authored-by: René Jeglinsky <[email protected]> * doc(deploy): explain deploy --profile (#944) * [cds^8] - Nodejs : rm req.user.<tenant/locale> compat (#953) cds8: rm req.user.<tenant/locale> compat Co-authored-by: sjvans <[email protected]> Co-authored-by: René Jeglinsky <[email protected]> * [cds^8] No strings in INSERT.into and UPSERT.into (#966) No strings in INSERT.into and UPSERT.into * doc(completion)(8.0): add fish shell entry (#989) doc(completion): add fish shell entry * Remove cds.Subscriber from mock users (#1000) * Remove cds.Subscriber from mock users * addtional cleanup * docs(java outbox): Show hard-coded value `ordered` for default outboxes (#1027) Users can't change `ordered` of `DefaultOutboxOrdered` and `DefaultOutboxUnordered`. But the documentation is not _that_ clear about that the first time reading this document. This commit adds the default and non-changable values for `ordered` for these two default outboxes and mentions that they can't be changed in the option description. * fix(cds-env): Add missing newline in YAML snippet (#1021) A source-code line was cut off. * mention hdb_nodejs_threadpool_size (#1028) * fix(java): Fix variable mismatch: `ctx` vs `context` (#1024) There were two snippets that were not consistent in the naming of their context variable. In one case, `ctx` did not exist, in the other, `context` did not exist. * Remove CdsDataStore documentation from PersistenceService chapter (#1005) * Remove CdsDataStore documentation from PersistenceService chapter PersistenceService is preferred over CdsDataStore. Also configuring custom CdsDataStoreConnector instances is not recommened anymore since we support additional PersistenceServices out-of-the-box meanwhile as well * Update query-api.md --------- Co-authored-by: René Jeglinsky <[email protected]> * hard coded vs usr defined strlength (#1017) * hard coded vs usr defined strlength ... make foot note clearer * Update cds/types.md Co-authored-by: Andre Meyering <[email protected]> --------- Co-authored-by: Steffen Weinstock <[email protected]> Co-authored-by: Andre Meyering <[email protected]> * ci: Update `actions/configure-pages` to v5 (#1033) See https://github.com/actions/configure-pages/releases * ci: Update `actions/checkout` to v4 (#1032) * ci: Update `actions/setup-node` to v4 (#1031) * chore(deps): update dependency cspell to v8.9.0 (#1030) * fix(observability): Fix snytax error in YAML snippets (#1022) One snippet used `=` instead of `: `. Change `# […]` to `# ...` * chore(deps): update dependency sass to v1.77.6 (#1018) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Complete table for `cds add` (#1029) Add all facets to table Co-authored-by: Christian Georgi <[email protected]> * docs(java): Add more newlines to improve readability of snippets (#1020) * docs(java outbox): Improve description for `.cdsrc.json` (#1019) * Update limitations of SQLite (#1026) We do not document limitations wrt. RIGHT|FULL OUTER JOINs and UNIONs any longer. These SQL constructs are not used by the CAP Java runtime. The limitations could be observed in view definitions and hence rather have to be documented in the CQL area. * Add Git Bash on Windows disclaimer (#1037) * Add Git Bash on Windows disclaimer * Move disclaimer to CAP on Azure section * rework * Update get-started/troubleshooting.md --------- Co-authored-by: René Jeglinsky <[email protected]> * docs(java): Fix syntax errors in Java snippets (#1035) * . * SAP Document Management Service Plugin Documentation (#1034) * SAP Document Management Service Plugin Documentation Adding the documentation for SAP Document Management Service plugin * Update plugins/index.md * Update plugins/index.md * Update plugins/index.md * Update plugins/index.md * Update plugins/index.md * Changes requested * Update index.md * cosmetics --------- Co-authored-by: Mahati Shankar <[email protected]> Co-authored-by: Mahati Shankar <[email protected]> * New index page style * Hint to Mermaid extension * chore(deps): update dependency @sap/eslint-plugin-cds to v3.0.4 (#1038) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency cspell to v8.9.1 (#1041) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * new command: cds compile --to hana (#1025) Co-authored-by: René Jeglinsky <[email protected]> Co-authored-by: Christian Georgi <[email protected]> * SAP Document Management Service Plugin UI changes (#1044) * Enforce chai-as-promised 7 Version 8 is ESM only, which we can't run atm. * Add full path to pom.xml in auditlog section. (#1048) Update auditlog.md * docs(Java): Remove unnecessary UML-like graphic (#1011) There is a diagram in the Java CDS Data guide that does not really bring any benefit. Not just that: it does not match the text: singular/ plural forms do not match the described entities. As no relation between the entities is shown, I suggest to remove it. Co-authored-by: Mahati Shankar <[email protected]> * Fix #1045 (#1046) * minor typo fix in core-services.md (#1051) * fix typo and rearrange to avoid multiple plural-possessive-quotes in … (#1050) fix typo and rearrange to avoid multiple plural-possessive-quotes in core-services.md Spotted "servce" [sic] then thought I'd rearrange the phrase anyway to help avoid two plural-possessive-quotes in one phrase :-) * [cds^8] remove req._ (we have req.http now) (#741) * remove req._ we have req.http now * add header example + warning * Update node.js/events.md * Update node.js/events.md --------- Co-authored-by: René Jeglinsky <[email protected]> Co-authored-by: Mahati Shankar <[email protected]> * Since instead of requires * Update the FAQ for concurrency problems (#990) * Introduce placeholder for fragment (#1052) * docs: Update Fiori screenshot to use the latest version (#1065) I've updated the Fiori screenshot of the "In a Nutshell" guide to use the latest version of the cloud-sap-samples project. I've also used Safari and have sized the window to be the same as the previous screenshot. The PNG was optimized for smaller size. * docs(In a Nutshell): Mention path `/browse` in text also (#1063) While reading the section for the first time, I wondered why the next sections talk about `/browse`. Where did it come from? Turns out, I was lazy and didn't read the second CDS file. With this commit, let's make it a little bit more clear that the catalog service has a different URL. * docs(Grow As You Go): Add `--for production` to multitenancy step (#1062) If `cds add multitenancy` is run without the `--for production`, local app development will not work out-of-the-box. Because users may just copy&paste all snippets to play around, make the step production-only and link the multitenancy guide. * docs(Java): Add filenames to YAML snippets (#1059) Most snippets refer to a Java project's `application.yaml`. This is often implicit knowledge, which has to be induced from the surrounding context. Let's make it more explicit. * docs(Java): Mention default mock user in getting started guide (#1061) If the user followed the previous section "Add CloudFoundry target platform", the `cds-starter-cloudfoundry` dependency is added which causes all endpoints to be authenticated by default. That also means that if the user starts their app, a username and password is requested as soon as they open a service in their browser. But since this is the "Getting Started" guide, users won't know which username/password combination they are expected to use. This is confusing. So let's mention a username that works. Co-authored-by: René Jeglinsky <[email protected]> * Make Maven host configurable * docs(Java): Fix typos, grammar, and format snippets (#1058) Co-authored-by: René Jeglinsky <[email protected]> * fix link anchor * No code bg as sole value in table cells * Add orphaned Features page to sidebar * Replace semiofficial API `DELETE(Books).byKey(42)` with `DELETE.from(Books, 42)` (#1054) * docs(Java Building Plugins): Format code, fix typos, snippet filenames (#1056) Co-authored-by: René Jeglinsky <[email protected]> * Update cds-typer.md (#1057) Update output of `cds-typer --help`, which has changed a lot since the former output of 0.4.0. Co-authored-by: René Jeglinsky <[email protected]> * docs(Java): Adapt CQL counterparts: fix syntax (#1007) Co-authored-by: René Jeglinsky <[email protected]> * Start a test server inside describe (#1068) * Start a test server inside describe * move tip and make it less prominent to avoid to much noise * rephrase sentence * Update node.js/cds-test.md Co-authored-by: René Jeglinsky <[email protected]> --------- Co-authored-by: Rene Jeglinsky <[email protected]> * Update learning-sources.md (#1049) * Update learning-sources.md Add official SAP Learning Journeys available on learning.sap.com * Update learning-sources.md * docs(Java): Fix Intellij part: make it more generic (#1008) * docs(Java): Fix Intellij part: make it more generic The latest Intellij version has a `Generated Sources Root` marker, that should be used instead of `Sources Root`. Also, all keyboard shortcuts may differ, so let's make the section more generic. * Apply suggestions from code review Co-authored-by: René Jeglinsky <[email protected]> --------- Co-authored-by: René Jeglinsky <[email protected]> * fix(In a Nutshell): Fix class name for catalog service handler (#1066) There were two problems with the snippets. The first was the missing `Handler` suffix in the filename, which is used for the Java `tiny-sample`, the second was that the class name didn't match the filename, as is common and required in Java. This commit fixes it. I have tested the guide the with changes and it works. Co-authored-by: Robin <[email protected]> * Removed Beta from change-tracking.md (#1070) * docs(Java): Remove file listings: they are error prone and outdated (#1009) * docs(Java): Remove file listings: they are error prone and outdated In previous commits, I've adapted a few file listings as they were outdated. This commit removes a few of them, as they don't have any benefit and are rather confusing if we ever change the initial file layout again (e.g. rename `schema.cds` to `cds-model.cds` or similar). * Apply suggestions from code review * Update java/getting-started.md * Update java/getting-started.md --------- Co-authored-by: René Jeglinsky <[email protected]> * troubleshooting: mention logging for cloud sdk (#1069) more-troubleshooting * Add requires section to observability mta example (#1074) * fix: it's not propagated from msg.id (#1053) * Always use `cds add xsuaa --for production` * Migration Guide for CAP Java 3.0 (#892) * Migration Guide for CAP Java 3.0 (#890) * Changes in cds-maven-plugin (#893) * Update migration.md * Update java/migration.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Fix typo * Update migration.md * Fixed wrong property order (#935) * [CAP Java 3.0] Explain removal of classic MTX in migration guide (#942) * Added table for removed properties (#936) * Update migration.md * Update migration.md * Update migration.md * Update java/migration.md Co-authored-by: Marc Becker <[email protected]> * Update java/migration.md Co-authored-by: Marc Becker <[email protected]> * Update migration.md * Update java/migration.md * Update java/migration.md --------- Co-authored-by: Marc Becker <[email protected]> * Update migration.md * Update java/migration.md * describing new semantics of `cds.outbox.persistent.enabled` (#987) * Describe changes of goal generate (#993) * Update migration.md * Update migration.md * cds.sql.hana.optimizationMode: hex * Java 3 Migration: CqnSearchTermPredicate (#1015) * [3.0] Removal of `cds-feature-xsuaa` (#918) Co-authored-by: Marc Becker <[email protected]> * Add removed property * cqn(String) methods * $user.tenant * 3.0: Lazy localization by default (#1023) * $user.tenant deprecation * document cds.auditLog.personalData.throwOnMissingDataSubject change * Update migration.md * CqnSearchPredicate * Session Context Variables * Prohibit star-expand and inline-all (#1039) * Apply suggestions from code review Co-authored-by: Matthias Schur <[email protected]> * Remove warning * Update minimum versions in general docs * [3.0] IAS support in Remote Services and IAS migration guide (#1047) * ias scenarios * ias scenarios * ias scenarios * Apply suggestions from code review Co-authored-by: Marc Becker <[email protected]> * extract details to security.md * bullet point list * Update java/cqn-services/remote-services.md Co-authored-by: Marc Becker <[email protected]> * Update java/cqn-services/remote-services.md * Update java/cqn-services/remote-services.md * Update java/migration.md * Update java/security.md * Update java/security.md * Update java/security.md * Update java/security.md * Update java/security.md * fix syntax * added code block * fix formatting * cosmetics --------- Co-authored-by: Marc Becker <[email protected]> Co-authored-by: Mahati Shankar <[email protected]> Co-authored-by: Mahati Shankar <[email protected]> * Update java/migration.md Co-authored-by: Mahati Shankar <[email protected]> * added new default value of message service structured flag * changed default value in java messaging docs * fixed link * Update migration.md * Update java/migration.md * Update java/migration.md * Update java/migration.md * cosmetics --------- Co-authored-by: Markus Ofterdinger <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Adrian Görler <[email protected]> Co-authored-by: René Jeglinsky <[email protected]> Co-authored-by: Thomas Bonk <[email protected]> Co-authored-by: Matthias Schur <[email protected]> Co-authored-by: Stefan Henke <[email protected]> Co-authored-by: Vladimir <[email protected]> Co-authored-by: Mahati Shankar <[email protected]> Co-authored-by: Mahati Shankar <[email protected]> Co-authored-by: BraunMatthias <[email protected]> Co-authored-by: Thomas Bonk <[email protected]> * [3.x] cds-services-archetype improvements (#1013) * [3.x] cds-services-archetype improvements * Update building.md * Update building.md * Add link to SAP Hana Cloud system limits (#1078) * Add link to SAP Hana Cloud system limits * improve * removed outdated note * e.g. to for example (#1081) * switch from eg * edit * edit * docs(Java): Update link to GraalVM guide (#1082) * docs(Java): Update link to GraalVM guide The documentation was split into tutorials and concept documentation. * Update java/operating-applications/optimizing.md Co-authored-by: Marc Becker <[email protected]> --------- Co-authored-by: Marc Becker <[email protected]> * Update learning-sources.md (#1075) * Update learning-sources.md Linking Discovery centre missions of BTP Developer's Guide * Update get-started/learning-sources.md --------- Co-authored-by: René Jeglinsky <[email protected]> * chore(deps): update dependency cspell to v8.10.0 (#1084) * chore(deps): update dependency eslint-plugin-vue to v9.27.0 (#1080) * chore(deps): update dependency @sap/cds to v7.9.3 (#1071) * chore(deps): update dependency @sap/cds-mtxs to v1.18.2 (#1055) * chore(deps): update dependency com.sap.cds:cds-services-api to v2.10.2 (#1085) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @sap/cds-dk to v7.9.4 (#1040) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Steffen Waldmann <[email protected]> * typo * Clearer CDS/CDL (#1076) * edit synopsis * make introduction clearer * Update cds/index.md Co-authored-by: Christian Georgi <[email protected]> --------- Co-authored-by: Christian Georgi <[email protected]> * Fix link to `compile` options (#1086) * cosmetics * chore(deps): update dependency cspell to v8.10.4 (#1087) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency vitepress to v1.3.0 (#1088) * Avoid `cap>=ire` in the window title (#1089) This is hard to search for. * Remove abstract services example (#1090) * fix learn more link * feat: deep search is available for nodejs (#1091) feat: deep search is available with @cap-js/dbs * [cds^8]: remove deprecated api srv. stream (#998) remove deprecated api Co-authored-by: D070615 <[email protected]> Co-authored-by: René Jeglinsky <[email protected]> * [cds^8] telemetry plugin: remove beta flag (#1001) * Added section to describe how parts of the UI can be hidden based on user role (#940) * Update fiori.md * edits --------- Co-authored-by: Rene Jeglinsky <[email protected]> * SDM plugin menu (#1095) * Java: Fix bulk insert example (#1099) * Update many to many relation example (#1093) * Update many to many relation example Hi @renejeglinsky, while helping colleagues, I noticed that the many to many example is chosen poorly. The current example does not consider that this won't work with Fiori elements and I adjusted the sample + added a description for Fiori. BR, Marten * Update domain-modeling.md * Update domain-modeling.md * Update guides/domain-modeling.md Co-authored-by: Steffen Weinstock <[email protected]> * Update guides/domain-modeling.md * Update guides/domain-modeling.md --------- Co-authored-by: Steffen Weinstock <[email protected]> Co-authored-by: René Jeglinsky <[email protected]> * removed outdated link * WIP: .hdbcds to .hdbtable migration guide (#825) * Rough draft of guide * Remove part about calculated elements * Typo * Use temporal sample model + add @cds.valid.key * Bit better sample for doc comments * some changes * update * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Patrice Bender <[email protected]> * Rephrase section on associations ... hopefully increasing clarity * Update cds/compiler-hdbcds-to-hdbtable.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * rephrase section on doc comments * add a note * Update cds/compiler-hdbcds-to-hdbtable.md Co-authored-by: simonoswald <[email protected]> * Update cds/compiler-hdbcds-to-hdbtable.md Co-authored-by: René Jeglinsky <[email protected]> * Some modifications * adapt AI generated synopsis * made some notes to infor or warn blocks * Update cds/compiler-hdbcds-to-hdbtable.md Co-authored-by: simonoswald <[email protected]> * Update cds/compiler-hdbcds-to-hdbtable.md Co-authored-by: simonoswald <[email protected]> * first edit * consistent formatting for format vs file * edits * cosmetics * Do the TODOs * add note on migration guide * Update cds/compiler-hdbcds-to-hdbtable.md Co-authored-by: René Jeglinsky <[email protected]> * added detail box for error message * Update cds/compiler-hdbcds-to-hdbtable.md * update to frontmatter --------- Co-authored-by: Steffen Weinstock <[email protected]> Co-authored-by: Patrice Bender <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: René Jeglinsky <[email protected]> Co-authored-by: Mahati Shankar <[email protected]> * CAP Plugin: cap-js ord plugin (#1064) * adding ord plugin docs * Update index.md * Update plugins/index.md Co-authored-by: René Jeglinsky <[email protected]> * Update plugins/index.md Co-authored-by: René Jeglinsky <[email protected]> * Removing the gif till cds8 * minor changes * Update index.md * editing * moved --------- Co-authored-by: René Jeglinsky <[email protected]> * [cds^8] cds.middlewares.before (#1094) * [cds^8] cds.middlewares.before * rework cds.middlewares.before * Update node.js/cds-serve.md * Update node.js/cds-serve.md * Apply suggestions from code review --------- Co-authored-by: René Jeglinsky <[email protected]> * cds8: switch on garbage collection of stale drafts by default (#929) * cds8: switch on garbage collection of stale drafts by default * Update node.js/fiori.md --------- Co-authored-by: René Jeglinsky <[email protected]> * [cds^8] Node.js - rm legacy config for draft locks (#896) Node.js - rm dropped legacy config for draft locks * Destination caching is enabled by default (#1016) * Destination caching is enabled by default * Update guides/using-services.md Co-authored-by: René Jeglinsky <[email protected]> * Update guides/using-services.md Co-authored-by: Johannes Vogel <[email protected]> * Update guides/using-services.md --------- Co-authored-by: René Jeglinsky <[email protected]> Co-authored-by: Johannes Vogel <[email protected]> * ORD Plugin reorder (#1103) * reorder * Update menu.md --------- Co-authored-by: René Jeglinsky <[email protected]> * fix link * release page * Remove link to internal fragment for now * Fix element reference in CQN example on avoiding SQL injection (#1104) * Fix element reference in CQN example on avoiding SQL injection Pretty sure this should be `ID` not `title`, right? * Super minor lang fix As I have a PR open I may as well make a super minor fix too. * another minor fix colums -> columns * chore(deps): update dependency @sap/cds-compiler to v5 (#1101) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @sap/cds to v8 (#1106) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @sap/cds-dk to v8 (#1108) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @sap/cds-mtxs to v2 (#1107) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency sass to v1.77.8 (#1092) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency vitepress to v1.3.1 (#1109) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Move ORD plugin down, adjust screeshot * Adjust menu for SDM, ORD * Fix warnings from scss plugin * chore(deps): update dependency com.sap.cds:cds4j-api to v3 (#1110) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency com.sap.cds:cds-services-api to v3 (#1111) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Minor Fix in Java Remote Services Docs (#1113) Update remote-services.md * HEX mode is default (#1112) Co-authored-by: Mahati Shankar <[email protected]> * chore(deps): update dependency cspell to v8.11.0 (#1114) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Increase specificity for start page heading (#1116) * Align text centrally * Fix incorrect name for `cds add` API * Update CDS OData V2 Adapter (Node.js) (#1118) * Fix OData V2 adapter link * chore(deps): update dependency @sap/cds-dk to v8.0.3 (#1123) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @sap/cds to v8.0.4 (#1122) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @sap/cds-mtxs to v2.0.3 (#1121) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * ci: Always use latest @sap/cds-compiler for CDS snippet checker (#1124) * Minor fixes for hybrid testing documentation (#1127) * Fixes for cds bind * Update advanced/hybrid-testing.md Co-authored-by: Christian Georgi <[email protected]> --------- Co-authored-by: Christian Georgi <[email protected]> * Update documentation to point to right hana module for JS (#1133) * use correct hana module * update other references * Update in-a-nutshell.md (#1132) Fixed missleading text which doesn't fit to Java flavour * database functions: lowercase function names (#1128) * Add `direction` config option for mermaid * chore(deps): update dependency cspell to v8.12.1 (#1130) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Replace `-p` (unsupported) to `-4` to use the correct profile during `bind` (#1131) * Introduced Java 3.0 as new active version (#1136) * Set `add -p` as beta (#1140) * Fix property names in Java's Consuming Services guide (#1139) Property names have been adjusted in CAP Java 3.0 and not adjusted in this guide. * Java Weighted Search for HANA (#1138) * Java Weighted Search for HANA * Apply suggestions from code review Co-authored-by: Adrian Görler <[email protected]> * Update guides/providing-services.md Co-authored-by: Adrian Görler <[email protected]> --------- Co-authored-by: Adrian Görler <[email protected]> * cds: use "IsActiveEntity" in anno expressions (#1134) * cds: use "IsActiveEntity" in anno expressions * Update cdl.md --------- Co-authored-by: hjboth <[email protected]> * Timeout handling configuration for remote services (#1129) * Timeout handling configuration for remote services --------- Co-authored-by: Johannes Vogel <[email protected]> * Update observability.md (#1137) * Update observability.md * Update observability.md * Update observability.md * Removed outdated precondition from change-tracking.md (#1117) * Improve Indicating Errors docs (#1100) * Improve Indicating Errors docs Better explain how targets with SAP Fiori work. Addresses https://github.tools.sap/cap/issues/issues/16273 * Update indicating-errors.md * Update java/event-handlers/indicating-errors.md --------- Co-authored-by: Mahati Shankar <[email protected]> * Improvements of CAP Java 3.0 migration guide (#1119) * Minor improvements of CAP Java 3.0 migration guide * Fix property names * Improve POJO generation examples * Make tables smaller * Update java/migration.md --------- Co-authored-by: Mahati Shankar <[email protected]> * docs(Hello World): Simplify watch command for Java (#1067) It is way easier to remember `mvn cds:watch` inside `srv/` than it is to remember the whole plugin name. Let's make the Java guide as easy as the Node one! * docs(Java): Fix typos, format snippets, improve guides (#1072) * docs(Java): Fix typos, format snippets, improve guides * !lint * use cds add --------- Co-authored-by: Mahati Shankar <[email protected]> * chore(deps): update dependency com.sap.cds:cds-services-api to v3.0.1 (#1142) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * config `cds.server.body_parser.limit` (and `cds.server` config section) (#1141) * Fix closing parenthesis in code snippets * Add server config section for `cors`, `index` and `max_request_body_size` * Link to "Maximum Request Body Size" section in DOS section * Rename `max_request_body_size` -> `body_parser.limit` * Add links to CORS and index.html sections and improve wording * Rename built-in server -> server.js * Add code backticks to `server.js` to have consistent formatting * Remove Rene as code owner for now * chore(deps): update dependency @sap/cds-dk to v8.1.0 (#1147) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @sap/cds to v8.1.0 (#1145) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update Node.js download instructions (#1148) * Update Node.js download instructions The current instructions are ooutdated. The screenshot shows a page that no longer exists. * cosmetics --------- Co-authored-by: Mahati Shankar <[email protected]> Co-authored-by: Mahati Shankar <[email protected]> * Avoiding Transactions for Select (#1144) * Avoiding Transactions for Select * Apply suggestions from code review Co-authored-by: BraunMatthias <[email protected]> * Update java/event-handlers/changeset-contexts.md --------- Co-authored-by: BraunMatthias <[email protected]> * chore(deps): update dependency @sap/cds-compiler to v5.1.0 (#1146) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mahati Shankar <[email protected]> * chore(deps): update dependency com.sap.cds:cds4j-api to v3.1.0 (#1151) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency com.sap.cds:cds-services-api to v3.1.0 (#1152) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --------- Co-authored-by: Ziyang Li <[email protected]> Co-authored-by: Christian Georgi <[email protected]> Co-authored-by: Vladimir <[email protected]> Co-authored-by: Rene Jeglinsky <[email protected]> Co-authored-by: Markus Ofterdinger <[email protected]> Co-authored-by: Stefan Henke <[email protected]> Co-authored-by: Adrian Görler <[email protected]> Co-authored-by: hjboth <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Steffen Weinstock <[email protected]> Co-authored-by: Marc Becker <[email protected]> Co-authored-by: Steffen Waldmann <[email protected]> Co-authored-by: Matthias Schur <[email protected]> Co-authored-by: motaroberta <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian Georgi <[email protected]> Co-authored-by: Jörg Mann <[email protected]> Co-authored-by: Johannes Vogel <[email protected]> Co-authored-by: sjvans <[email protected]> Co-authored-by: Heiko Witteborg <[email protected]> Co-authored-by: ecklie <[email protected]> Co-authored-by: Andre Meyering <[email protected]> Co-authored-by: Dr. David A. Kunz <[email protected]> Co-authored-by: Arley Triana Morin <[email protected]> Co-authored-by: Daniel Hutzel <[email protected]> Co-authored-by: rashmiangadi11 <[email protected]> Co-authored-by: Lothar Bender <[email protected]> Co-authored-by: DJ Adams <[email protected]> Co-authored-by: Daniel O'Grady <[email protected]> Co-authored-by: mariayord <[email protected]> Co-authored-by: Markus Haug <[email protected]> Co-authored-by: Robin <[email protected]> Co-authored-by: BraunMatthias <[email protected]> Co-authored-by: Thomas Bonk <[email protected]> Co-authored-by: Thomas Bonk <[email protected]> Co-authored-by: Gopal Anand <[email protected]> Co-authored-by: Patrice Bender <[email protected]> Co-authored-by: Olena <[email protected]> Co-authored-by: D070615 <[email protected]> Co-authored-by: Marten Schiwek <[email protected]> Co-authored-by: simonoswald <[email protected]> Co-authored-by: RoshniNaveenaS <[email protected]> Co-authored-by: Matthias Kuhr <[email protected]> Co-authored-by: Oliver Klemenz <[email protected]> Co-authored-by: Samuel Brucksch <[email protected]> Co-authored-by: Preetam Kajal Rout <[email protected]> Co-authored-by: Marcel Schwarz <[email protected]>
1 parent f77e8f0 commit 187d08b

39 files changed

+531
-342
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# This files defines code ownership.
22

33
# General content
4-
* @renejeglinsky @smahati
4+
* @smahati
5+
## * @renejeglinsky
56

67
# Infra
78
.github/ @chgeo @swaldmann

.github/cds-snippet-checker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"check": "node check-cds-snippets.js"
1313
},
1414
"dependencies": {
15-
"@sap/cds-compiler": "^4.4"
15+
"@sap/cds-compiler": "latest"
1616
}
1717
}

.vitepress/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ if (!siteURL.pathname.endsWith('/')) siteURL.pathname += '/'
2323
const redirectLinks: Record<string, string> = {}
2424

2525
const latestVersions = {
26-
java_services: '3.0.0',
27-
java_cds4j: '3.0.0'
26+
java_services: '3.1.0',
27+
java_cds4j: '3.1.0'
2828
}
2929

3030
const localSearchOptions = {

about/features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Following is an index of the features currently covered by CAP, with status and
143143

144144
> <sup>1</sup> Export CDS models to ... <br>
145145
> <sup>2</sup> To support customers with existing OData V2 UIs<br>
146-
> <sup>3</sup> Through [V2 proxy](../advanced/odata#odata-v2-proxy-node) <br>
146+
> <sup>3</sup> Through [V2 proxy](../advanced/odata#odata-v2-adapter-node) <br>
147147
> <sup>4</sup> Could be a good case for 3rd-party contribution <br>
148148
> <sup>5</sup> For Node.js try out the [GraphQL Adapter](/plugins/#graphql-adapter) <br>
149149
> <sup>6</sup> For Java try out the provided [sample code](https://github.com/SAP-samples/cloud-cap-samples-java/commit/16dc5d9a1f103eb1336405ee601dc7004f70538f). <br>

about/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ Services in CAP are **stateless** and with a **minimal footprint**, which allows
311311

312312
<figure>
313313
<img src="../assets/agnostic-services.drawio.svg" width="333px">
314-
<figcaption><a href="#hexagonal-architecture">Hexagonal Architecture à la CAP</a></figcaption>
314+
<figcaption style="text-align: center"><a href="#hexagonal-architecture">Hexagonal Architecture à la CAP</a></figcaption>
315315
</figure>
316316

317317
<br><br>

advanced/hybrid-testing.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ Alternatively, you can bind to Kubernetes **Secrets**.
214214
You can use the `kubectl get secrets` command to list all secrets in your current Kubernetes context:
215215

216216
```log
217-
NAME TYPE DATA AGE
218-
bookshop-db Opaque 11 44h
217+
NAME TYPE DATA AGE
218+
bookshop-db Opaque 11 44h
219219
```
220220

221221
Use the secret name for the `-2` option.
@@ -324,12 +324,10 @@ cds bind --exec mvn spring-boot:run
324324
Instead of binding to specific cloud services, you can bind to all supported service bindings of an application running on the SAP BTP Cloud Foundry environment:
325325

326326
```sh
327+
cds bind -a bookshop-srv # ...or the spelled out way:
327328
cds bind --to-app-services bookshop-srv
328329
```
329-
330-
::: tip
331-
This shortcut is only possible if you don't need to provide a `service` or a `kind`.
332-
:::
330+
> This shortcut is only possible if you don't need to provide a `kind`.
333331
334332
## `cds bind` Usage { #cds-bind-usage}
335333

@@ -378,10 +376,7 @@ There is a handy shortcut to bind multiple services with one command:
378376
```sh
379377
cds bind -2 bookshop-db,bookshop-auth
380378
```
381-
382-
::: tip
383-
This shortcut is only possible if you don't need to provide a `service` or a `kind`.
384-
:::
379+
> This shortcut is only possible if you don't need to specify a `kind`.
385380
386381
### Overwrite Cloud Service Credentials { #overwriting-service-credentials}
387382

@@ -498,7 +493,7 @@ Learn how to do hybrid testing using the XSUAA service in the [CAP Node.js authe
498493
Configure your required bindings for testing and save them to your project's _package.json_ file for your tests' profile:
499494

500495
```sh
501-
cds bind -2 integration-test-hana -o package.json -p integration-test
496+
cds bind -2 integration-test-hana -o package.json -4 integration-test
502497
```
503498

504499
No credentials are saved!
@@ -531,6 +526,6 @@ With `CDS_ENV`, you specify the configuration profile for the test, where you pr
531526

532527
`cds env get requires` prints the `requires` section of the configuration as a JSON string. By adding the `--resolve-bindings` option, it includes the credentials of the service bindings from the cloud. To make the credentials available for all subsequent `cds` commands and the tests, the `requires` JSON string is put into the `cds_requires` variable.
533528

534-
::: tip
529+
::: tip Allow dynamic deploy targets
535530
Service bindings created by `cds bind` contain the Cloud Foundry API endpoint, org, and space. You can allow your services to connect to the currently targeted Cloud Foundry org and space by removing these properties from the binding structure.
536531
:::

advanced/odata.md

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,42 +1324,20 @@ Since singletons represent a one-element entity, a `POST` request is not suppor
13241324

13251325
While CAP defaults to OData V4, the latest protocol version, some projects need to fallback to OData V2, for example, to keep using existing V2-based UIs.
13261326

1327-
### Enabling OData V2 via Proxy in Node.js Apps { #odata-v2-proxy-node}
1327+
### Enabling OData V2 via CDS OData V2 Adapter in Node.js Apps { #odata-v2-adapter-node}
13281328

13291329
CAP Node.js supports serving the OData V2 protocol through the [_OData V2 adapter for CDS_](https://www.npmjs.com/package/@cap-js-community/odata-v2-adapter), which translates between the OData V2 and V4 protocols.
13301330

1331-
For Node.js projects, add the proxy as express.js middleware as follows:
1331+
For Node.js projects, add the CDS OData V2 adapter as express.js middleware as follows:
13321332

13331333
1. Add the adapter package to your project:
13341334

13351335
```sh
13361336
npm add @cap-js-community/odata-v2-adapter
13371337
```
13381338

1339-
2. Add this as a plugin to your project:
1340-
1341-
::: code-group
1342-
```json [package.json]
1343-
{...
1344-
"cds" : {
1345-
"cov2ap" : {
1346-
"plugin" : true
1347-
}
1348-
}
1349-
}
1350-
```
1351-
1352-
```json [.cdsrc.json]
1353-
{
1354-
"cov2ap" : {
1355-
"plugin" : true
1356-
}
1357-
}
1358-
```
1359-
:::
1360-
1361-
3. Access OData V2 services at [http://localhost:4004/v2/${path}](http://localhost:4004/v2).
1362-
4. Access OData V4 services at [http://localhost:4004/${path}](http://localhost:4004) (as before).
1339+
2. Access OData V2 services at [http://localhost:4004/odata/v2/${path}](http://localhost:4004/odata/v2).
1340+
3. Access OData V4 services at [http://localhost:4004/odata/v4/${path}](http://localhost:4004/odata/v4) (as before).
13631341

13641342
Example: Read service metadata for `CatalogService`:
13651343

@@ -1370,8 +1348,8 @@ Example: Read service metadata for `CatalogService`:
13701348
service CatalogService { ... }
13711349
```
13721350
1373-
- OData V2: `GET http://localhost:4004/v2/browse/$metadata`
1374-
- OData V4: `GET http://localhost:4004/browse/$metadata`
1351+
- OData V2: `GET http://localhost:4004/odata/v2/browse/$metadata`
1352+
- OData V4: `GET http://localhost:4004/odata/v4/browse/$metadata`
13751353
13761354
[Find detailed instructions at **@cap-js-community/odata-v2-adapter**.](https://www.npmjs.com/package/@cap-js-community/odata-v2-adapter){.learn-more}
13771355

cds/cdl.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,10 @@ Each path in the expression is checked:
11051105
* If the annotation is assigned to a subelement of a structured element, the top level
11061106
elements of the entity can be accessed via `$self`.
11071107
* A parameter `par` can be accessed via `:par`, just like parameters of a parametrized entity in queries.
1108-
* If a path cannot be resolved successfully, compilation fails with an error.
1108+
* The draft specific element `IsActiveEntity` can be referred to with the magic variable `$draft.IsActiveEntity`.
1109+
During draft augmentation `$draft.IsActiveEntity` is rewritten to `$self.IsActiveEntity` for all draft enabled
1110+
entities (root and sub nodes but not for named types or entity parameters).
1111+
* If a path can't be resolved successfully, compilation fails with an error.
11091112

11101113
In contrast to `@aReference: foo.bar`, a single reference written as expression `@aRefExpr: ( foo.bar )`
11111114
is checked by the compiler.
Binary file not shown.
Loading

0 commit comments

Comments
 (0)