From 234139e5edf1f211c610cd0ecfb0bacb021e244a Mon Sep 17 00:00:00 2001 From: Nikhil Ashoka Date: Tue, 7 Jan 2025 14:38:28 +0530 Subject: [PATCH] Updated the filter in Dumps - In 1110, The Resource Dump, Hostboot Dump and System Dump shows up as System Dump Entry. - Checking the dump Id and showing the name as their original type. - Defect: https://jazz07.rchland.ibm.com:13443/jazz/web/projects/CSSD#action=com.ibm.team.workitem.viewWorkItem&id=670989 Signed-off-by: Nikhil Ashoka --- src/store/modules/Logs/DumpsStore.js | 17 ++++++++++++++++- src/views/Logs/Dumps/Dumps.vue | 11 +++++++---- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/store/modules/Logs/DumpsStore.js b/src/store/modules/Logs/DumpsStore.js index b87528f26b..95a5d98b85 100644 --- a/src/store/modules/Logs/DumpsStore.js +++ b/src/store/modules/Logs/DumpsStore.js @@ -15,7 +15,22 @@ const DumpsStore = { state.allDumps = dumps.map((dump) => ({ data: dump.AdditionalDataURI, dateTime: new Date(dump.Created), - dumpType: dump.Name, + dumpType: + dump.Name === 'System Dump Entry' + ? dump.Id.startsWith('0') + ? 'Hardware Dump Entry' + : dump.Id.startsWith('2') + ? 'Hostboot Dump Entry' + : dump.Id.startsWith('3') + ? 'SBE Dump Entry' + : dump.Id.startsWith('4') + ? 'OCMB SBE Dump Entry' + : dump.Id.startsWith('A') + ? 'System Dump Entry' + : dump.Id.startsWith('B') + ? 'Resource Dump Entry' + : dump.Name + : dump.Name, id: dump.Id, location: dump['@odata.id'], size: dump.AdditionalDataSizeBytes, diff --git a/src/views/Logs/Dumps/Dumps.vue b/src/views/Logs/Dumps/Dumps.vue index 94ed64e847..80646feea9 100644 --- a/src/views/Logs/Dumps/Dumps.vue +++ b/src/views/Logs/Dumps/Dumps.vue @@ -265,10 +265,13 @@ export default { key: 'dumpType', label: this.$t('pageDumps.table.dumpType'), values: [ - this.$t('pageDumps.table.filter.bmcDumpEntry'), - this.$t('pageDumps.table.filter.hostbootDumpEntry'), - this.$t('pageDumps.table.filter.resourceDumpEntry'), - this.$t('pageDumps.table.filter.systemDumpEntry'), + 'BMC Dump Entry', + 'Hardware Dump Entry', + 'Hostboot Dump Entry', + 'SBE Dump Entry', + 'OCMB SBE Dump Entry', + 'Resource Dump Entry', + 'System Dump Entry', ], }, ],