1
0

[Ticket 2124] Slow response times

This commit is contained in:
Yana De Pauw
2023-04-18 15:53:17 +02:00
committed by Kristof De Langhe
parent 679702bb5a
commit dabc0e9b4b
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ describe('SubmissionRestService test suite', () => {
const resourceEndpoint = 'workspaceitems';
const resourceScope = '260';
const body = { test: new FormFieldMetadataValueObject('test') };
const resourceHref = resourceEndpointURL + '/' + resourceEndpoint + '/' + resourceScope + '?projection=full';
const resourceHref = resourceEndpointURL + '/' + resourceEndpoint + '/' + resourceScope + '?embed=sections,collection';
const timestampResponse = 1545994811992;
function initTestService() {

View File

@@ -70,7 +70,7 @@ export class SubmissionRestService {
*/
protected getEndpointByIDHref(endpoint, resourceID, collectionId?: string): string {
let url = isNotEmpty(resourceID) ? `${endpoint}/${resourceID}` : `${endpoint}`;
url = new URLCombiner(url, '?projection=full').toString();
url = new URLCombiner(url, '?embed=sections,collection').toString();
if (collectionId) {
url = new URLCombiner(url, `&owningCollection=${collectionId}`).toString();
}