Skip to content

Commit

Permalink
Updated the filter in Dumps
Browse files Browse the repository at this point in the history
- 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 <[email protected]>
  • Loading branch information
Nikhil-Ashoka committed Jan 8, 2025
1 parent 7e477ea commit efeaccb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
17 changes: 16 additions & 1 deletion src/store/modules/Logs/DumpsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') && dump.Id.length > 1
? 'Hardware Dump Entry'
: dump.Id.startsWith('2') && dump.Id.length > 1
? 'Hostboot Dump Entry'
: dump.Id.startsWith('3') && dump.Id.length > 1
? 'SBE Dump Entry'
: dump.Id.startsWith('4') && dump.Id.length > 1
? 'OCMB SBE Dump Entry'
: dump.Id.startsWith('A') && dump.Id.length > 1
? 'System Dump Entry'
: dump.Id.startsWith('B') && dump.Id.length > 1
? 'Resource Dump Entry'
: dump.Name
: dump.Name,
id: dump.Id,
location: dump['@odata.id'],
size: dump.AdditionalDataSizeBytes,
Expand Down
11 changes: 7 additions & 4 deletions src/views/Logs/Dumps/Dumps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
},
],
Expand Down

0 comments on commit efeaccb

Please sign in to comment.