Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

November Release 2023-11-20 #548

Merged
merged 49 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
507cda4
Update performance-modeling.md (#513)
nkaputnik Nov 6, 2023
9832ede
Update dependency com.sap.cds:cds4j-api to v2.3.1 (#517)
renovate[bot] Nov 6, 2023
a0cfda6
linking
renejeglinsky Nov 6, 2023
10be319
Merge branch 'main' of https://github.com/cap-js/docs
renejeglinsky Nov 6, 2023
86b0443
linking
renejeglinsky Nov 6, 2023
014b04b
Removed numbers
danjoa Nov 6, 2023
e7f8a3f
fix links
renejeglinsky Nov 6, 2023
44166c3
Merge branch 'main' of https://github.com/cap-js/docs
renejeglinsky Nov 6, 2023
bc556dd
Fix: Fenced code block json to js (#503)
MatthiasAtSAP Nov 7, 2023
c246fde
Correct default cardinality for a managed composition of aspect (#502)
hjboth Nov 7, 2023
5a87bc0
switch to config.activate.on-profile: (#522)
renejeglinsky Nov 7, 2023
8605c90
Getting Started cosmetics
danjoa Nov 7, 2023
13585d9
Update dependency com.sap.cds:cds-services-api to v2.3.1 (#519)
renovate[bot] Nov 7, 2023
aa58095
Explain how to handle /$count requests in CAP Java custom ON handlers…
beckermarc Nov 8, 2023
8c53bcb
improve docs re tx in req listener (#505)
sjvans Nov 8, 2023
7eb5530
Anchor ID for complicated title
chgeo Nov 8, 2023
18b7de5
Fix link
chgeo Nov 8, 2023
2fd74e8
Bump to Vitepress RC 25
chgeo Nov 8, 2023
93c03d9
5 -> 6 (#529)
sjvans Nov 9, 2023
2c7c4e8
Add content to learning page (#533)
renejeglinsky Nov 9, 2023
97eab28
switch/update uaa to auth (#523)
renejeglinsky Nov 9, 2023
f8bce31
cds.spawn: Make it clearer that the context is inherited (#512)
PierreFritsch Nov 9, 2023
084fddb
outbox: move to top level, make transactional outbox default (#527)
David-Kunz Nov 9, 2023
b13b2b1
add: document SELECT.elements (#532)
johannes-vogel Nov 9, 2023
25f59ca
fix anchor
renejeglinsky Nov 10, 2023
dae6d68
documentation for systemUser methods in Request Context (#494)
StefanHenke Nov 10, 2023
00fce94
Update request-contexts.md
renejeglinsky Nov 10, 2023
51223cb
Move old MTX troubleshooting items
swaldmann Nov 13, 2023
f357a67
added teched session
renejeglinsky Nov 13, 2023
b0001cc
Merge branch 'main' of https://github.com/cap-js/docs
renejeglinsky Nov 13, 2023
715e6ee
Better styling for `cds-plugins` (#538)
swaldmann Nov 13, 2023
9e5b7ce
Simplify troubleshooting guide (#537)
swaldmann Nov 13, 2023
43519ec
added redirect
renejeglinsky Nov 14, 2023
6573d42
Merge branch 'main' of https://github.com/cap-js/docs
renejeglinsky Nov 14, 2023
c2cf5bf
chore(deps): update cap java sdk to v2.4.0 (#540)
renovate[bot] Nov 14, 2023
ef7b8ef
Update Remote Services Docs with Recent Cloud SDK Improvements (#534)
MatKuhr Nov 14, 2023
2b6f89a
Java typed entity refs (#542)
MattSchur Nov 14, 2023
acef96a
Java: Config for SAP HANA HEX Engine (#526)
agoerler Nov 14, 2023
cea3a29
Java Runtime Views (#541)
MattSchur Nov 14, 2023
7d355c2
mark as beta
renejeglinsky Nov 15, 2023
a294f10
Typo (#544)
nicoschoenteich Nov 15, 2023
ef661b0
no empty sections
renejeglinsky Nov 15, 2023
a240079
Merge branch 'main' of https://github.com/cap-js/docs
renejeglinsky Nov 15, 2023
796a050
Java: remove system user, user should not exist (#547)
renejeglinsky Nov 17, 2023
830b41c
add fragment
renejeglinsky Nov 17, 2023
8b7ac37
Merge branch 'main' of https://github.com/cap-js/docs
renejeglinsky Nov 17, 2023
cc5b758
Added a few more Learning sources
danjoa Nov 17, 2023
09b5efd
Describe Actions / Functions in service POJOs (#539)
mofterdinger Nov 20, 2023
6429e43
Update learning-sources.md
renejeglinsky Nov 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ if (!siteURL.pathname.endsWith('/')) siteURL.pathname += '/'
const redirectLinks: Record<string, string> = {}

const latestVersions = {
java_services: '2.3.0',
java_cds4j: '2.3.0'
java_services: '2.4.0',
java_cds4j: '2.4.0'
}

const localSearchOptions = {
Expand Down
4 changes: 2 additions & 2 deletions about/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ Following is an index of the features currently covered by CAP, with status and

| CLI commands | |
|---------------------------------------------------------------------------------|----------------------------|
| [Jump-start cds-based projects](../get-started/in-a-nutshell#start-a-project) | `cds init <project>` |
| [Jump-start cds-based projects](../get-started/in-a-nutshell#jumpstart) | `cds init <project>` |
| Add a feature to an existing project | `cds add <facets>` |
| [Add models from external sources](../guides/using-services#local-mocking) | `cds import <api>` |
| [Compile cds models to different outputs](../node.js/cds-compile) | `cds compile <models>` |
| [Run your services in local server](../node.js/cds-serve) | `cds serve <services>` |
| [Run and restart on file changes](../get-started/in-a-nutshell#start-a-project) | `cds watch` |
| [Run and restart on file changes](../get-started/in-a-nutshell#jumpstart) | `cds watch` |
| [Read-eval-event loop](../node.js/cds-env#cli) <!-- TODO --> | `cds repl` |
| Inspect effective configuration | `cds env` |
| Prepare for deployment | `cds build` |
Expand Down
4 changes: 2 additions & 2 deletions advanced/hybrid-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cds bind -2 my-hana:my-hana-key
Binds your local CAP application to the service key `my-hana-key` of the service instance `my-hana`, using your currently targeted Cloud Foundry space. The service instance `my-hana` is a _managed_ service.
cds bind also supports Cloud Foundry _user-provided_ services.

[Got errors? See our troubleshooting for connection issues with SAP HANA Cloud.](../get-started/troubleshooting#deployment-fails-—-connection-failed-rte-89008-socket-closed-by-peer){.learn-more}
[Got errors? See our troubleshooting for connection issues with SAP HANA Cloud.](../get-started/troubleshooting#connection-failed-89008){.learn-more}
[Learn how to bind to user-provided services on Cloud Foundry.](#binding-user-provided-services){.learn-more}

Output:
Expand Down Expand Up @@ -222,7 +222,7 @@ cds env get requires.db.credentials --profile hybrid --resolve-bindings

Example output:

```json
```js
{
url: 'jdbc:sap://BDB9AC0F20CB46B494E6742047C4F99A.hana.eu10.hanacloud.ondemand.com:443?encrypt=true&validateCertificate=true&currentschema=BDB9AC0F20CB46B494E6742047C4F99A',
host: 'bdb9ac0f20cb46b494e6742047c4f99a.hana.eu10.hanacloud.ondemand.com',
Expand Down
34 changes: 7 additions & 27 deletions advanced/performance-modeling.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ Typical examples of calculated fields are:
The following steps show you which option takes precedence over another. Use options one/two as the preferred way and three/four as fallback.

1. Do the calculation on the UI with help of field controls or dedicated custom controls. This applies to all kinds of **String concatenation** and **Formatting**.
2. Pre-calculate on *write* with help of an event handler.
3. Some Calculated Fields are dynamic in nature. Do those calculations on the database layer. For example _kanban_ (scheduling system for lean manufacturing), there you typically have dynamic live calculations.
2. Pre-calculate using CDS [on write](../cds/cdl#on-write) calculated fields.
3. Some calculations are dynamic in nature. If possible, use CDS [on read](../cds/cdl#on-read) calculated fields.
4. As a **very last resort**, use event handlers on *read*.

Hints:
Expand Down Expand Up @@ -312,35 +312,15 @@ entity OrdersItemsView as projection on OrdersItems {
::: code-group
```cds [schema.cds]
extend my.OrdersItems with {
itemCategory: String enum{ Small; Medium; Large;};
// fill itemCategory at runtime in service.js
category: String = case
when quantity > 500 then 'Large'
when quantity > 100 then 'Medium'
else 'Small'
end stored;
}
```
:::

::: code-group
```js [service.js]
...
// fill itemCategory at runtime
this.before (['CREATE', 'UPDATE'], 'my.OrdersItems', async req => {
if (req.data.quantity > 500) {req.data.itemCategory = 'Large'}
else if (req.data.quantity > 100) {req.data.itemCategory = 'Medium'}
else {req.data.itemCategory = 'Small'}
})
...
```
:::

New `OrdersItemsView` without case statement:

::: code-group
```cds [service.cds]
entity OrdersItemsView as projection on OrdersItems {
*,
itemCategory as category
};
```
:::

## Compositions vs Associations
From the performance perspective there are some cases, where you have to check out carefully if the general semantic rules of compositions vs associations should be applied.
Expand Down
2 changes: 1 addition & 1 deletion cds/cdl.md
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ aspect OrderItems {

#### Default Target Cardinality

If not otherwise specified, a managed composition of an aspect has the default target cardinality *to many*.
If not otherwise specified, a managed composition of an aspect has the default target cardinality *to-one*.

#### For Many-to-many Relationships

Expand Down
272 changes: 0 additions & 272 deletions get-started/-using-mock-servers.md

This file was deleted.

Loading