mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Setting cache period to zero for all instances where forceBypassCache was previously true.
This commit is contained in:
@@ -109,10 +109,14 @@ export class SubmissionRestService {
|
|||||||
filter((href: string) => isNotEmpty(href)),
|
filter((href: string) => isNotEmpty(href)),
|
||||||
distinctUntilChanged(),
|
distinctUntilChanged(),
|
||||||
map((endpointURL: string) => new SubmissionRequest(requestId, endpointURL)),
|
map((endpointURL: string) => new SubmissionRequest(requestId, endpointURL)),
|
||||||
|
<<<<<<< HEAD
|
||||||
map ((request: RestRequest) => {
|
map ((request: RestRequest) => {
|
||||||
request.responseMsToLive = 0;
|
request.responseMsToLive = 0;
|
||||||
return request;
|
return request;
|
||||||
}),
|
}),
|
||||||
|
=======
|
||||||
|
map ((request: RestRequest) => request.responseMsToLive = 0),
|
||||||
|
>>>>>>> Setting cache period to zero for all instances where forceBypassCache was previously true.
|
||||||
tap((request: RestRequest) => this.requestService.configure(request)),
|
tap((request: RestRequest) => this.requestService.configure(request)),
|
||||||
flatMap(() => this.fetchRequest(requestId)),
|
flatMap(() => this.fetchRequest(requestId)),
|
||||||
distinctUntilChanged());
|
distinctUntilChanged());
|
||||||
|
@@ -20,7 +20,11 @@ import { DSOChangeAnalyzer } from '../data/dso-change-analyzer.service';
|
|||||||
@Injectable()
|
@Injectable()
|
||||||
export class WorkflowItemDataService extends DataService<WorkflowItem> {
|
export class WorkflowItemDataService extends DataService<WorkflowItem> {
|
||||||
protected linkPath = 'workflowitems';
|
protected linkPath = 'workflowitems';
|
||||||
|
<<<<<<< HEAD
|
||||||
protected responseMsToLive = 0;
|
protected responseMsToLive = 0;
|
||||||
|
=======
|
||||||
|
protected resetMsToLive = true;
|
||||||
|
>>>>>>> Setting cache period to zero for all instances where forceBypassCache was previously true.
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
protected comparator: DSOChangeAnalyzer<WorkflowItem>,
|
protected comparator: DSOChangeAnalyzer<WorkflowItem>,
|
||||||
|
@@ -20,7 +20,11 @@ import { WorkspaceItem } from './models/workspaceitem.model';
|
|||||||
@Injectable()
|
@Injectable()
|
||||||
export class WorkspaceitemDataService extends DataService<WorkspaceItem> {
|
export class WorkspaceitemDataService extends DataService<WorkspaceItem> {
|
||||||
protected linkPath = 'workspaceitems';
|
protected linkPath = 'workspaceitems';
|
||||||
|
<<<<<<< HEAD
|
||||||
protected responseMsToLive = 0;
|
protected responseMsToLive = 0;
|
||||||
|
=======
|
||||||
|
protected resetMsToLive = true;
|
||||||
|
>>>>>>> Setting cache period to zero for all instances where forceBypassCache was previously true.
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
protected comparator: DSOChangeAnalyzer<WorkspaceItem>,
|
protected comparator: DSOChangeAnalyzer<WorkspaceItem>,
|
||||||
|
@@ -22,7 +22,11 @@ import { ProcessTaskResponse } from './models/process-task-response';
|
|||||||
@Injectable()
|
@Injectable()
|
||||||
export class ClaimedTaskDataService extends TasksService<ClaimedTask> {
|
export class ClaimedTaskDataService extends TasksService<ClaimedTask> {
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
protected responseMsToLive = 0;
|
protected responseMsToLive = 0;
|
||||||
|
=======
|
||||||
|
protected resetMsToLive = true;
|
||||||
|
>>>>>>> Setting cache period to zero for all instances where forceBypassCache was previously true.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The endpoint link name
|
* The endpoint link name
|
||||||
|
@@ -27,11 +27,16 @@ export class PoolTaskDataService extends TasksService<PoolTask> {
|
|||||||
*/
|
*/
|
||||||
protected linkPath = 'pooltasks';
|
protected linkPath = 'pooltasks';
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
protected responseMsToLive = 0;
|
protected responseMsToLive = 0;
|
||||||
|
|
||||||
=======
|
=======
|
||||||
>>>>>>> Refactored to remove forceBypassCache param from requestService and from data service classes.
|
>>>>>>> Refactored to remove forceBypassCache param from requestService and from data service classes.
|
||||||
|
=======
|
||||||
|
protected resetMsToLive = true;
|
||||||
|
|
||||||
|
>>>>>>> Setting cache period to zero for all instances where forceBypassCache was previously true.
|
||||||
/**
|
/**
|
||||||
* Initialize instance variables
|
* Initialize instance variables
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user