Fix an issue where stale warning counts would still appear in changeset tags if they had all been resolved (re: #6123)

This commit is contained in:
Quincy Morgan
2019-04-07 14:29:05 -07:00
parent eafd2cec3e
commit 5e4e2ff7ee

View File

@@ -114,6 +114,11 @@ export function uiCommit(context) {
}
}
for (var key in tags) {
// remove existing warning counts
if (key.match(/^warnings:/)) delete tags[key];
}
var warningCountsByType = {};
context.validator().getWarnings().forEach(function(warning) {
// deletion count can be derived so don't tag that warning in the changeset