From 1efdcb60ba98d1fd5000b68c2ccf2e6ca64387da Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Thu, 21 Jul 2022 11:31:10 +0200 Subject: [PATCH] update osmose service: * change API requests to use `.geojson` ending * drop issue type 8360-1, which doesn't seem top be supported anymore fixes #9208 --- CHANGELOG.md | 2 ++ data/qa_data.json | 1 - modules/services/osmose.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 670ff92fe..75ab0f032 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,6 +61,7 @@ _Breaking developer changes, which may affect downstream projects or sites that * Fix missing styling when rendering of proposed footway/cycleway/path bridges ([#9172], thanks [@k-yle]) * Fix some boundary lines (and preset) not hidden by the map features filter ([#9171], thanks [@k-yle]) * Fix iD using invalid user selected imagery ([#8732], thanks [@renancleyson-dev]) +* Make osmose QA service work again by upgrading API calls to the newest API version ([#9208]) #### :rocket: Presets * Disable taginfo suggestions for the `via` field ([#9140], thanks [@k-yle]) * Treat `surface=chipseal` as a paved surface ([#9139], thanks [@k-yle]) @@ -91,6 +92,7 @@ _Breaking developer changes, which may affect downstream projects or sites that [#9169]: https://github.com/openstreetmap/iD/issues/9169 [#9171]: https://github.com/openstreetmap/iD/pull/9171 [#9172]: https://github.com/openstreetmap/iD/pull/9172 +[#9208]: https://github.com/openstreetmap/iD/issues/9208 [@furkanmutlu]: https://github.com/furkanmutlu [@JackNUMBER]: https://github.com/JackNUMBER [@aaditya0000]: https://github.com/aaditya0000 diff --git a/data/qa_data.json b/data/qa_data.json index e063e3a1f..9091132c6 100644 --- a/data/qa_data.json +++ b/data/qa_data.json @@ -118,7 +118,6 @@ "8300-118": "fas-tachometer-alt", "8300-119": "fas-tachometer-alt", "8300-120": "fas-tachometer-alt", - "8360-1": "temaki-bench", "8360-2": "maki-bicycle", "8360-3": "temaki-security_camera", "8360-4": "temaki-fire_hydrant", diff --git a/modules/services/osmose.js b/modules/services/osmose.js index eb5a2c506..a8f2a334c 100644 --- a/modules/services/osmose.js +++ b/modules/services/osmose.js @@ -123,7 +123,7 @@ export default { if (_cache.loadedTile[tile.id] || _cache.inflightTile[tile.id]) return; let [ x, y, z ] = tile.xyz; - let url = `${_osmoseUrlRoot}/issues/${z}/${x}/${y}.json?` + utilQsString(params); + let url = `${_osmoseUrlRoot}/issues/${z}/${x}/${y}.geojson?` + utilQsString(params); let controller = new AbortController(); _cache.inflightTile[tile.id] = controller;