@sap/cds 8.9.8 → 8.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/libx/odata/parse/cqn2odata.js +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
- The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
5
5
|
- This project adheres to [Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## Version 8.9.9 - 2026-03-10
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Requests targeting a view with parameters are now correctly send to remote OData services
|
|
12
|
+
|
|
7
13
|
## Version 8.9.8 - 2025-12-17
|
|
8
14
|
|
|
9
15
|
### Fixed
|
|
@@ -311,6 +311,12 @@ function _from(from, kind, model) {
|
|
|
311
311
|
queryTarget = model && _getQueryTarget(queryTarget, id, model)
|
|
312
312
|
const params = _params(args, kind, queryTarget)
|
|
313
313
|
path.push(`${id}${params}`)
|
|
314
|
+
// args are only set in case the entity has parameters.
|
|
315
|
+
// Check model if that is the case and if so, conform to the OData representation for
|
|
316
|
+
// Views with parameters, meaning the actual entity is behind /Set
|
|
317
|
+
if (queryTarget?.params) {
|
|
318
|
+
path.push(`Set`)
|
|
319
|
+
}
|
|
314
320
|
} else if (typeof curRef === 'string') {
|
|
315
321
|
queryTarget = model && _getQueryTarget(queryTarget, curRef, model)
|
|
316
322
|
path.push(curRef)
|