Skip to content

Commit 5530628

Browse files
Rjegl08/switch sample links (#2054)
Co-authored-by: Mahati Shankar <93712176+smahati@users.noreply.github.com>
1 parent 6aae16e commit 5530628

21 files changed

+82
-82
lines changed

about/best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ This would extend the common reuse type `managed` obtained from `@sap/cds/common
773773

774774
As introduced in the section on [*Event Listeners*](#event-listeners) above, everyone can add event handlers to every service. Similar to aspect-oriented modeling, this allows to extend reuse services.
775775

776-
For example, assumed you're using a reuse package that provides a service to manage reviews, as show-cased in the [*cap/samples* *reviews*](https://github.com/sap-samples/cloud-cap-samples/tree/main/reviews) package. And whenever a new review is added you want to do something in addition. To accomplish this, simply add a respective event handler to the reuse service like so:
776+
For example, assuming you're using a reuse package that provides a service to manage reviews, as show-cased in the [*capire/reviews*](https://github.com/capire/reviews) package. And whenever a new review is added you want to do something in addition. To accomplish this, simply add a respective event handler to the reuse service like so:
777777

778778
```js
779779
const ReviewsService = await cds.connect.to('ReviewsService')

advanced/analytics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ No custom implementation is necessary.
7171

7272
In this document, we don't explain the CDI protocol, but explain what needs to be done
7373
in a CAP application to manually implement the required services. The examples are
74-
based on the master data entities of the [CAP SFlight Sample App](https://github.com/SAP-samples/cap-sflight).
74+
based on the master data entities of the [CAP SFlight Sample App](https://github.com/capire/xtravels).
7575

7676
Note: delta handling isn't supported.
7777

advanced/fiori.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ The SAP Fiori tools provide advanced support for [adding SAP Fiori apps](https:/
7777
Use `cds add sample` to add Fiori sample code to an existing project, or create a new one with `cds init <project> --add sample`.
7878

7979

80-
### From [cap/samples](https://github.com/sap-samples/cloud-cap-samples)
80+
### From [Capire Samples](https://github.com/capire)
8181

82-
For example, you can copy the [SAP Fiori apps from cap/samples](https://github.com/sap-samples/cloud-cap-samples/tree/main/bookstore/app) as a template and modify the content as appropriate.
82+
For example, you can copy the [SAP Fiori apps from capire/bookshop](https://github.com/capire/bookstore/tree/main/app) as a template and modify the content as appropriate.
8383

8484

8585
### From [Incidents Sample](https://github.com/SAP-samples/fiori-elements-incident-management/tree/sampleSolution)
@@ -113,7 +113,7 @@ annotate CatalogService.Books with @(
113113
```
114114

115115

116-
[Find this source and many more in **cap/samples**.](https://github.com/sap-samples/cloud-cap-samples/tree/main/bookstore/app){.learn-more target="_blank"}
116+
[Find this source and many more in **capire/bookstore**.](https://github.com/capire/bookstore/tree/main/app){.learn-more target="_blank"}
117117
[Learn more about **OData Annotations in CDS**.](./odata#annotations){.learn-more}
118118

119119

@@ -134,7 +134,7 @@ While CDS in principle allows you to add such annotations everywhere in your mod
134134
...
135135
```
136136

137-
[See this also in **cap/samples/fiori**.](https://github.com/SAP-samples/cloud-cap-samples/blob/main/bookstore/app/services.cds){.learn-more}
137+
[See this also in **capire/bookstore**.](https://github.com/capire/bookstore/blob/main/app/services.cds){.learn-more}
138138

139139
**Reasoning:** This recommendation essentially follows the best practices and guiding principles of [Conceptual Modeling](../guides/domain-modeling#domain-driven-design) and [Separation of Concerns](../guides/domain-modeling#separation-of-concerns).
140140

@@ -388,7 +388,7 @@ SAP Fiori supports edit sessions with draft states stored on the server, so user
388388

389389
[For details and guidelines, see **SAP Fiori Design Guidelines for Draft**.](https://experience.sap.com/fiori-design-web/draft-handling/){.learn-more}
390390

391-
[Find a working end-to-end version in **cap/samples/fiori**.](https://github.com/sap-samples/cloud-cap-samples/tree/main/fiori){.learn-more}
391+
[Find a working end-to-end version in **capire/bookstore**.](https://github.com/capire/bookstore/tree/main/app){.learn-more}
392392

393393
[For details about the draft flow in SAP Fiori elements, see **SAP Fiori elements > Draft Handling**](https://ui5.sap.com/#/topic/ed9aa41c563a44b18701529c8327db4d){.learn-more}
394394

@@ -401,7 +401,7 @@ To enable draft for an entity exposed by a service, simply annotate it with `@od
401401
annotate AdminService.Books with @odata.draft.enabled;
402402
```
403403

404-
[See it live in **cap/samples**.](https://github.com/SAP-samples/cloud-cap-samples/blob/main/bookstore/app/admin-books/fiori-service.cds#L94){.learn-more}
404+
[See it live in **capire/bookstore**.](https://github.com/capire/bookstore/blob/main/app/admin-books/fiori-service.cds#L79){.learn-more}
405405

406406
::: warning
407407
You can't project from draft-enabled entities, as annotations are propagated. Either _enable_ the draft for the projection and not the original entity or _disable_ the draft on the projection using `@odata.draft.enabled: null`.
@@ -429,9 +429,9 @@ Adding the annotation `@fiori.draft.enabled` won't work if the corresponding `_t
429429

430430
![An SAP Fiori UI showing how a book is edited in the bookshop sample and that the translations tab is used for non-standard languages.](../assets/draft-for-localized-data.png){style="margin:0"}
431431

432-
[See it live in **cap/samples**.](https://github.com/SAP-samples/cloud-cap-samples/blob/main/bookstore/app/admin-books/fiori-service.cds#L93){.learn-more}
432+
[See it live in **capire/bookstore**.](https://github.com/capire/bookstore/blob/main/app/admin-books/fiori-service.cds#L78){.learn-more}
433433

434-
If you're editing data in multiple languages, the _General_ tab in the example above is reserved for the default language (often "en"). Any change to other languages has to be done in the _Translations_ tab, where a corresponding language can be chosen [from a drop-down menu](https://github.com/SAP-samples/cloud-cap-samples/blob/main/bookstore/app/admin-books/fiori-service.cds#L116) as illustrated above. This also applies if you use the URL parameter `sap-language` on the draft page.
434+
If you're editing data in multiple languages, the _General_ tab in the example above is reserved for the default language (often "en"). Any change to other languages has to be done in the _Translations_ tab, where a corresponding language can be chosen [from a drop-down menu](https://github.com/capire/bookstore/blob/main/app/admin-books/fiori-service.cds#L104) as illustrated above. This also applies if you use the URL parameter `sap-language` on the draft page.
435435

436436
### Draft Choreography: How Draft Editing Works
437437

@@ -622,7 +622,7 @@ entity Books { //...
622622
}
623623
```
624624

625-
[Find this also in our **cap/samples**.](https://github.com/sap-samples/cloud-cap-samples/tree/main/bookshop/db/schema.cds){.learn-more}
625+
[Find this also in our **capire/bookstore**.](https://github.com/capire/bookshop/blob/main/db/schema.cds){.learn-more}
626626

627627
Still, all SAP Fiori UIs, on all services exposing `Books`, will automatically receive Value Help for currencies. You can also benefit from that when [deriving your project-specific code list entities from **sap.common.CodeList**](../cds/common#adding-own-code-lists).
628628

get-started/in-a-nutshell.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ After you completed the [*Initial Setup*](./), you jumpstart a project as follow
110110

111111
:::
112112

113-
114-
115-
116113
## Capture Domain Models
117114

118115

@@ -399,7 +396,6 @@ cds add data --records 10
399396
[Find the full set of options here.](../tools/cds-cli.md#data){.learn-more}
400397
:::
401398

402-
403399
<span class="impl node">
404400

405401
After you've added these files, `cds watch` restarts the server with output, telling us that the files have been detected and their content has been loaded into the database automatically:

get-started/learning-sources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ A reference sample application for CAP and the SAP BTP Developer Guide.
117117
### CAP SFlight {.github}
118118

119119
> [![]()](https://github.com/sap-samples/cap-sflight){.java}
120-
> [![]()](https://github.com/sap-samples/cap-sflight){.node}
120+
> [![]()](https://github.com/capire/xtravels){.node}
121121
122122
This sample is a CAP adaptation of the popular [SFLIGHT](https://blog.sap-press.com/what-is-sflight-and-the-flight-and-booking-data-model-for-abap) sample app in ABAP. It's a great source for how to add SAP **Fiori** applications to a CAP project, including adding UI test suites on various stacks.
123123

guides/databases-hana.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The datasource for SAP HANA is then auto-configured based on available service b
5858

5959
## Running `cds build`
6060

61-
Deployment to SAP HANA is done via the [SAP HANA Deployment Infrastructure (HDI)](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-developer-guide-for-cloud-foundry-multitarget-applications-sap-business-app-studio/sap-hdi-deployer?) which in turn requires running `cds build` to generate all the deployable HDI artifacts. For example, run this in [cap/samples/bookshop](https://github.com/SAP-samples/cloud-cap-samples/tree/main/bookshop):
61+
Deployment to SAP HANA is done via the [SAP HANA Deployment Infrastructure (HDI)](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-developer-guide-for-cloud-foundry-multitarget-applications-sap-business-app-studio/sap-hdi-deployer?) which in turn requires running `cds build` to generate all the deployable HDI artifacts. For example, run this in [capire/bookshop](https://github.com/capire/bookshop):
6262

6363
```sh
6464
cds build --for hana

guides/databases-postgres.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ You can use `cds deploy` with option `--dry` to simulate and inspect how things
420420
cds deploy --dry --model-only --out cds-model.csn
421421
```
422422

423-
2. Change your models, for example in *[cap/samples/bookshop/db/schema.cds](https://github.com/SAP-samples/cloud-cap-samples/blob/main/bookshop/db/schema.cds)*:
423+
2. Change your models, for example in *[capire/bookshop/db/schema.cds](https://github.com/capire/bookshop/blob/main/db/schema.cds)*:
424424

425425
```cds
426426
entity Books { ...

guides/databases-sqlite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ The rules regarding Timestamps apply to all comparison operators: `=`, `<`, `>`,
492492

493493
### Improved Performance {.node}
494494

495-
The combination of the above-mentioned improvements commonly leads to significant performance improvements. For example, displaying the list page of Travels in [cap/sflight](https://github.com/SAP-samples/cap-sflight) took **>250ms** in the past, and **~15ms** now.
495+
The combination of the above-mentioned improvements commonly leads to significant performance improvements. For example, displaying the list page of Travels in [capire/xtravels](https://github.com/capire/xtravels) took **>250ms** in the past, and **~15ms** now.
496496

497497

498498

guides/databases.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ You can use CSV files to fill your database with initial data - see [Location of
166166
167167
<div class="impl node">
168168
169-
For example, in our [*cap/samples/bookshop*](https://github.com/SAP-samples/cloud-cap-samples/tree/main/bookshop/db/data) application, we do so for *Books*, *Authors*, and *Genres* as follows:
169+
For example, in our [*capire/bookshop*](https://github.com/capire/bookshop/tree/main/db/data) application, we do so for *Books*, *Authors*, and *Genres* as follows:
170170
171171
```zsh
172172
bookshop/
@@ -427,7 +427,7 @@ When you've created a CAP Java application with `cds init --java` or with CAP Ja
427427
### Using `cds compile`
428428
429429
430-
For example, given these CDS models (derived from [*cap/samples/bookshop*](https://github.com/SAP-samples/cloud-cap-samples/tree/main/bookshop)):
430+
For example, given these CDS models (derived from [*capire/bookshop*](https://github.com/capire/bookshop)):
431431
432432
::: code-group
433433
@@ -1191,5 +1191,4 @@ Once you have 2 non-HANA local databases, you need to have 2 distinct database c
11911191
11921192
</div>
11931193
1194-
CAP samples demonstrate this in [cap/samples/fiori](https://github.com/SAP-samples/cloud-cap-samples/commit/65c8c82f745e0097fab6ca8164a2ede8400da803). <br>
1195-
There's also a [code tour](https://github.com/SAP-samples/cloud-cap-samples#code-tours) available for that.
1194+
CAP samples demonstrate this in [cap/samples/fiori](https://github.com/SAP-samples/cloud-cap-samples/commit/65c8c82f745e0097fab6ca8164a2ede8400da803).

guides/deployment/to-cf.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ cd bookshop
4242

4343
::: details Alternatively, download or clone the sample repository
4444

45-
Exercise the following steps in the `bookshop` subfolder of the [`cloud-cap-samples`](https://github.com/sap-samples/cloud-cap-samples) repo:
45+
Exercise the following steps in the `bookshop` sample of the [`capire`](https://github.com/sap-samples/cloud-cap-samples) org:
4646

4747
```sh
48-
git clone https://github.com/sap-samples/cloud-cap-samples samples
49-
cd samples/bookshop
48+
git clone https://github.com/capire/bookshop
49+
cd bookshop
5050
```
5151

5252
:::

0 commit comments

Comments
 (0)