mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Exclude 'fixme'/'help_request' warnings from changeset tags.
They still appear in the issue list and in the entity editor. (closes #8603)
This commit is contained in:
@@ -193,7 +193,10 @@ export function uiCommit(context) {
|
||||
|
||||
// add counts of warnings generated by the user's edits
|
||||
var warnings = context.validator()
|
||||
.getIssuesBySeverity({ what: 'edited', where: 'all', includeIgnored: true, includeDisabledRules: true }).warning;
|
||||
.getIssuesBySeverity({ what: 'edited', where: 'all', includeIgnored: true, includeDisabledRules: true })
|
||||
.warning
|
||||
.filter(function(issue) { return issue.type !== 'help_request'; }); // exclude 'fixme' and similar - #8603
|
||||
|
||||
addIssueCounts(warnings, 'warnings');
|
||||
|
||||
// add counts of issues resolved by the user's edits
|
||||
|
||||
@@ -12,6 +12,11 @@ export function uiCommitWarnings(context) {
|
||||
|
||||
for (var severity in issuesBySeverity) {
|
||||
var issues = issuesBySeverity[severity];
|
||||
|
||||
if (severity !== 'error') { // exclude 'fixme' and similar - #8603
|
||||
issues = issues.filter(function(issue) { return issue.type !== 'help_request'; });
|
||||
}
|
||||
|
||||
var section = severity + '-section';
|
||||
var issueItem = severity + '-item';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user