Don't use the issue loc as a differentiator for all issues

This commit is contained in:
Quincy Morgan
2019-04-30 13:16:03 -07:00
parent 26f1e29072
commit a4ebbaf7f5
2 changed files with 3 additions and 7 deletions
+1 -7
View File
@@ -29,19 +29,13 @@ export function validationIssue(attrs) {
parts.push(this.subtype);
}
// include entities this issue is for
// include the entities this issue is for
// (sort them so the id is deterministic)
if (this.entityIds) {
var entityKeys = this.entityIds.slice().sort();
parts.push.apply(parts, entityKeys);
}
// include loc since two separate issues can have an
// idential type and entities, e.g. in crossing_ways
if (this.loc) {
parts.push.apply(parts, this.loc);
}
return parts.join(':');
}
+2
View File
@@ -494,6 +494,8 @@ export function validationCrossingWays() {
edges: crossing.edges,
connectionTags: connectionTags
},
// differentiate based on the loc since two ways can cross multiple times
hash: JSON.stringify(crossing.crossPoint),
loc: crossing.crossPoint,
fixes: fixes
});