Skip to content

Commit 4bf8944

Browse files
authored
Merge pull request DSpace#2987 from atmire/w2p-105866_Submission-performance-7_x
7.x - Submission performance
2 parents 2b0f0f6 + dabc0e9 commit 4bf8944

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/core/submission/submission-rest.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('SubmissionRestService test suite', () => {
2626
const resourceEndpoint = 'workspaceitems';
2727
const resourceScope = '260';
2828
const body = { test: new FormFieldMetadataValueObject('test') };
29-
const resourceHref = resourceEndpointURL + '/' + resourceEndpoint + '/' + resourceScope + '?projection=full';
29+
const resourceHref = resourceEndpointURL + '/' + resourceEndpoint + '/' + resourceScope + '?embed=sections,collection';
3030
const timestampResponse = 1545994811992;
3131

3232
function initTestService() {

src/app/core/submission/submission-rest.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class SubmissionRestService {
7070
*/
7171
protected getEndpointByIDHref(endpoint, resourceID, collectionId?: string): string {
7272
let url = isNotEmpty(resourceID) ? `${endpoint}/${resourceID}` : `${endpoint}`;
73-
url = new URLCombiner(url, '?projection=full').toString();
73+
url = new URLCombiner(url, '?embed=sections,collection').toString();
7474
if (collectionId) {
7575
url = new URLCombiner(url, `&owningCollection=${collectionId}`).toString();
7676
}

0 commit comments

Comments
 (0)