Closed antoine42 closed 1 year ago
Hi @antoine42 thanks for the report,
Before we look into this in more detail, would it be a solution for you to provide the data inline of the parent entity such as
{
communicationArrangements: [....]
}
for each entry or would that make no sense ?
@nlunets we update the mock data & metadata using downloadScript1911.js on top of test landscapes.
We can't have manual changes to be done either on the mock data or the metadata (as we are sure someone will forget to do so one day).
We use $expand parameters in most of our queries so I guess the data could be there (but it's not 100% sure depending on some performance issues, we might do separate queries in parallel).
Available in @sap-ux/ui5-middleware-fe-mockserver@2.1.57
Some odata servers may not provide referential constraints in the metadata for all kinds of navigation properties.
Therefore, when trying to use $expand on such navigation properties, the mock server doesn't now how to compute the link.
For example, using CAPM the following composition
is translated as
We would need to find a way to implement such relationship in the mock server so it can implement $expand properly.
We are using the fe mockserver to run opa tests on productive apps and produce a code coverage report.