From 679dc574d3eb8921dfd85ca95285c6cd35ab4441 Mon Sep 17 00:00:00 2001 From: D050513 Date: Mon, 11 Mar 2024 10:04:37 +0100 Subject: [PATCH] cds add local-multitenancy + alice is subscriber --- mtx/sidecar/package.json | 19 +++++++++++++++++++ package.json | 14 +++++++++++--- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 mtx/sidecar/package.json diff --git a/mtx/sidecar/package.json b/mtx/sidecar/package.json new file mode 100644 index 0000000..4132737 --- /dev/null +++ b/mtx/sidecar/package.json @@ -0,0 +1,19 @@ +{ + "name": "incidents-mtx", + "dependencies": { + "@sap/cds": "^7", + "@sap/cds-hana": "^2", + "@sap/cds-mtxs": "^1.9", + "@sap/xssec": "^3", + "express": "^4" + }, + "devDependencies": { + "@cap-js/sqlite": "^1" + }, + "scripts": { + "start": "cds-serve" + }, + "cds": { + "profile": "mtx-sidecar" + } +} diff --git a/package.json b/package.json index 4ec734d..9bb781f 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ }, "dependencies": { "@sap/cds": ">=7", + "@sap/cds-mtxs": "^1.9", "express": "^4" }, "devDependencies": { @@ -39,7 +40,9 @@ "reset": "read -p 'This will irreversibly reset your working directory including ALL files in this git repo. Continue?' -n 1 -r && echo && if [[ $REPLY =~ ^[Yy]$ ]]; then git clean -fd && git reset --hard && npm i; fi" }, "jest": { - "modulePathIgnorePatterns": ["/xmpls/"] + "modulePathIgnorePatterns": [ + "/xmpls/" + ] }, "sapux": [ "app/incidents" @@ -52,7 +55,8 @@ "alice": { "roles": [ "support", - "admin" + "admin", + "cds.Subscriber" ] }, "bob": { @@ -62,8 +66,12 @@ } } } + }, + "[local-multitenancy]": { + "multitenancy": true } - } + }, + "profile": "with-mtx-sidecar" }, "private": true }