Problems: add min severity filter

This commit is contained in:
Alexander Zobnin
2020-05-15 19:05:07 +03:00
parent b94a6c4841
commit 5034c2ca90
5 changed files with 25 additions and 2 deletions

View File

@@ -132,6 +132,7 @@ function migrateOptions(panel) {
return {
hostsInMaintenance: panel.hostsInMaintenance,
sortProblems: panel.sortTriggersBy?.value === 'priority' ? 'priority' : 'default',
minSeverity: 0,
acknowledged: acknowledged,
limit: limit,
};

View File

@@ -67,6 +67,7 @@ describe('Triggers Panel schema migration', () => {
hostsInMaintenance: false,
acknowledged: 0,
sortProblems: 'default',
minSeverity: 0,
limit: 10,
},
}