summaryrefslogtreecommitdiffstats
path: root/app/common
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2019-10-02 07:30:16 -0700
committerGunnar Mills <gmills@us.ibm.com>2019-10-08 16:01:51 +0000
commitee78862d71b818cffb15b30086fdc707490293c4 (patch)
treee52abba1f39ee4e381facd72e50d6fd9e2d2b3bb /app/common
parentbea45d53e945828151e4a9c5512c1b6617eea008 (diff)
downloadphosphor-webui-ee78862d71b818cffb15b30086fdc707490293c4.tar.gz
phosphor-webui-ee78862d71b818cffb15b30086fdc707490293c4.zip
Add searchable properties to event log filter
The current event log search doesn't match inputs like the event id, severity or priority. This commit will add additional searchable log properties to the search filter so users can enter search terms like 'High' or 'Error' or other visible keywords. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I569112468a9f97034449799f407137f1651cec16
Diffstat (limited to 'app/common')
-rw-r--r--app/common/services/api-utils.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/common/services/api-utils.js b/app/common/services/api-utils.js
index 2b3cac9..23355e1 100644
--- a/app/common/services/api-utils.js
+++ b/app/common/services/api-utils.js
@@ -886,18 +886,12 @@ window.angular && (function(angular) {
content.data[key].AdditionalData.join('\n'),
type: content.data[key].Message,
selected: false,
- search_text:
- ('#' + content.data[key].Id + ' ' +
- severityCode + ' ' +
- content.data[key].Message + ' ' +
- content.data[key].Severity + ' ' +
- content.data[key].AdditionalData.join(' '))
- .toLowerCase(),
meta: false,
confirm: false,
related_items: relatedItems,
eventID: eventID,
description: description,
+ logId: '#' + content.data[key].Id,
data: {key: key, value: content.data[key]}
},
content.data[key]));
OpenPOWER on IntegriCloud