Skip to content

Commit

Permalink
Improvements to config and mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Fgerthoffert committed Jul 19, 2022
1 parent 890495a commit 47d8d46
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
6 changes: 6 additions & 0 deletions src/components/testingPerfs/esMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ properties:
keyword:
type: keyword
ignore_above: 256
group:
type: text
fields:
keyword:
type: keyword
ignore_above: 256
owner:
properties:
id:
Expand Down
33 changes: 19 additions & 14 deletions src/components/testingPerfs/zConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,21 @@ const config = {
nullValue: 'EMPTY',
nullFilter: '',
default: true,
},
},
{
facetType: 'term',
field: 'name.keyword',
name: 'Run Name',
nullValue: 'EMPTY',
default: true,
},
},
{
facetType: 'term',
field: 'group.keyword',
name: 'Group',
nullValue: 'EMPTY',
default: true,
},
{
facetType: 'term',
field: 'repository.name.keyword',
Expand All @@ -47,19 +54,17 @@ const config = {
field: 'runs.edges.node.name',
name: 'Profiles',
nullValue: 'NO PROFILE',
nullFilter:
'{"op":"<=","content":{"field":"runs.totalCount","value":0}}',
nullFilter: '{"op":"<=","content":{"field":"runs.totalCount","value":0}}',
default: true,
},
{
facetType: 'term',
field: 'tags.edges.node.name',
name: 'Tags',
nullValue: 'NO TAGS',
nullFilter:
'{"op":"<=","content":{"field":"tags.totalCount","value":0}}',
nullFilter: '{"op":"<=","content":{"field":"tags.totalCount","value":0}}',
default: true,
},
},
{
facetType: 'term',
field: 'resources.edges.node.name_size',
Expand All @@ -68,7 +73,7 @@ const config = {
nullFilter:
'{"op":"<=","content":{"field":"resources.totalCount","value":0}}',
default: true,
},
},
{
facetType: 'term',
field: 'resources.edges.node.name',
Expand All @@ -77,7 +82,7 @@ const config = {
nullFilter:
'{"op":"<=","content":{"field":"resources.totalCount","value":0}}',
default: true,
},
},
{
facetType: 'term',
field: 'resources.edges.node.size',
Expand All @@ -86,7 +91,7 @@ const config = {
nullFilter:
'{"op":"<=","content":{"field":"resources.totalCount","value":0}}',
default: true,
},
},
{
facetType: 'term',
field: 'resources.edges.node.image',
Expand All @@ -95,7 +100,7 @@ const config = {
nullFilter:
'{"op":"<=","content":{"field":"resources.totalCount","value":0}}',
default: true,
}
},
],
tableConfig: {
itemsType: 'Testing Perfs',
Expand All @@ -117,15 +122,15 @@ const config = {
linkField: 'url',
sortable: true,
default: true,
},
},
{
name: 'Started At',
field: 'startedAt',
fieldType: 'date',
sortField: 'startedAt',
sortable: true,
default: true,
},
},
{
name: 'Duration (s)',
field: 'duration',
Expand Down Expand Up @@ -158,7 +163,7 @@ const config = {
sortField: 'disabled_by',
sortable: true,
default: true,
},
},
],
},
};
Expand Down

0 comments on commit 47d8d46

Please sign in to comment.