Skip to content

Commit

Permalink
Merge pull request DSpace#2988 from atmire/w2p-105866_Submission-perf…
Browse files Browse the repository at this point in the history
…ormance-main

Submission performance
  • Loading branch information
tdonohue authored May 6, 2024
2 parents c94be6b + 308670a commit d1876a8
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 d1876a8

Please sign in to comment.