mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3837] - Removed unused service properties (#4200)
* [ADF-3837] - Removed unused service properties * fix lint
This commit is contained in:
committed by
Maurizio Vitale
parent
87d973d8d2
commit
c34ff07dd4
@@ -62,10 +62,6 @@ when the process list is empty:
|
|||||||
| processDefinitionKey | `string` | "" | Filter the processes to display only the ones with this process definition key. |
|
| processDefinitionKey | `string` | "" | Filter the processes to display only the ones with this process definition key. |
|
||||||
| selectFirstRow | `boolean` | true | Toggles default selection of the first row |
|
| selectFirstRow | `boolean` | true | Toggles default selection of the first row |
|
||||||
| selectionMode | `string` | "single" | Row selection mode. Can be "none", "single" or "multiple". For multiple mode, you can use Cmd (macOS) or Ctrl (Win) modifier key to toggle selection for multiple rows. |
|
| selectionMode | `string` | "single" | Row selection mode. Can be "none", "single" or "multiple". For multiple mode, you can use Cmd (macOS) or Ctrl (Win) modifier key to toggle selection for multiple rows. |
|
||||||
| serviceFullName | `string` | "" | Filter the processes to display only the ones with this serviceFullName value. |
|
|
||||||
| serviceName | `string` | "" | Filter the processes to display only the ones with this serviceName value. |
|
|
||||||
| serviceType | `string` | "" | Filter the processes to display only the ones with this serviceType value. |
|
|
||||||
| serviceVersion | `string` | "" | Filter the processes to display only the ones with this serviceVersion value. |
|
|
||||||
| sorting | [`ProcessListCloudSortingModel`](../../lib/process-services-cloud/src/lib/process/process-list/models/process-list-sorting.model.ts)`[]` | | Array of objects specifying the sort order and direction for the list. The sort parameters are for BE sorting. |
|
| sorting | [`ProcessListCloudSortingModel`](../../lib/process-services-cloud/src/lib/process/process-list/models/process-list-sorting.model.ts)`[]` | | Array of objects specifying the sort order and direction for the list. The sort parameters are for BE sorting. |
|
||||||
| status | `string` | "" | Filter the processes to display only the ones with this status. |
|
| status | `string` | "" | Filter the processes to display only the ones with this status. |
|
||||||
|
|
||||||
|
@@ -129,12 +129,8 @@ describe('ProcessListCloudComponent', () => {
|
|||||||
expect(res).toBeDefined();
|
expect(res).toBeDefined();
|
||||||
expect(component.rows).toBeDefined();
|
expect(component.rows).toBeDefined();
|
||||||
expect(component.rows.length).toEqual(3);
|
expect(component.rows.length).toEqual(3);
|
||||||
expect(component.rows[0].entry['serviceName']).toEqual('simple-app-rb');
|
|
||||||
expect(component.rows[0].entry['serviceFullName']).toEqual('simple-app-rb');
|
|
||||||
expect(component.rows[0].entry['serviceVersion']).toBe('');
|
|
||||||
expect(component.rows[0].entry['appName']).toBe('easy-peasy-japanesey');
|
expect(component.rows[0].entry['appName']).toBe('easy-peasy-japanesey');
|
||||||
expect(component.rows[0].entry['appVersion']).toBe('');
|
expect(component.rows[0].entry['appVersion']).toBe('');
|
||||||
expect(component.rows[0].entry['serviceType']).toBeNull();
|
|
||||||
expect(component.rows[0].entry['id']).toBe('69eddfa7-d781-11e8-ae24-0a58646001fa');
|
expect(component.rows[0].entry['id']).toBe('69eddfa7-d781-11e8-ae24-0a58646001fa');
|
||||||
expect(component.rows[0].entry['name']).toEqual('starring');
|
expect(component.rows[0].entry['name']).toEqual('starring');
|
||||||
expect(component.rows[0].entry['description']).toBeNull();
|
expect(component.rows[0].entry['description']).toBeNull();
|
||||||
|
@@ -67,22 +67,6 @@ export class ProcessListCloudComponent extends DataTableSchema implements OnChan
|
|||||||
@Input()
|
@Input()
|
||||||
processDefinitionKey: string = '';
|
processDefinitionKey: string = '';
|
||||||
|
|
||||||
/** Filter the processes to display only the ones with this serviceFullName value. */
|
|
||||||
@Input()
|
|
||||||
serviceFullName: string = '';
|
|
||||||
|
|
||||||
/** Filter the processes to display only the ones with this serviceName value. */
|
|
||||||
@Input()
|
|
||||||
serviceName: string = '';
|
|
||||||
|
|
||||||
/** Filter the processes to display only the ones with this serviceType value. */
|
|
||||||
@Input()
|
|
||||||
serviceType: string = '';
|
|
||||||
|
|
||||||
/** Filter the processes to display only the ones with this serviceVersion value. */
|
|
||||||
@Input()
|
|
||||||
serviceVersion: string = '';
|
|
||||||
|
|
||||||
/** Filter the processes to display only the ones with this status. */
|
/** Filter the processes to display only the ones with this status. */
|
||||||
@Input()
|
@Input()
|
||||||
status: string = '';
|
status: string = '';
|
||||||
@@ -282,10 +266,6 @@ export class ProcessListCloudComponent extends DataTableSchema implements OnChan
|
|||||||
name: this.name,
|
name: this.name,
|
||||||
processDefinitionId: this.processDefinitionId,
|
processDefinitionId: this.processDefinitionId,
|
||||||
processDefinitionKey: this.processDefinitionKey,
|
processDefinitionKey: this.processDefinitionKey,
|
||||||
serviceFullName: this.serviceFullName,
|
|
||||||
serviceName: this.serviceName,
|
|
||||||
serviceType: this.serviceType,
|
|
||||||
serviceVersion: this.serviceVersion,
|
|
||||||
status: this.status,
|
status: this.status,
|
||||||
businessKey: this.businessKey,
|
businessKey: this.businessKey,
|
||||||
sorting: this.sorting
|
sorting: this.sorting
|
||||||
|
@@ -22,12 +22,8 @@ export const fakeProcessCloudList = {
|
|||||||
entries: [
|
entries: [
|
||||||
{
|
{
|
||||||
entry: {
|
entry: {
|
||||||
serviceName: 'simple-app-rb',
|
|
||||||
serviceFullName: 'simple-app-rb',
|
|
||||||
serviceVersion: '',
|
|
||||||
appName: 'easy-peasy-japanesey',
|
appName: 'easy-peasy-japanesey',
|
||||||
appVersion: '',
|
appVersion: '',
|
||||||
serviceType: null,
|
|
||||||
id: '69eddfa7-d781-11e8-ae24-0a58646001fa',
|
id: '69eddfa7-d781-11e8-ae24-0a58646001fa',
|
||||||
name: 'starring',
|
name: 'starring',
|
||||||
description: null,
|
description: null,
|
||||||
@@ -44,12 +40,8 @@ export const fakeProcessCloudList = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
entry: {
|
entry: {
|
||||||
serviceName: 'simple-app-rb',
|
|
||||||
serviceFullName: 'simple-app-rb',
|
|
||||||
serviceVersion: '',
|
|
||||||
appName: 'easy-peasy-japanesey',
|
appName: 'easy-peasy-japanesey',
|
||||||
appVersion: '',
|
appVersion: '',
|
||||||
serviceType: null,
|
|
||||||
id: '8b3f625f-d781-11e8-ae24-0a58646001fa',
|
id: '8b3f625f-d781-11e8-ae24-0a58646001fa',
|
||||||
name: null,
|
name: null,
|
||||||
description: null,
|
description: null,
|
||||||
@@ -66,12 +58,8 @@ export const fakeProcessCloudList = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
entry: {
|
entry: {
|
||||||
serviceName: 'simple-app-rb',
|
|
||||||
serviceFullName: 'simple-app-rb',
|
|
||||||
serviceVersion: '',
|
|
||||||
appName: 'easy-peasy-japanesey',
|
appName: 'easy-peasy-japanesey',
|
||||||
appVersion: '',
|
appVersion: '',
|
||||||
serviceType: null,
|
|
||||||
id: '87c12637-d783-11e8-ae24-0a58646001fa',
|
id: '87c12637-d783-11e8-ae24-0a58646001fa',
|
||||||
name: null,
|
name: null,
|
||||||
description: null,
|
description: null,
|
||||||
|
@@ -26,10 +26,6 @@ export class ProcessQueryCloudRequestModel {
|
|||||||
name?: string;
|
name?: string;
|
||||||
processDefinitionId?: string;
|
processDefinitionId?: string;
|
||||||
processDefinitionKey?: string;
|
processDefinitionKey?: string;
|
||||||
serviceFullName?: string;
|
|
||||||
serviceName?: string;
|
|
||||||
serviceType?: string;
|
|
||||||
serviceVersion?: string;
|
|
||||||
status?: string;
|
status?: string;
|
||||||
startDate?: string;
|
startDate?: string;
|
||||||
businessKey?: string;
|
businessKey?: string;
|
||||||
@@ -49,10 +45,6 @@ export class ProcessQueryCloudRequestModel {
|
|||||||
this.name = obj.name;
|
this.name = obj.name;
|
||||||
this.processDefinitionId = obj.processDefinitionId;
|
this.processDefinitionId = obj.processDefinitionId;
|
||||||
this.processDefinitionKey = obj.processDefinitionKey;
|
this.processDefinitionKey = obj.processDefinitionKey;
|
||||||
this.serviceFullName = obj.serviceFullName;
|
|
||||||
this.serviceName = obj.serviceName;
|
|
||||||
this.serviceType = obj.serviceType;
|
|
||||||
this.serviceVersion = obj.serviceVersion;
|
|
||||||
this.status = obj.status;
|
this.status = obj.status;
|
||||||
this.startDate = obj.startDate;
|
this.startDate = obj.startDate;
|
||||||
this.businessKey = obj.businessKey;
|
this.businessKey = obj.businessKey;
|
||||||
|
@@ -22,10 +22,6 @@ import { ProcessDefinitionCloud } from '../models/process-definition-cloud.model
|
|||||||
export let fakeProcessInstance = new ProcessInstanceCloud({
|
export let fakeProcessInstance = new ProcessInstanceCloud({
|
||||||
appName: 'simple-app',
|
appName: 'simple-app',
|
||||||
appVersion: '',
|
appVersion: '',
|
||||||
serviceName: 'simple-app-rb',
|
|
||||||
serviceFullName: 'simple-app-rb',
|
|
||||||
serviceType: 'runtime-bundle',
|
|
||||||
serviceVersion: '',
|
|
||||||
id: 'd0b30377-dc5a-11e8-ae24-0a58646001fa',
|
id: 'd0b30377-dc5a-11e8-ae24-0a58646001fa',
|
||||||
name: 'My Process Name',
|
name: 'My Process Name',
|
||||||
startDate: '2018-10-30T15:45:24.136+0000',
|
startDate: '2018-10-30T15:45:24.136+0000',
|
||||||
@@ -41,22 +37,14 @@ export let fakeProcessDefinitions: ProcessDefinitionCloud[] = [
|
|||||||
appVersion: 0,
|
appVersion: 0,
|
||||||
id: 'NewProcess:1',
|
id: 'NewProcess:1',
|
||||||
key: 'NewProcess 1',
|
key: 'NewProcess 1',
|
||||||
name: 'NewProcess 1',
|
name: 'NewProcess 1'
|
||||||
serviceFullName: 'myApp-rb',
|
|
||||||
serviceName: 'myApp-rb',
|
|
||||||
serviceType: 'runtime-bundle',
|
|
||||||
serviceVersion: null
|
|
||||||
}),
|
}),
|
||||||
new ProcessDefinitionCloud({
|
new ProcessDefinitionCloud({
|
||||||
appName: 'myApp',
|
appName: 'myApp',
|
||||||
appVersion: 0,
|
appVersion: 0,
|
||||||
id: 'NewProcess:2',
|
id: 'NewProcess:2',
|
||||||
key: 'NewProcess 2',
|
key: 'NewProcess 2',
|
||||||
name: 'NewProcess 2',
|
name: 'NewProcess 2'
|
||||||
serviceFullName: 'myApp-rb',
|
|
||||||
serviceName: 'myApp-rb',
|
|
||||||
serviceType: 'runtime-bundle',
|
|
||||||
serviceVersion: null
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@@ -22,10 +22,6 @@ export class ProcessDefinitionCloud {
|
|||||||
appVersion: number;
|
appVersion: number;
|
||||||
version: number;
|
version: number;
|
||||||
name: string;
|
name: string;
|
||||||
serviceFullName: string;
|
|
||||||
serviceName: string;
|
|
||||||
serviceType: string;
|
|
||||||
serviceVersion: string;
|
|
||||||
|
|
||||||
constructor(obj?: any) {
|
constructor(obj?: any) {
|
||||||
this.id = obj && obj.id || null;
|
this.id = obj && obj.id || null;
|
||||||
@@ -34,9 +30,5 @@ export class ProcessDefinitionCloud {
|
|||||||
this.key = obj && obj.key || null;
|
this.key = obj && obj.key || null;
|
||||||
this.version = obj && obj.version || 0;
|
this.version = obj && obj.version || 0;
|
||||||
this.appVersion = obj && obj.appVersion || 0;
|
this.appVersion = obj && obj.appVersion || 0;
|
||||||
this.serviceFullName = obj && obj.serviceFullName || null;
|
|
||||||
this.serviceType = obj && obj.serviceType || null;
|
|
||||||
this.serviceName = obj && obj.serviceName || null;
|
|
||||||
this.serviceVersion = obj && obj.serviceVersion || null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -36,12 +36,8 @@ export class TaskDetailsCloudModel {
|
|||||||
priority: number;
|
priority: number;
|
||||||
processDefinitionId: string;
|
processDefinitionId: string;
|
||||||
processInstanceId: string;
|
processInstanceId: string;
|
||||||
serviceType: any;
|
|
||||||
status: string;
|
status: string;
|
||||||
standAlone: boolean;
|
standAlone: boolean;
|
||||||
serviceName: string;
|
|
||||||
serviceFullName: string;
|
|
||||||
serviceVersion: string;
|
|
||||||
managerOfCandidateGroup: boolean;
|
managerOfCandidateGroup: boolean;
|
||||||
memberOfCandidateGroup: boolean;
|
memberOfCandidateGroup: boolean;
|
||||||
memberOfCandidateUsers: boolean;
|
memberOfCandidateUsers: boolean;
|
||||||
@@ -66,13 +62,8 @@ export class TaskDetailsCloudModel {
|
|||||||
this.priority = obj.priority || null;
|
this.priority = obj.priority || null;
|
||||||
this.processDefinitionId = obj.processDefinitionId || null;
|
this.processDefinitionId = obj.processDefinitionId || null;
|
||||||
this.processInstanceId = obj.processInstanceId || null;
|
this.processInstanceId = obj.processInstanceId || null;
|
||||||
this.serviceType = obj.serviceType || null;
|
|
||||||
this.status = obj.status || null;
|
this.status = obj.status || null;
|
||||||
this.standAlone = obj.standAlone || null;
|
this.standAlone = obj.standAlone || null;
|
||||||
this.serviceName = obj.serviceName || null;
|
|
||||||
this.serviceName = obj.serviceName || null;
|
|
||||||
this.serviceFullName = obj.serviceFullName || null;
|
|
||||||
this.serviceVersion = obj.serviceVersion || null;
|
|
||||||
this.managerOfCandidateGroup = obj.managerOfCandidateGroup || null;
|
this.managerOfCandidateGroup = obj.managerOfCandidateGroup || null;
|
||||||
this.memberOfCandidateGroup = obj.memberOfCandidateGroup || null;
|
this.memberOfCandidateGroup = obj.memberOfCandidateGroup || null;
|
||||||
this.memberOfCandidateUsers = obj.memberOfCandidateUsers || null;
|
this.memberOfCandidateUsers = obj.memberOfCandidateUsers || null;
|
||||||
|
@@ -17,12 +17,8 @@
|
|||||||
|
|
||||||
export const fakeTaskDetailsCloud = {
|
export const fakeTaskDetailsCloud = {
|
||||||
'entry': {
|
'entry': {
|
||||||
'serviceName': 'task-app-rb',
|
|
||||||
'serviceFullName': 'task-app-rb',
|
|
||||||
'serviceVersion': '',
|
|
||||||
'appName': 'task-app',
|
'appName': 'task-app',
|
||||||
'appVersion': '',
|
'appVersion': '',
|
||||||
'serviceType': null,
|
|
||||||
'id': '68d54a8f',
|
'id': '68d54a8f',
|
||||||
'assignee': 'Phil Woods',
|
'assignee': 'Phil Woods',
|
||||||
'name': 'This is a new task ',
|
'name': 'This is a new task ',
|
||||||
|
@@ -19,12 +19,8 @@ import { TaskDetailsCloudModel } from '../../start-task/models/task-details-clou
|
|||||||
|
|
||||||
export const taskDetailsCloudMock = new TaskDetailsCloudModel(
|
export const taskDetailsCloudMock = new TaskDetailsCloudModel(
|
||||||
{
|
{
|
||||||
'serviceName': 'task-app-rb',
|
|
||||||
'serviceFullName': 'task-app-rb',
|
|
||||||
'serviceVersion': '',
|
|
||||||
'appName': 'task-app',
|
'appName': 'task-app',
|
||||||
'appVersion': '',
|
'appVersion': '',
|
||||||
'serviceType': null,
|
|
||||||
'id': '68d54a8f-01f3-11e9-8e36-0a58646002ad',
|
'id': '68d54a8f-01f3-11e9-8e36-0a58646002ad',
|
||||||
'assignee': 'Wilbur Adams',
|
'assignee': 'Wilbur Adams',
|
||||||
'name': 'This is a new task ',
|
'name': 'This is a new task ',
|
||||||
|
@@ -133,12 +133,8 @@ describe('TaskListCloudComponent', () => {
|
|||||||
expect(component.rows).toBeDefined();
|
expect(component.rows).toBeDefined();
|
||||||
expect(component.isListEmpty()).not.toBeTruthy();
|
expect(component.isListEmpty()).not.toBeTruthy();
|
||||||
expect(component.rows.length).toEqual(1);
|
expect(component.rows.length).toEqual(1);
|
||||||
expect(component.rows[0].entry['serviceName']).toEqual('test-ciprian2-rb');
|
|
||||||
expect(component.rows[0].entry['serviceFullName']).toEqual('test-ciprian2-rb');
|
|
||||||
expect(component.rows[0].entry['serviceVersion']).toBe('');
|
|
||||||
expect(component.rows[0].entry['appName']).toBe('test-ciprian2');
|
expect(component.rows[0].entry['appName']).toBe('test-ciprian2');
|
||||||
expect(component.rows[0].entry['appVersion']).toBe('');
|
expect(component.rows[0].entry['appVersion']).toBe('');
|
||||||
expect(component.rows[0].entry['serviceType']).toBeNull();
|
|
||||||
expect(component.rows[0].entry['id']).toBe('11fe013d-c263-11e8-b75b-0a5864600540');
|
expect(component.rows[0].entry['id']).toBe('11fe013d-c263-11e8-b75b-0a5864600540');
|
||||||
expect(component.rows[0].entry['assignee']).toBeNull();
|
expect(component.rows[0].entry['assignee']).toBeNull();
|
||||||
expect(component.rows[0].entry['name']).toEqual('standalone-subtask');
|
expect(component.rows[0].entry['name']).toEqual('standalone-subtask');
|
||||||
|
@@ -22,12 +22,8 @@ export const fakeTaskCloudList = {
|
|||||||
entries: [
|
entries: [
|
||||||
{
|
{
|
||||||
entry: {
|
entry: {
|
||||||
serviceName: 'maurizio-test-rb',
|
|
||||||
serviceFullName: 'maurizio-test-rb',
|
|
||||||
serviceVersion: '',
|
|
||||||
appName: 'save-the-cheerleader',
|
appName: 'save-the-cheerleader',
|
||||||
appVersion: '',
|
appVersion: '',
|
||||||
serviceType: null,
|
|
||||||
id: '890b0e1c-c252-11e8-b5c5-0a58646004c7',
|
id: '890b0e1c-c252-11e8-b5c5-0a58646004c7',
|
||||||
assignee: null,
|
assignee: null,
|
||||||
name: 'SimpleStandaloneTask',
|
name: 'SimpleStandaloneTask',
|
||||||
@@ -50,12 +46,8 @@ export const fakeTaskCloudList = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
entry: {
|
entry: {
|
||||||
serviceName: 'maurizio-test-rb',
|
|
||||||
serviceFullName: 'maurizio-test-rb',
|
|
||||||
serviceVersion: '',
|
|
||||||
appName: 'save-the-cheerleader',
|
appName: 'save-the-cheerleader',
|
||||||
appVersion: '',
|
appVersion: '',
|
||||||
serviceType: null,
|
|
||||||
id: '8962cb0e-c252-11e8-b5c5-0a58646004c7',
|
id: '8962cb0e-c252-11e8-b5c5-0a58646004c7',
|
||||||
assignee: null,
|
assignee: null,
|
||||||
name: 'SimpleStandaloneTask',
|
name: 'SimpleStandaloneTask',
|
||||||
@@ -92,12 +84,8 @@ export let fakeGlobalTask = {
|
|||||||
entries: [
|
entries: [
|
||||||
{
|
{
|
||||||
entry: {
|
entry: {
|
||||||
serviceName: 'test-ciprian2-rb',
|
|
||||||
serviceFullName: 'test-ciprian2-rb',
|
|
||||||
serviceVersion: '',
|
|
||||||
appName: 'test-ciprian2',
|
appName: 'test-ciprian2',
|
||||||
appVersion: '',
|
appVersion: '',
|
||||||
serviceType: null,
|
|
||||||
id: '11fe013d-c263-11e8-b75b-0a5864600540',
|
id: '11fe013d-c263-11e8-b75b-0a5864600540',
|
||||||
assignee: null,
|
assignee: null,
|
||||||
name: 'standalone-subtask',
|
name: 'standalone-subtask',
|
||||||
|
@@ -32,10 +32,6 @@ export class TaskQueryCloudRequestModel {
|
|||||||
priority?: number;
|
priority?: number;
|
||||||
processDefinitionId?: string;
|
processDefinitionId?: string;
|
||||||
processInstanceId?: string;
|
processInstanceId?: string;
|
||||||
serviceFullName?: string;
|
|
||||||
serviceName?: string;
|
|
||||||
serviceType?: string;
|
|
||||||
serviceVersion?: string;
|
|
||||||
status?: string;
|
status?: string;
|
||||||
maxItems: number;
|
maxItems: number;
|
||||||
skipCount: number;
|
skipCount: number;
|
||||||
@@ -57,10 +53,6 @@ export class TaskQueryCloudRequestModel {
|
|||||||
this.priority = obj.priority;
|
this.priority = obj.priority;
|
||||||
this.processDefinitionId = obj.processDefinitionId;
|
this.processDefinitionId = obj.processDefinitionId;
|
||||||
this.processInstanceId = obj.processInstanceId;
|
this.processInstanceId = obj.processInstanceId;
|
||||||
this.serviceFullName = obj.serviceFullName;
|
|
||||||
this.serviceName = obj.serviceName;
|
|
||||||
this.serviceType = obj.serviceType;
|
|
||||||
this.serviceVersion = obj.serviceVersion;
|
|
||||||
this.status = obj.status;
|
this.status = obj.status;
|
||||||
this.maxItems = obj.maxItems;
|
this.maxItems = obj.maxItems;
|
||||||
this.skipCount = obj.skipCount;
|
this.skipCount = obj.skipCount;
|
||||||
|
Reference in New Issue
Block a user