Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
renejeglinsky committed Jun 3, 2024
1 parent c6f6d70 commit 651692f
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions cds/assets/csn.drawio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion cds/cdl.md
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ extend Books:price.value with (precision:12,scale:3);
```
The extended type or element directly must have the respective property.

For multiple conflicting `extend` statements, the last `extend` wins, i.e. in three files `a.cds <- b.cds <- c.cds`, where `<-` means `using from`,
For multiple conflicting `extend` statements, the last `extend` wins, that means in three files `a.cds <- b.cds <- c.cds`, where `<-` means `using from`,
the `extend` from `c.cds` is applied, as it is the last in the dependency chain.


Expand Down
2 changes: 1 addition & 1 deletion cds/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ status: released
Language Reference Documentation
{ .subtitle}

CDS is the backbone of the SAP Cloud Application Programming Model (CAP). It provides the means to declaratively capture service definitions and data models, queries, and expressions in plain (JavaScript) object notations. CDS features to parse from a variety of source languages and to compile them into various target languages.
CDL is the backbone of the SAP Cloud Application Programming Model (CAP). It provides the means to declaratively capture service definitions and data models, queries, and expressions in plain (JavaScript) object notations. CDL features to parse from a variety of source languages and to compile them into various target languages. Though the language used within `.cds` files is CDL, we usually use the terms _CDS_ or _CDS Models_ as synonyms to keep it simple where we don't need to care about technical details too much.

<img src="./assets/csn.drawio.svg" alt="The graphic is explained in the accompanying text."/>

Expand Down
2 changes: 1 addition & 1 deletion get-started/in-a-nutshell.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ Open _<http://localhost:4004>_ / _<http://localhost:8080>_ in your browser and s
As [previously shown](#deployed-in-memory), `cds watch` automatically bootstraps an SQLite in-process and in-memory database by default — that is, unless told otherwise. While this **isn't meant for productive use**, it drastically speeds up development turn-around times, essentially by mocking your target database, for example, SAP HANA. {.impl .node}
[Learn more about mocking options in **Grow as you go**.](./grow-as-you-go){.learn-more .impl .node}
[Learn more about mocking options in **Jumpstart Development**.](./jumpstart){.learn-more .impl .node}
### H2 In-Memory {.impl .java}
Expand Down
2 changes: 1 addition & 1 deletion get-started/learning-sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ status: released

# Learning Sources

In here, we collected several interesting learning resources for you. Not all of them are maintained by the CAP team, not all of them cover CAP in its entirety, but they are well prepared sources we can recommend for your learning. From the short description we provide for every resource, you're hopefully able to tell if that fits to the need you're currently having.
In here, we collected several interesting learning resources for you. Not all of them are maintained by the CAP team, not all of them cover CAP in its entirety, but they are well prepared sources we can recommend for your learning.

::: tip Contributions Welcome...
We're just getting started with this page. Please help us in that endeavour by [adding/proposing resources](https://github.com/cap-js/docs/pulls) that helped you and also to improve the descriptions. Just press <kbd>e</kbd> to start making your contribution.
Expand Down
2 changes: 1 addition & 1 deletion guides/data-privacy/audit-logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ A more comprehensive guide, incl. tutorials, is currently under development.

<span id="audit-logging-in-saas" />

For deployment in general, please follow the [deployment guide](../deployment/). Check the rest of this guide before actually triggering the deployment (i.e., executing `cf deploy`).
For deployment in general, please follow the [deployment guide](../deployment/). Check the rest of this guide before actually triggering the deployment (that is, executing `cf deploy`).

Here is what you need to do additionally, to integrate with SAP Audit Log Service:

Expand Down
2 changes: 1 addition & 1 deletion guides/querying.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ breadcrumbs:

## Overview — Why Querying?

We all know querying from SQL databases: we use queries to express which data we're interested in, by applying *selection*i.e., filtering the *rows* to fetch data for —, and *projection* — choosing data attributes. The database engine interprets the query and calculates an optimized execution plan, to collect and return the requested data.
We all know querying from SQL databases: we use queries to express which data we're interested in, by applying *selection*that is, filtering the *rows* to fetch data for —, and *projection* — choosing data attributes. The database engine interprets the query and calculates an optimized execution plan, to collect and return the requested data.

### Example Using Querying

Expand Down
4 changes: 2 additions & 2 deletions guides/security/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ It can be deployed as application (reusable module) or alternatively consumed as

- The optional CAP sidecar (reusable module) is used to outsource application-independent tasks such as providing multitenancy and extension support.

Application providers, i.e. platform users, have privileged access to the application zone.
In contrast, application subscribers, i.e. business users, are restricted to a minimal interface.
Application providers, that is platform users, have privileged access to the application zone.
In contrast, application subscribers, that is business users, are restricted to a minimal interface.

::: warning
❗ Application providers **may not share any secrets from the application zone** such as binding information with other components or persons.
Expand Down
4 changes: 2 additions & 2 deletions node.js/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ this.before('*', function (req) {
})
```
Alternatively, you can also use the ready-to-use instance `cds.User.privileged` directly, i.e., `const user = cds.User.privileged`.
Alternatively, you can also use the ready-to-use instance `cds.User.privileged` directly, that is, `const user = cds.User.privileged`.
## cds.**User.Anonymous** { #anonymous-user .class }
Class `cds.User.Anonymous` allows you to instantiate an anonymous user (`const user = new cds.User.Anonymous`), for example in a [custom authentication](#custom) implementation.
Alternatively, you can also use the ready-to-use instance `cds.User.anonymous` directly, i.e., `const user = cds.User.anonymous`.
Alternatively, you can also use the ready-to-use instance `cds.User.anonymous` directly, that is, `const user = cds.User.anonymous`.
## cds.**User.default** { #default-user .property }
Expand Down
2 changes: 1 addition & 1 deletion node.js/cds-reflect.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ class cds.struct extends cds.type {...}
### . is_struct {.property}

A tag property which is `true` for linked struct definitions (types and elements). <br>
It is also `true` for linked entity definitions, i.e., instances of as [`cds.entity`](#cds-entity). {.indent}
It is also `true` for linked entity definitions, that is, instances of as [`cds.entity`](#cds-entity). {.indent}

### . elements {.property}

Expand Down
4 changes: 2 additions & 2 deletions node.js/cds-tx.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ This usage variant, which accepts a function with nested operations ...
<br>

::: tip
**Only in non-managed environments** — as said above: you don't need to care for that if you are in a managed environment, i.e., when implementing an event handler. In that case, the core service runtime automatically created a transaction for you already.
**Only in non-managed environments** — as said above: you don't need to care for that if you are in a managed environment, that is, when implementing an event handler. In that case, the core service runtime automatically created a transaction for you already.
:::

::: warning _❗ Warning_ <!-- -->
Expand Down Expand Up @@ -307,7 +307,7 @@ tx = Object.create (srv, Object.getOwnPropertyDescriptors({

In effect, `tx` objects ...

* are concrete context-specific — i.e. tenant-specific — incarnations of `srv`es
* are concrete context-specific — that is tenant-specific — incarnations of `srv`es
* support all the [Service API](core-services) methods like `run`, `create` and `read`
* support methods `tx.commit` and `tx.rollback` as documented below.

Expand Down
4 changes: 2 additions & 2 deletions node.js/core-services.md
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ this.on ('error', (err, req) => {
})
```

Error handlers are invoked whenever an error occurs during event processing of *all* potential events and requests, and are used to augment or modify error messages, before they go out to clients. They are expected to be a sync function, i.e., **not `async`**, not returning Promises.
Error handlers are invoked whenever an error occurs during event processing of *all* potential events and requests, and are used to augment or modify error messages, before they go out to clients. They are expected to be a sync function, that is, **not `async`**, not returning Promises.



Expand Down Expand Up @@ -1046,7 +1046,7 @@ All matching `.before`, `.on`, and `.after` handlers are executed in correspondi
- ***concurrently*** for instances of `cds.Event`
- **`after`** handlers are always executed *concurrently*

In effect, for asynchronous event messages, i.e., instances of `cds.Event`, sent via [`srv.emit()`](#srv-emit-event), all registered `.on` handlers are always executed. In contrast to that, for synchronous resuests, i.e., instances of `cds.Requests` this is up to the individual handlers calling `next()`. See [`srv.on(request)`](#interceptor-stack-with-next) for an example.
In effect, for asynchronous event messages, that is, instances of `cds.Event`, sent via [`srv.emit()`](#srv-emit-event), all registered `.on` handlers are always executed. In contrast to that, for synchronous resuests, that is, instances of `cds.Requests` this is up to the individual handlers calling `next()`. See [`srv.on(request)`](#interceptor-stack-with-next) for an example.


<!-- ## Streaming API {#srv-stream } -->
Expand Down
4 changes: 2 additions & 2 deletions node.js/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ As an application developer you'd primarily use the Node.js APIs documented here
2. Add service implementations &rarr; [`cds.Service` > Implementations](./core-services#implementing-services)
3. Register custom event handlers in which &rarr; [`srv.on`/`before`/`after`](./core-services#srv-on-before-after)
4. Read/write data from other services in which &rarr; [`srv.run`](./core-services#srv-run-query) + [`cds.ql`](./cds-ql)
5. ..., i.e. from your primary database &rarr; [`cds.DatabaseService`](./databases)
5. ..., i.e. from other connected services &rarr; [`cds.RemoteService`](./remote-services)
5. ..., that is from your primary database &rarr; [`cds.DatabaseService`](./databases)
5. ..., that is from other connected services &rarr; [`cds.RemoteService`](./remote-services)
6. Emit and handle asynchronous events &rarr; [`cds.MessagingService`](./messaging)

All the rest is largely handled by the CAP runtime framework behind the scenes.
Expand Down
6 changes: 3 additions & 3 deletions tools/cds-editors.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ Default: *ActiveEditorOnly*

Keeps track of the active editor in focus. Only changes there are immediately validated.

The *ActiveEditorOnly* mode is especially useful in situations when navigating through a large model, that is having multiple files open (even if they are not shown as tabs)
The *ActiveEditorOnly* mode is especially useful in situations when navigating through a large model, that is, having multiple files open (even if they are not shown as tabs)
and editing a file that the others directly or indirectly depend on.

::: warning Large models can lead to **high CPU and memory load**
Expand All @@ -235,7 +235,7 @@ The high resource consumption might impact the editor's responsiveness.

Default: *on*

This setting enables extended support for annotations, that is refined diagnostics and code completion. Can be switched *off* for performance gains.
This setting enables extended support for annotations, that is, refined diagnostics and code completion. Can be switched *off* for performance gains.

##### Cds > Workspace: ScanCsn

Expand Down Expand Up @@ -335,7 +335,7 @@ To enable the limit value above, switch *on*.
- Commands _Go to References_ / _Find All References_ will recompile all models that might have changed due to a change in a depending model. If there are index models, it often means that the complete workspace is being recompiled.
Until a further change, reference calculation is reasonably fast.
- Command _Go to Symbol in Workspace_ will recompile the complete workspace once, after that it is reasonable fast.
- Changing settings in _CDS_ section will currently perform a complete workspace invalidation i.e. required indexes will lead to recompilations on demand as described above.
- Changing settings in _CDS_ section will currently perform a complete workspace invalidation, that is, required indexes will lead to recompilations on demand as described above.
- Changing certain `cds.env` settings, for example folder configurations, will invalidate the workspace as well.

### CDS Source Formatter <Beta /> { #cds-formatter}
Expand Down

0 comments on commit 651692f

Please sign in to comment.