[openstreetmap/openstreetmap-website] Use changeset tag factory in api changeset json test (PR #5675)

2025-02-14 Thread Anton Khorev via rails-dev
You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5675 -- Commit Summary -- * Use changeset tag factory in api changeset json test -- File Changes -- M test/controllers/api/changesets_controller_test.rb (15) --

[openstreetmap/openstreetmap-website] Check user instead of scope when getting note author info (PR #5674)

2025-02-14 Thread Anton Khorev via rails-dev
Previously it was possible to create a note while authorized but having no write_notes scope. The scope check was added to fix #4362. Currently it's not possible to create notes in this manner and there's a test for that: https://github.com/openstreetmap/openstreetmap-website/blob/f5af8befa9ffe0

[openstreetmap/openstreetmap-website] Remove current_user branch from ApiController#deny_access (PR #5673)

2025-02-14 Thread Anton Khorev via rails-dev
Unreachable because if there's no `doorkeeper_token`, there's also no `current_user`. This is the only place in the api where `current_user` is set: https://github.com/openstreetmap/openstreetmap-website/blob/f5af8befa9ffe0c95f4a3c58d2fbb63a2e971ab0/app/controllers/api_controller.rb#L105 You can

Re: [openstreetmap/openstreetmap-website] Add copyright/attribution message to downloaded map images (PR #5607)

2025-02-14 Thread Paul Norman via rails-dev
pnorman left a comment (openstreetmap/openstreetmap-website#5607) I was originally in favour of optional attribution, but @matkoniecz arguments persuade me to think it should always be there. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-we

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

2025-02-14 Thread Andy Allan via rails-dev
gravitystorm left a comment (openstreetmap/openstreetmap-website#5667) In my own projects, we use a different approach for data migrations. * First, we avoid using rails built-in database migrations. These are great for structure changes, but not for data changes, since they can't be tested. And

[openstreetmap/openstreetmap-website] Add option to override Firefox binary used in system tests (PR #5672)

2025-02-14 Thread Anton Khorev via rails-dev
Addresses #5488 by providing a setting instead of workarounds such as modifying `test/application_system_test_case.rb`. I'm also using these workarounds and it's annoying because you can accidentally commit them. But if there's a setting, I can put it in some file that's ignored by git, for exa

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

2025-02-14 Thread Marwin Hochfelsner via rails-dev
@hlfan approved this pull request. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5671#pullrequestreview-2618029199 You are receiving this because you are subscribed to this thread. Message ID: __

Re: [openstreetmap/openstreetmap-website] Split engine translations into providers and modes (PR #5652)

2025-02-14 Thread Marwin Hochfelsner via rails-dev
hlfan left a comment (openstreetmap/openstreetmap-website#5652) I wanted to split the translations first and move to an engine select and transport mode radio toggle buttons later, as restructuring the engines in an intermediate step seemed the best way to go about it. Doing it as three smaller

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

2025-02-14 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#5671) Updated -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5671#issuecomment-2659435388 You are receiving this because you are subscribed to this thread. Message

Re: [openstreetmap/openstreetmap-website] Split engine translations into providers and modes (PR #5652)

2025-02-14 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#5652) Why would you do lego instead of two selects for mode and provider? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5652#issuecomment-2659415286 You are receivi

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

2025-02-14 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 1 commit. 31639fbf840c7189864617a0bdc2457e481e63cf Set directions starting point to "Show My Location" -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5671/files/31bd74c83ea69efc9bd0f8b92fccd29dd1af656a..31639fbf840c7189864617a0bdc2457e481e

Re: [openstreetmap/openstreetmap-website] Add social profile links (PR #5439)

2025-02-14 Thread David Tsiklauri via rails-dev
@nertc commented on this pull request. > @@ -10,6 +10,35 @@ $(document).ready(function () { var defaultHomeZoom = 12; var map, marker, deleted_lat, deleted_lon; + if ($("#social_links").length) { +$("#add-social-link").click(function (event) { + event.preventDefault(); + c

Re: [openstreetmap/openstreetmap-website] Add social profile links (PR #5439)

2025-02-14 Thread David Tsiklauri via rails-dev
@nertc pushed 1 commit. 75cdfa75197d927b7723c87a8b79606a5b318130 Add social profile links -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5439/files/922a34e9903a0f5ec7dde390d9a225895ef8d1ab..75cdfa75197d927b7723c87a8b79606a5b318130 You are receiving this becaus

Re: [openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)

2025-02-14 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > @@ -4,24 +4,24 @@ "@aashutoshrathi/word-wrap@^1.2.3": version "1.2.6" - resolved "https://registry.yarnpkg.com/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz#bd9154aec9983f77b3a034ecaa015c2e4201f6cf"; + resolved "https://registry.npmjs.or

Re: [openstreetmap/openstreetmap-website] Replace var in javascript with let/const (PR #5558)

2025-02-14 Thread Marwin Hochfelsner via rails-dev
hlfan left a comment (openstreetmap/openstreetmap-website#5558) > All occurrences of `var` are changed with `let/const`. Checked all changed > variables and `let` and `const` are set accordingly (every variable that is > not changed after declaration, is `const`). [ESLint concurs](https://gith

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

2025-02-14 Thread Nenad Vujicic via rails-dev
nenad-vujicic left a comment (openstreetmap/openstreetmap-website#5667) > I think this will do the job, obviously with batches of note IDs in the CTE > expression: > Thanks! I think I fixed it (with the latest push). Here is the code: ```ruby Note.in_batches(:of => 1000) do |notes| note_ids =

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

2025-02-14 Thread Nenad Vujicic via rails-dev
@nenad-vujicic pushed 1 commit. dbd15559df90af44f226d8843b9ca312a8672649 Copies description, user_id and user_ip to notes -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5667/files/757e22a1d37b83b1e5bb2ae6da390dcf4e1d002e..dbd15559df90af44f226d8843b9ca312a8672

Re: [openstreetmap/openstreetmap-website] Replace var in javascript with let/const (PR #5558)

2025-02-14 Thread David Tsiklauri via rails-dev
@nertc approved this pull request. All occurrences of `var` are changed with `let/const`. Checked all changed variables and `let` and `const` are set accordingly (every variable that is not changed after declaration, is `const`). Also spent some time on website to test it generally, if any page

Re: [openstreetmap/openstreetmap-website] API active blocks list (PR #5452)

2025-02-14 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 3 commits. 6d558003aa5672a27362ae3f42627df50bd81ad1 Add active blocks list api endpoint with empty response 9ec7e8c888cc534bcdc2632a34f27e5853bb4241 Skip blocks check when getting active blocks list f6572e3712630666a219a6cd6d2fcfcde8cea66c Output active blocks list -- Vi

Re: [openstreetmap/openstreetmap-website] API element resources - redaction paths (PR #5656)

2025-02-14 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 6 commits. 953502d226b377d5a8ade8c00c6fd61b1158 Add base old element redactions controller 98f8f7d4438ab9e6485d6496510ca52311ed36e9 Create node version redaction resource e5dcc8b045c1bb5e8336045c7717c1e5df6d5f76 Create way version redaction resource 01d489f753bea836dcf4

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

2025-02-14 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#2631) > When a user comments on a changeset, they will be automatically subscribed > anyway, and the permission should also include those operations. I'm not sure what to do with subscribe/unsubscribe. Commenting a changeset subscr

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

2025-02-14 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 2 commits. e87a71dca1a3001b736ddbc2486de9fb0de8acb3 Add button for directions from location 1296aeec2920a1a9834c55129132db63efe5b02b Associate search input with route destination instead of departure -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/p

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

2025-02-14 Thread Holger Jeromin via rails-dev
@HolgerJeromin approved this pull request. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5669#pullrequestreview-2617098758 You are receiving this because you are subscribed to this thread. Message ID: __

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

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