Setting cache period to zero for all instances where forceBypassCache was previously true.

This commit is contained in:
Michael W Spalti
2019-09-12 16:14:13 -07:00
parent 121e564e12
commit 34defdc5cd
5 changed files with 21 additions and 0 deletions

View File

@@ -109,10 +109,14 @@ export class SubmissionRestService {
filter((href: string) => isNotEmpty(href)),
distinctUntilChanged(),
map((endpointURL: string) => new SubmissionRequest(requestId, endpointURL)),
<<<<<<< HEAD
map ((request: RestRequest) => {
request.responseMsToLive = 0;
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)),
flatMap(() => this.fetchRequest(requestId)),
distinctUntilChanged());

View File

@@ -20,7 +20,11 @@ import { DSOChangeAnalyzer } from '../data/dso-change-analyzer.service';
@Injectable()
export class WorkflowItemDataService extends DataService<WorkflowItem> {
protected linkPath = 'workflowitems';
<<<<<<< HEAD
protected responseMsToLive = 0;
=======
protected resetMsToLive = true;
>>>>>>> Setting cache period to zero for all instances where forceBypassCache was previously true.
constructor(
protected comparator: DSOChangeAnalyzer<WorkflowItem>,

View File

@@ -20,7 +20,11 @@ import { WorkspaceItem } from './models/workspaceitem.model';
@Injectable()
export class WorkspaceitemDataService extends DataService<WorkspaceItem> {
protected linkPath = 'workspaceitems';
<<<<<<< HEAD
protected responseMsToLive = 0;
=======
protected resetMsToLive = true;
>>>>>>> Setting cache period to zero for all instances where forceBypassCache was previously true.
constructor(
protected comparator: DSOChangeAnalyzer<WorkspaceItem>,

View File

@@ -22,7 +22,11 @@ import { ProcessTaskResponse } from './models/process-task-response';
@Injectable()
export class ClaimedTaskDataService extends TasksService<ClaimedTask> {
<<<<<<< HEAD
protected responseMsToLive = 0;
=======
protected resetMsToLive = true;
>>>>>>> Setting cache period to zero for all instances where forceBypassCache was previously true.
/**
* The endpoint link name

View File

@@ -27,11 +27,16 @@ export class PoolTaskDataService extends TasksService<PoolTask> {
*/
protected linkPath = 'pooltasks';
<<<<<<< HEAD
<<<<<<< HEAD
protected responseMsToLive = 0;
=======
>>>>>>> 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
*