Tag changeset with Osmose issue closed counts

This seems more useful than tagging with a list of joined coordinates
which quickly becomes truncated due to tag value length.

Adds a tag per issue type similar to iDs own validation.
This commit is contained in:
SilentSpike
2019-12-30 13:08:13 +00:00
parent d4723ec9e2
commit a068cdfc59
2 changed files with 11 additions and 9 deletions
+3 -3
View File
@@ -150,9 +150,9 @@ export function uiCommit(context) {
}
}
if (services.osmose) {
var osmoseClosed = services.osmose.getClosedIDs();
if (osmoseClosed.length) {
tags['closed:osmose'] = osmoseClosed.join(';').substr(0, 255);
var osmoseClosed = services.osmose.getClosedCounts();
for (var issueType in osmoseClosed) {
tags['closed:osmose:' + issueType] = osmoseClosed[issueType].toString().substr(0, 255);
}
}