mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 17:23:21 -05:00
Updated htmlReportGenerator to work with 4 levels severity model (#19928)
Co-authored-by: Vladimir Chernov <v-chvlad@microsoft.com>
This commit is contained in:
@@ -97,7 +97,10 @@ export class HTMLReportBuilder {
|
||||
<div>
|
||||
<div class="target">${targetResults[0].targetType === azdata.sqlAssessment.SqlAssessmentTargetType.Server ? LocalizedStrings.RESULTS_FOR_INSTANCE : LocalizedStrings.RESULTS_FOR_DATABASE}: ${targetResults[0].targetName}</div>
|
||||
${this.buildSeveritySection(LocalizedStrings.REPORT_ERROR, targetResults.filter(item => item.level === 'Error'))}
|
||||
${this.buildSeveritySection(LocalizedStrings.REPORT_HIGH, targetResults.filter(item => item.level === 'High'))}
|
||||
${this.buildSeveritySection(LocalizedStrings.REPORT_WARNING, targetResults.filter(item => item.level === 'Warning'))}
|
||||
${this.buildSeveritySection(LocalizedStrings.REPORT_MEDIUM, targetResults.filter(item => item.level === 'Medium'))}
|
||||
${this.buildSeveritySection(LocalizedStrings.REPORT_LOW, targetResults.filter(item => item.level === 'Low'))}
|
||||
${this.buildSeveritySection(LocalizedStrings.REPORT_INFO, targetResults.filter(item => item.level === 'Information'))}
|
||||
</div>`;
|
||||
return content;
|
||||
|
||||
Reference in New Issue
Block a user