hotosm / tasking-manager

Tasking Manager - The tool to team up for mapping in OpenStreetMap
https://wiki.openstreetmap.org/wiki/Tasking_Manager
BSD 2-Clause "Simplified" License
509 stars 275 forks source link

iD editor version upgrade #5780

Closed ramyaragupathy closed 1 month ago

ramyaragupathy commented 1 year ago

We are still using a somewhat outdated version of iD (v2.21.1 – the most recent version of iD is v2.25.2) in the tasking manager.

cc @eternaltyro @emi420 @Aadesh-Baral @HelNershingThapa

ramyaragupathy commented 1 year ago

This should also cover the maxar key update - which was applied as a hotfix through a temporary solution.

cyrossignol commented 1 year ago

Hello, I updated iD to version 2.26.2 for our use at tasks.opensidewalks.com here: OpenSidewalks@786c5108b03713463ed77194be13638ef03fd4a8

I reworked the integration to avoid the direct bundling of iD code with the tasking manager JS. This gets around an issue with the output of iD's newer esbuild bundling system and significantly improves the tasking manager build time. I'm inclined to apply the same treatment for RapiD to remove the need for the special upstream releases.

Let me know if this is worth a PR or if HOT is pursuing a different upgrade strategy.

ramyaragupathy commented 1 year ago

@cyrossignol - thanks for checking on this. Your idea sounds good, could you please go ahead making a PR for our team to go through this in detail?

cc @HelNershingThapa @tsmock @d-rita

tsmock commented 1 year ago

I'll have to check and see how well it works with Rapid. Of specific note, I don't know if waiting for Rapid to finish "loading" (via script.onload) will work -- Rapid does a lot of setup async now (current main, should be released sometime soon).

I haven't touched the iD code, but iD also doesn't have as much backend changes going on.

tsmock commented 1 year ago

I've been playing around with the script loading stuff since Rapid v2.1 was released.

Some comments on how it improved the build experience and could (potentially) make it much easier to update out-of-band:

If anyone wants to play with that (for Rapid), I've got a branch here: https://github.com/facebook/OSM-HOT-Tasking-Manager/tree/chore/update-rapid

Notes:

emi420 commented 2 months ago

Check this branch, I've uploaded a working version here:

https://github.com/hotosm/tasking-manager/tree/upgrade/id