add middle manager and indexer worker category to tier column of services view (#9158)

This commit is contained in:
Clint Wylie 2020-01-09 12:20:42 -08:00 committed by Vadim Ogievetsky
parent e27a1e8604
commit f245292e5d
2 changed files with 6 additions and 2 deletions

View File

@ -138,7 +138,8 @@ exports[`services view action services view 1`] = `
Object {
"Cell": [Function],
"Header": "Tier",
"accessor": "tier",
"accessor": [Function],
"id": "tier",
"show": true,
},
Object {

View File

@ -348,7 +348,10 @@ ORDER BY "rank" DESC, "service" DESC`;
},
{
Header: 'Tier',
accessor: 'tier',
id: 'tier',
accessor: row => {
return row.tier ? row.tier : row.worker ? row.worker.category : null;
},
Cell: row => {
const value = row.value;
return (