mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[Ticket 2124] Slow response times
This commit is contained in:

committed by
Kristof De Langhe

parent
99bfe13c8e
commit
308670a699
@@ -26,7 +26,7 @@ describe('SubmissionRestService test suite', () => {
|
|||||||
const resourceEndpoint = 'workspaceitems';
|
const resourceEndpoint = 'workspaceitems';
|
||||||
const resourceScope = '260';
|
const resourceScope = '260';
|
||||||
const body = { test: new FormFieldMetadataValueObject('test') };
|
const body = { test: new FormFieldMetadataValueObject('test') };
|
||||||
const resourceHref = resourceEndpointURL + '/' + resourceEndpoint + '/' + resourceScope + '?projection=full';
|
const resourceHref = resourceEndpointURL + '/' + resourceEndpoint + '/' + resourceScope + '?embed=sections,collection';
|
||||||
const timestampResponse = 1545994811992;
|
const timestampResponse = 1545994811992;
|
||||||
|
|
||||||
function initTestService() {
|
function initTestService() {
|
||||||
|
@@ -78,7 +78,7 @@ export class SubmissionRestService {
|
|||||||
*/
|
*/
|
||||||
protected getEndpointByIDHref(endpoint, resourceID, collectionId?: string): string {
|
protected getEndpointByIDHref(endpoint, resourceID, collectionId?: string): string {
|
||||||
let url = isNotEmpty(resourceID) ? `${endpoint}/${resourceID}` : `${endpoint}`;
|
let url = isNotEmpty(resourceID) ? `${endpoint}/${resourceID}` : `${endpoint}`;
|
||||||
url = new URLCombiner(url, '?projection=full').toString();
|
url = new URLCombiner(url, '?embed=sections,collection').toString();
|
||||||
if (collectionId) {
|
if (collectionId) {
|
||||||
url = new URLCombiner(url, `&owningCollection=${collectionId}`).toString();
|
url = new URLCombiner(url, `&owningCollection=${collectionId}`).toString();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user