From 47d8d462c2d3e3e51c5bc60800e98255532b0861 Mon Sep 17 00:00:00 2001 From: Francois Gerthoffert Date: Tue, 19 Jul 2022 09:22:48 +0200 Subject: [PATCH] Improvements to config and mapping --- src/components/testingPerfs/esMapping.ts | 6 +++++ src/components/testingPerfs/zConfig.ts | 33 ++++++++++++++---------- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/src/components/testingPerfs/esMapping.ts b/src/components/testingPerfs/esMapping.ts index 671dded..53b583c 100644 --- a/src/components/testingPerfs/esMapping.ts +++ b/src/components/testingPerfs/esMapping.ts @@ -23,6 +23,12 @@ properties: keyword: type: keyword ignore_above: 256 + group: + type: text + fields: + keyword: + type: keyword + ignore_above: 256 owner: properties: id: diff --git a/src/components/testingPerfs/zConfig.ts b/src/components/testingPerfs/zConfig.ts index fb09728..531b6e6 100644 --- a/src/components/testingPerfs/zConfig.ts +++ b/src/components/testingPerfs/zConfig.ts @@ -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', @@ -47,8 +54,7 @@ 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, }, { @@ -56,10 +62,9 @@ const config = { 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', @@ -68,7 +73,7 @@ const config = { nullFilter: '{"op":"<=","content":{"field":"resources.totalCount","value":0}}', default: true, - }, + }, { facetType: 'term', field: 'resources.edges.node.name', @@ -77,7 +82,7 @@ const config = { nullFilter: '{"op":"<=","content":{"field":"resources.totalCount","value":0}}', default: true, - }, + }, { facetType: 'term', field: 'resources.edges.node.size', @@ -86,7 +91,7 @@ const config = { nullFilter: '{"op":"<=","content":{"field":"resources.totalCount","value":0}}', default: true, - }, + }, { facetType: 'term', field: 'resources.edges.node.image', @@ -95,7 +100,7 @@ const config = { nullFilter: '{"op":"<=","content":{"field":"resources.totalCount","value":0}}', default: true, - } + }, ], tableConfig: { itemsType: 'Testing Perfs', @@ -117,7 +122,7 @@ const config = { linkField: 'url', sortable: true, default: true, - }, + }, { name: 'Started At', field: 'startedAt', @@ -125,7 +130,7 @@ const config = { sortField: 'startedAt', sortable: true, default: true, - }, + }, { name: 'Duration (s)', field: 'duration', @@ -158,7 +163,7 @@ const config = { sortField: 'disabled_by', sortable: true, default: true, - }, + }, ], }, };