-
Notifications
You must be signed in to change notification settings - Fork 142
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
Improvement suggestions #395
Conversation
Adds org.apache.commons:commons-collections4:4.4 as dependency. The dependency is needed for com.sap.cds:cds-feature-mt:3.4.0 but never imported. This is likely a bug.
Adds the missing dev-dependency to @sap/cds-dk to the db module. This fixes a problem that causes the build command to fail with `could not determine executable to run`
|
b1c5607
to
c435b17
Compare
Hi Sebastian, thanks for your contribution. See my comments below:
This issue is fixed with CAP Java 3.4.1 which is now consumed by this sample application. This fix is no longer required.
Can you explain how I can reproduce this build error ? Locally I'm using Thanks, |
Hi Markus, Thank you for your quick response.
I have removed the workaround from the PR.
It could be that you have installed the library @sap/cds-dk globally on your device. If you want to reproduce the problem you can uninstall it and run Best regards, |
yes, without a globally install This is also the default, if you would add HANA support with {
"name": "deploy",
"dependencies": {
"hdb": "^0",
"@sap/hdi-deploy": "^5"
},
"engines": {
"node": "^22.0.0"
},
"scripts": {
"start": "node node_modules/@sap/hdi-deploy/deploy.js --use-hdb",
"build": "npm i && npx cds build .. --for hana --production"
}
}
|
You are absolutely correct. My setup is somewhat unconventional since I installed cds using Homebrew. As a result, the The reason I initially thought that Best regards, |
I think this is a valid suggestion, as we also do it like that in It is not ideal for sure, but so far it seems like we haven't found a better solution that doesn't also have some other weird side effects. |
README.md
Outdated
@@ -238,6 +238,7 @@ Deploy as Multitenant Application: | |||
- Run `cf deploy mta_archives/bookshop-mt_1.0.0.mtar` | |||
- Go to another subaccount in your global account, under subscriptions and subscribe to the application you deployed. | |||
- Run `cf map-route bookshop-mt-app <YOUR DOMAIN> --hostname <SUBSCRIBER TENANT>-<ORG>-<SPACE>-bookshop-mt-app` or create and bind the route manually. | |||
- Example: `cf map-route bookshop cfapps.us10.hana.ondemand.com --hostname subscriber1-myOrg-mySpace-bookshop-mt-app` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this example really help? What is the additional value/information you want to convey with that?
I am always a little hesitant to have such CLI snippets here, as they are usually copied without much thinking and then people are confused, if they don't work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right that examples bear the risk to be mindlessly copied. However, for someone like me who wasn't entirely sure what I was looking for, seeing a real example was incredibly helpful.
In this instance, it helped me to see the expected format of <YOUR DOMAIN>
. I found this information here.
I can try to include some more information about the assumptions for the example or where to find the respective information. If you think it's not valuable I can also remove it from the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, maybe it would be better in that case to provide a description where to obtain the value for <YOUR DOMAIN>
, e.g.:
- Example: `cf map-route bookshop cfapps.us10.hana.ondemand.com --hostname subscriber1-myOrg-mySpace-bookshop-mt-app` | |
- `<YOUR DOMAIN>`: Find the app domain for your landscape by executing `cf domains`. It commonly starts with `cfapps.`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please have another look on the change. I have followed your suggestion and replaced the example with a description for the parameters that I struggled with during my setup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks 👍
The PR contains some improvement suggestions.
Adds the missing dev-dependency to @sap/cds-dk in the db module.
This fixes a problem that causes the build command to fail with
could not determine executable to run
Adds an example route mapping to README.md
Removed based on the communication.
Fixes an issue in the Multi Tenancy example caused by a missing class.Adds org.apache.commons:commons-collections4:4.4 as dependency. The dependency is required for com.sap.cds:cds-feature-mt:3.4.0 but never imported.
This is likely a bug in cds, but the import works around it.