Skip to content

Commit efeaccb

Browse files
committed
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 <a.nikhil@ibm.com>
1 parent 7e477ea commit efeaccb

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

src/store/modules/Logs/DumpsStore.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,22 @@ const DumpsStore = {
1515
state.allDumps = dumps.map((dump) => ({
1616
data: dump.AdditionalDataURI,
1717
dateTime: new Date(dump.Created),
18-
dumpType: dump.Name,
18+
dumpType:
19+
dump.Name === 'System Dump Entry'
20+
? dump.Id.startsWith('0') && dump.Id.length > 1
21+
? 'Hardware Dump Entry'
22+
: dump.Id.startsWith('2') && dump.Id.length > 1
23+
? 'Hostboot Dump Entry'
24+
: dump.Id.startsWith('3') && dump.Id.length > 1
25+
? 'SBE Dump Entry'
26+
: dump.Id.startsWith('4') && dump.Id.length > 1
27+
? 'OCMB SBE Dump Entry'
28+
: dump.Id.startsWith('A') && dump.Id.length > 1
29+
? 'System Dump Entry'
30+
: dump.Id.startsWith('B') && dump.Id.length > 1
31+
? 'Resource Dump Entry'
32+
: dump.Name
33+
: dump.Name,
1934
id: dump.Id,
2035
location: dump['@odata.id'],
2136
size: dump.AdditionalDataSizeBytes,

src/views/Logs/Dumps/Dumps.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,13 @@ export default {
265265
key: 'dumpType',
266266
label: this.$t('pageDumps.table.dumpType'),
267267
values: [
268-
this.$t('pageDumps.table.filter.bmcDumpEntry'),
269-
this.$t('pageDumps.table.filter.hostbootDumpEntry'),
270-
this.$t('pageDumps.table.filter.resourceDumpEntry'),
271-
this.$t('pageDumps.table.filter.systemDumpEntry'),
268+
'BMC Dump Entry',
269+
'Hardware Dump Entry',
270+
'Hostboot Dump Entry',
271+
'SBE Dump Entry',
272+
'OCMB SBE Dump Entry',
273+
'Resource Dump Entry',
274+
'System Dump Entry',
272275
],
273276
},
274277
],

0 commit comments

Comments
 (0)