Commit e2d181bb authored by abirembaut's avatar abirembaut Committed by Bishal Thapaliya

fix (monitoring page) Monitoring page pagination is broken (#508)

- Remove client-side filtering and ordering
- Handle pagination and sort order server-side
- remove high number of process per page (PO's feedback)
- sort processes by last update date in process list dropdown
- Remove sorting on numbers of cases as it is not supported by the API
- Remove cases state filter as it is not supported by the API
- Add process state filter
- Rename local storage key in order to avoid issues with old sort values

Covers [BPO-237](https://bonitasoft.atlassian.net/browse/BPO-237)
parent 6a9a9fef
[
{
"id": "7626384556180392799",
"icon": "",
"displayDescription": "",
"deploymentDate": "2014-10-17 16:04:50.393",
"description": "",
"activationState": "ENABLED",
"name": "Pool",
"deployedBy": "4",
"displayName": "Pool",
"actorinitiatorid": "1",
"last_update_date": "2014-10-17 16:04:52.247",
"configurationState": "RESOLVED",
"version": "1.0",
"failedCases": "2",
"openCases": "3"
}
]
[
{
"id": "4910683075061293406",
"icon": "",
"displayDescription": "",
"deploymentDate": "2014-10-20 10:07:13.762",
"description": "",
"activationState": "ENABLED",
"name": "ProcessX",
"deployedBy": "4",
"displayName": "ProcessX",
"actorinitiatorid": "103",
"last_update_date": "2014-10-20 10:07:15.595",
"configurationState": "RESOLVED",
"version": "2.0",
"failedCases": "10",
"openCases": "45"
},
{
"id": "9106502070759678545",
"icon": "",
"displayDescription": "",
"deploymentDate": "2014-10-20 10:06:56.778",
"description": "",
"activationState": "ENABLED",
"name": "Poule",
"deployedBy": "4",
"displayName": "Poule",
"actorinitiatorid": "101",
"last_update_date": "2014-10-20 10:06:58.327",
"configurationState": "RESOLVED",
"version": "1.1",
"failedCases": "1",
"openCases": "0"
},
{
"id": "8967858817451251940",
"icon": "",
"displayDescription": "",
"deploymentDate": "2014-10-20 10:07:05.328",
"description": "",
"activationState": "ENABLED",
"name": "Poule",
"deployedBy": "4",
"displayName": "Poule",
"actorinitiatorid": "102",
"last_update_date": "2014-10-20 10:07:06.861",
"configurationState": "RESOLVED",
"version": "2.0",
"failedCases": "0",
"openCases": "0"
},
{
"id": "7626384556180392799",
"icon": "",
"displayDescription": "",
"deploymentDate": "2014-10-17 16:04:50.393",
"description": "",
"activationState": "ENABLED",
"name": "Pool",
"deployedBy": "4",
"displayName": "Pool",
"actorinitiatorid": "1",
"last_update_date": "2014-10-17 16:04:52.247",
"configurationState": "RESOLVED",
"version": "1.0",
"failedCases": "2",
"openCases": "3"
}
]
......@@ -239,6 +239,10 @@
when('GET', /^\/API\/bpm\/process\/(8007855270751208272)$/).respond(require('./user/tasks/list/process8007855270751208272-mock.json'));
//global
when('GET', /^\/API\/bpm\/process\?c=\d+&n=openCases&n=failedCases&o=displayName\+ASC&p=0$/).respond(require('./admin/cases/list/process-def-4.json'));
when('GET', /^\/API\/bpm\/process\?c=\d+&n=openCases&n=failedCases&o=displayName\+DESC&p=0$/).respond(require('./admin/cases/list/process-def-4-ordered-by-process-name.json'));
when('GET', /^\/API\/bpm\/process\?c=\d+&f=displayName%3DPool&.*p=0$/).respond(require('./admin/cases/list/process-def-4-filtered-by-pool-display-name.json'));
when('GET', /^\/API\/bpm\/process\?c=\d+&.*p=0$/).respond(require('./admin/cases/list/process-def-4.json'));
when('GET', /^\/API\/bpm\/process\?c=\d+&.*p=0&.*s=.*$/).respond(require('./admin/cases/list/process-def-4.json'));
when('GET', /^\/API\/system\/i18ntranslation.*$/).respond([]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment