[ADF-4067] Process Service Cloud change applicationName input (#4299)

* [ADF-4047] Process Service Cloud change applicationName input

* [ADF-4067] Change applicationName properties and route param name
This commit is contained in:
Silviu Popa
2019-02-20 20:02:53 +02:00
committed by Eugenio Romano
parent 3a93e07366
commit 877c57b356
24 changed files with 83 additions and 87 deletions

View File

@@ -146,13 +146,13 @@ describe('ProcessListCloudComponent', () => {
done();
});
component.applicationName = appName.currentValue;
component.appName = appName.currentValue;
component.ngOnChanges({ 'appName': appName });
fixture.detectChanges();
});
it('should reload tasks when reload() is called', (done) => {
component.applicationName = 'fake';
component.appName = 'fake';
spyOn(processListCloudService, 'getProcessByRequest').and.returnValue(of(fakeProcessCloudList));
component.success.subscribe((res) => {
expect(res).toBeDefined();

View File

@@ -43,7 +43,7 @@ export class ProcessListCloudComponent extends DataTableSchema implements OnChan
/** The name of the application. */
@Input()
applicationName: string = '';
appName: string = '';
/** The related application version. */
@Input()
@@ -221,7 +221,7 @@ export class ProcessListCloudComponent extends DataTableSchema implements OnChan
private createRequestNode(): ProcessQueryCloudRequestModel {
let requestNode = {
appName: this.applicationName,
appName: this.appName,
appVersion: this.appVersion,
maxItems: this.size,
skipCount: this.skipCount,

View File

@@ -155,13 +155,13 @@ describe('TaskListCloudComponent', () => {
expect(component.rows[0].entry['standAlone']).toBeTruthy();
done();
});
component.applicationName = appName.currentValue;
component.appName = appName.currentValue;
component.ngOnChanges({ 'appName': appName });
fixture.detectChanges();
});
it('should reload tasks when reload() is called', (done) => {
component.applicationName = 'fake';
component.appName = 'fake';
spyOn(taskListCloudService, 'getTaskByRequest').and.returnValue(of(fakeGlobalTask));
component.success.subscribe((res) => {
expect(res).toBeDefined();
@@ -204,7 +204,7 @@ describe('TaskListCloudComponent', () => {
it('should reload the task list when input parameters changed', () => {
const getTaskByRequestSpy = spyOn(taskListCloudService, 'getTaskByRequest').and.returnValue(of(fakeGlobalTask));
component.applicationName = 'mock-app-name';
component.appName = 'mock-app-name';
component.priority = 1;
component.status = 'mock-status';
component.lastModifiedFrom = 'mock-lastmodified-date';

View File

@@ -42,7 +42,7 @@ export class TaskListCloudComponent extends DataTableSchema implements OnChanges
/** The name of the application. */
@Input()
applicationName: string = '';
appName: string = '';
/**
* The assignee of the process. Possible values are: "assignee" (the current user is the assignee),
@@ -251,7 +251,7 @@ export class TaskListCloudComponent extends DataTableSchema implements OnChanges
private createRequestNode() {
let requestNode = {
appName: this.applicationName,
appName: this.appName,
assignee: this.assignee,
id: this.id,
name: this.name,