Skip to content

Commit

Permalink
[Ticket 2124] Slow response times
Browse files Browse the repository at this point in the history
  • Loading branch information
YanaDePauw authored and Atmire-Kristof committed Apr 29, 2024
1 parent 99bfe13 commit 308670a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/core/submission/submission-rest.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/submission/submission-rest.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,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();
}
Expand Down

0 comments on commit 308670a

Please sign in to comment.