Re: [openstreetmap/openstreetmap-website] Get directions using fetch (PR #5642)

2025-02-09 Thread Holger Jeromin via rails-dev
@HolgerJeromin commented on this pull request. > @@ -99,22 +99,18 @@ language: I18n.currentLocale() } }) -}; -return $.ajax({ - url: OSM.FOSSGIS_VALHALLA_URL, - data, - dataType: "json", - success: functio

[openstreetmap/openstreetmap-website] Enable more linting rules (PR #5643)

2025-02-09 Thread Marwin Hochfelsner via rails-dev
Found some that improve legibility. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5643 -- Commit Summary -- * Enable sort-keys for eslint.js * Enable more linting rules -- File Changes -- M app/assets/javas

Re: [openstreetmap/openstreetmap-website] Get directions using fetch (PR #5642)

2025-02-09 Thread Holger Jeromin via rails-dev
This pushes json parsing off the js main thread. Hurray -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5642#issuecomment-2647180475 You are receiving this because you are subscribed to this thread. Message ID: __

Re: [openstreetmap/openstreetmap-website] Get directions using fetch (PR #5642)

2025-02-09 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > @@ -99,22 +99,18 @@ language: I18n.currentLocale() } }) -}; -return $.ajax({ - url: OSM.FOSSGIS_VALHALLA_URL, - data, - dataType: "json", - success: function ({ tri

Re: [openstreetmap/openstreetmap-website] Get directions using fetch (PR #5642)

2025-02-09 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 1 commit. 14f5e6345dc4ea14af774d33b41a039483aa8877 Return empty after callback -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5642/files/b4f0af369d005b15525b775d750cf83838077ffe..14f5e6345dc4ea14af774d33b41a039483aa8877 You are receiving this bec

Re: [openstreetmap/openstreetmap-website] Use subqueries to find nested members more efficiently (PR #5636)

2025-02-09 Thread Anton Khorev via rails-dev
Merged #5636 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5636#event-16239614619 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

Re: [openstreetmap/openstreetmap-website] Use subqueries to find nested members more efficiently (PR #5636)

2025-02-09 Thread Anton Khorev via rails-dev
Merged, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5636#issuecomment-2646644395 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev

Re: [openstreetmap/openstreetmap-website] API element resources (PR #5590)

2025-02-09 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 13 commits. f2ed3c1935610e0409a78c9d4d77b82513048fb4 Make api old element show paths resourceful a72199a79183c66684a35e40ce95eb77217035f3 Move api node version test to integration tests 4c5f7b8913eb4c0c71ecc9dbf9848e6567ca56e7 Test api old node show action without integra

[openstreetmap/openstreetmap-website] Get directions using fetch (PR #5642)

2025-02-09 Thread Marwin Hochfelsner via rails-dev
Start to move from $.ajax to fetch with the thing I recently restructured. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5642 -- Commit Summary -- * Get directions using fetch -- File Changes -- M app/assets/

Re: [openstreetmap/openstreetmap-website] Allow getting a GPX in the browser outside openstreetmap.org (Issue #5639)

2025-02-09 Thread Tom Hughes via rails-dev
This doesn't seem to be an authentication issue? You seem to be reaching the API endpoint (which I don't believe needs authentication) and you're getting a redirect to S3 which is not something we can avoid unless we build our own proxy. The problem is that the redirect is being rejected by COR

[openstreetmap/openstreetmap-website] Make API old element show paths resourceful (PR #5641)

2025-02-09 Thread Anton Khorev via rails-dev
Declares `versions` resources with `show` action on these API paths: `node/:id/:version`, `way/:id/:version`, `relation/:id/:version`. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5641 -- Commit Summary -- * Make

Re: [openstreetmap/openstreetmap-website] Move eslint ignore rules to the configuration file (PR #5640)

2025-02-09 Thread Anton Khorev via rails-dev
Merged, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5640#issuecomment-2646580394 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev

Re: [openstreetmap/openstreetmap-website] Move eslint ignore rules to the configuration file (PR #5640)

2025-02-09 Thread Anton Khorev via rails-dev
Merged #5640 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5640#event-16239310120 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

Re: [openstreetmap/openstreetmap-website] Set iD map param with array (PR #5632)

2025-02-09 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. >} else if (id.data("lat") && id.data("lon")) { -params.set("map", "16/" + id.data("lat") + "/" + id.data("lon")); +map = [null, id.data("lat"), id.data("lon")]; Did you intend to change the zoom from 16 to 17 here? -- Reply to this email

Re: [openstreetmap/openstreetmap-website] API element resources - nested elements (PR #5626)

2025-02-09 Thread Tom Hughes via rails-dev
Looks good to me, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5626#issuecomment-2646346208 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] Increase usage of URLSearchParams (PR #5634)

2025-02-09 Thread Tom Hughes via rails-dev
Looks good to me, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5634#issuecomment-2646345077 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] Lessen code repetition (PR #5633)

2025-02-09 Thread Tom Hughes via rails-dev
Looks good to me, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5633#issuecomment-2646349452 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] Increase usage of URLSearchParams (PR #5634)

2025-02-09 Thread Tom Hughes via rails-dev
Merged #5634 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5634#event-16238524313 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

Re: [openstreetmap/openstreetmap-website] Add button for directions from location (PR #5635)

2025-02-09 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > @@ -11,7 +11,7 @@ OSM.Search = function (map) { e.preventDefault(); var query = $(this).closest("form").find("input[name=query]").val(); if (query) { - OSM.router.route("/directions?from=" + encodeURIComponent(query) + OSM.formatH

Re: [openstreetmap/openstreetmap-website] API element resources - nested elements (PR #5626)

2025-02-09 Thread Tom Hughes via rails-dev
Merged #5626 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5626#event-16238524312 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

Re: [openstreetmap/openstreetmap-website] Lessen code repetition (PR #5633)

2025-02-09 Thread Tom Hughes via rails-dev
Merged #5633 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5633#event-16238524325 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

Re: [openstreetmap/openstreetmap-website] Add button for directions from location (PR #5635)

2025-02-09 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 1 commit. 0a63e7cb90f0535a948c5768cb05f07ba87c54f4 Add button for directions from location -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5635/files/17699d3bfc0895f1a2c2417ca6e383e65c7056e4..0a63e7cb90f0535a948c5768cb05f07ba87c54f4 You are recei

Re: [openstreetmap/openstreetmap-website] API element resources (PR #5590)

2025-02-09 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 5 commits. 8b60b0236c0b0b51d6921df2cf31731108c331fb Add show_redactions checks to api old element index tests d3652e7909255105ef185eea82c7059926f514b3 Test redacted element state after redaction action f268d3393f06786e9958fae2a60d7297581ab2ed Test api old element index acc

Re: [openstreetmap/openstreetmap-website] Add button for directions from location (PR #5635)

2025-02-09 Thread Anton Khorev via rails-dev
How is adding another *show location* button better than integrating directions with the existing button? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5635#issuecomment-2646369474 You are receiving this because you are subscrib

[openstreetmap/openstreetmap-website] Fix grammar and punctuation in CONTRIBUTING md (PR #5637)

2025-02-09 Thread Serge Croisé via rails-dev