Re: [openstreetmap/openstreetmap-website] Set directions starting point to "Show My Location" (PR #5671)

2025-02-13 Thread Marwin Hochfelsner via rails-dev
hlfan left a comment (openstreetmap/openstreetmap-website#5671) This will set the starting point marker regardless of whether the user is on the directions page. ![image](https://github.com/user-attachments/assets/dfe46347-a492-4dfa-8a1b-e69c4fee39ca) -- Reply to this email directly or view i

Re: [openstreetmap/openstreetmap-website] Transition more requests to fetch (PR #5669)

2025-02-13 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 1 commit. 282fd28207cc7287ed5a4c22360f7e6ce3675749 Transition more requests to fetch -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5669/files/659162256f7eec6dcd6afdea7d18cb6a5d565fd0..282fd28207cc7287ed5a4c22360f7e6ce3675749 You are receiving th

Re: [openstreetmap/openstreetmap-website] Transition more requests to fetch (PR #5669)

2025-02-13 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > @@ -71,30 +71,28 @@ OSM.initializeNotesLayer = function (map) { var size = bounds.getSize(); if (size <= OSM.MAX_NOTE_REQUEST_AREA) { - var url = "/api/" + OSM.API_VERSION + "/notes.json?bbox=" + bounds.toBBoxString(); + var url = "

Re: [openstreetmap/openstreetmap-website] Transition more requests to fetch (PR #5669)

2025-02-13 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. >method: "POST", - data: { + headers: { "Content-Type": "application/x-www-form-urlencoded" }, Removed all three. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5669#dis

Re: [openstreetmap/openstreetmap-website] Transition more requests to fetch (PR #5669)

2025-02-13 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > $(this).hide(); div.find(".loader").show(); -params[csrf_param] = csrf_token; +params.append(csrf_param, csrf_token); Nope, fixed. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetma

Re: [openstreetmap/openstreetmap-website] Transition more requests to fetch (PR #5669)

2025-02-13 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. >$("#browse_status").empty(); -} - -if (XMLHttpRequest.status === 400 && XMLHttpRequest.responseText) { - displayLoadError(XMLHttpRequest.responseText, closeError); -} else if (XMLHttpRequest.statusText) { -

Re: [openstreetmap/openstreetmap-website] Transition more requests to fetch (PR #5669)

2025-02-13 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 1 commit. 659162256f7eec6dcd6afdea7d18cb6a5d565fd0 Transition more requests to fetch -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5669/files/942fc190ebffe9dca6cb1f709da470034dccc823..659162256f7eec6dcd6afdea7d18cb6a5d565fd0 You are receiving th

Re: [openstreetmap/openstreetmap-website] Transition more requests to fetch (PR #5669)

2025-02-13 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > - noteLoader = null; + for (var id in oldNotes) { +noteLayer.removeLayer(oldNotes[id]); + } +}) +.catch(() => {}) > have a no-op catch on all of them? Currently, I only put catches on fetches with Abo

[openstreetmap/openstreetmap-website] Set directions starting point to "Show My Location" (PR #5671)

2025-02-13 Thread Anton Khorev via rails-dev
Answers the question https://github.com/openstreetmap/openstreetmap-website/pull/5635#issuecomment-2646420820. If the location was already acquired with *Show My Location*, it is used as a starting location in *Directions* if - the starting location is empty AND - no `route` param was provided (

Re: [openstreetmap/openstreetmap-website] Create new oauth permission to post changeset comments (#2631)

2025-02-13 Thread Tom Hughes via rails-dev
Closed #2631 as completed via #5666. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/2631#event-16303361719 You are receiving this because you are subscribed to this thread. Message ID: _

Re: [openstreetmap/openstreetmap-website] Comment changesets scope (PR #5666)

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

Re: [openstreetmap/openstreetmap-website] Comment changesets scope (PR #5666)

2025-02-13 Thread Tom Hughes via rails-dev
@tomhughes approved this pull request. Thanks - this looks good now. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5666#pullrequestreview-2616323774 You are receiving this because you are subscribed to this thread. Message ID

Re: [openstreetmap/openstreetmap-website] Comment changesets scope (PR #5666)

2025-02-13 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > allow_write_prefs: modify their user preferences allow_write_diary: create diary entries and comments -allow_write_api: modify the map -allow_read_gpx:read their private GPS traces -allow_write_gpx:

Re: [openstreetmap/openstreetmap-website] Comment changesets scope (PR #5666)

2025-02-13 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 11 commits. 1632d010d3158cc0765fd4cd20cc46d784a31028 Rename api changeset comment tests 4073e0fc4784794eefa9922964cba1f807515e63 Split api changeset comment create fail tests c9057188aab64e39635c4230b117bf98ce667307 Split api changeset comment create scope and terms tests

Re: [openstreetmap/openstreetmap-website] Transition more requests to fetch (PR #5669)

2025-02-13 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > - noteLoader = null; + for (var id in oldNotes) { +noteLayer.removeLayer(oldNotes[id]); + } +}) +.catch(() => {}) So this is what I wasn't sure about - what happens if a fetch is rejected and noth

Re: [openstreetmap/openstreetmap-website] Transition more requests to fetch (PR #5669)

2025-02-13 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > - noteLoader = null; + for (var id in oldNotes) { +noteLayer.removeLayer(oldNotes[id]); + } +}) +.catch(() => {}) Didn't have them there until I tested frantic map movement and AboetErrors started to

Re: [openstreetmap/openstreetmap-website] Transition more requests to fetch (PR #5669)

2025-02-13 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > @@ -71,30 +71,28 @@ OSM.initializeNotesLayer = function (map) { var size = bounds.getSize(); if (size <= OSM.MAX_NOTE_REQUEST_AREA) { - var url = "/api/" + OSM.API_VERSION + "/notes.json?bbox=" + bounds.toBBoxString(); + var url = "

Re: [openstreetmap/openstreetmap-website] Transition more requests to fetch (PR #5669)

2025-02-13 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. >$("#browse_status").empty(); -} - -if (XMLHttpRequest.status === 400 && XMLHttpRequest.responseText) { - displayLoadError(XMLHttpRequest.responseText, closeError); -} else if (XMLHttpRequest.statusText) { -

Re: [openstreetmap/openstreetmap-website] Bump rack from 2.2.10 to 2.2.11 (PR #5665)

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

Re: [openstreetmap/openstreetmap-website] rerun script/misc/update-wiki-pages (PR #5668)

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

Re: [openstreetmap/openstreetmap-website] Copies notes details from first comments to notes table (PR #5667)

2025-02-13 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5667) I think this will do the job, obviously with batches of note IDs in the CTE expression: ```sql WITH first_comment AS( SELECT DISTINCT ON (note_id) * FROM note_comments WHERE note_id BETWEEN 1000 AND 2000 ORDER BY note_id

Re: [openstreetmap/openstreetmap-website] Copies notes details from first comments to notes table (PR #5667)

2025-02-13 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#5667) If it needs to be that complex then it should probably be a rake task not a migration, but I'm pretty sure that is overengineered to an extraordinary degree for something we're going to run once. Why exactly are we getting "fai

Re: [openstreetmap/openstreetmap-website] Comment changesets scope (PR #5666)

2025-02-13 Thread Tom Hughes via rails-dev
@tomhughes requested changes on this pull request. > allow_write_prefs: modify their user preferences allow_write_diary: create diary entries and comments -allow_write_api: modify the map -allow_read_gpx:read their private GPS traces -allow_write_g

[openstreetmap/openstreetmap-website] Allow coveralls CI steps to "fail on error" (Issue #5670)

2025-02-13 Thread Marwin Hochfelsner via rails-dev
hlfan created an issue (openstreetmap/openstreetmap-website#5670) ### URL https://github.com/openstreetmap/openstreetmap-website/actions/workflows/tests.yml ### How to reproduce the issue? Ehm... 1. Make sure the Coveralls API is in maintenance mode or something like that 2. Have a CI task try

Re: [openstreetmap/openstreetmap-website] rerun script/misc/update-wiki-pages (PR #5668)

2025-02-13 Thread Marwin Hochfelsner via rails-dev
hlfan left a comment (openstreetmap/openstreetmap-website#5668) This planned outage was supposed to have ended about two hours from now: https://status.coveralls.io -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5668#issuecommen

Re: [openstreetmap/openstreetmap-website] rerun script/misc/update-wiki-pages (PR #5668)

2025-02-13 Thread Mateusz Konieczny via rails-dev
matkoniecz left a comment (openstreetmap/openstreetmap-website#5668) CI failed as Coveralls ( https://github.com/openstreetmap/openstreetmap-website/actions/runs/13311873880/job/37176216996#step:15:183 ) died with `Error: Method Not Allowed (405)` -- Reply to this email directly or view it on

[openstreetmap/openstreetmap-website] Transition more requests to fetch (PR #5669)

2025-02-13 Thread Marwin Hochfelsner via rails-dev
### Description Moves all AJAX requests that don't need OAuth to fetch. (except Matomo as this fetches a script) ### How has this been tested? Logpoints and quite a bit of erratic map movement to check for aborts You can view, comment on, or merge this pull request online at: https://github.c

Re: [openstreetmap/openstreetmap-website] rerun script/misc/update-wiki-pages (PR #5668)

2025-02-13 Thread github-actions[bot] via rails-dev
github-actions[bot] left a comment (openstreetmap/openstreetmap-website#5668) 1 Warning :warning: Number of updated lines of code is too large to be in one PR. Perhaps it should be separated into two or more? Gener

[openstreetmap/openstreetmap-website] rerun script/misc/update-wiki-pages (PR #5668)

2025-02-13 Thread Mateusz Konieczny via rails-dev