Re: [openstreetmap/openstreetmap-website] Documenting API using Swagger / rswag (#3107)

2025-04-25 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#3107) The two screenshots I posted initially were based on a similar approach (obviously without using chatgpt back then). The main goal was to declare the API structure, in order to extract it as OpenAPI format (OAS3) later on. I have

Re: [openstreetmap/openstreetmap-website] Update to rack 3 (PR #5923)

2025-04-13 Thread mmd via rails-dev
@mmd-osm commented on this pull request. > @@ -247,7 +247,7 @@ def respond_to_timeout # To work round this we call rewind on the body here, which is added # as a filter, to force it to be fetched from Apache into a file. def fetch_body -request.body.rewind +request.body&.rewind

Re: [openstreetmap/openstreetmap-website] Attribution example simpler (Issue #5990)

2025-05-07 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5990) The copyright page will change shortly. Can you check https://github.com/osmfoundation/ewg_bidding/pull/20 + #5989 for planned updates? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/opens

Re: [openstreetmap/openstreetmap-website] Adds non-mutable note tags support (PR #5344)

2025-02-17 Thread mmd via rails-dev
@mmd-osm commented on this pull request. > +# Table name: note_tags +# +# note_id :bigint(8)not null, primary key +# k :string default(""), not null, primary key +# v :string default(""), not null +# +# Foreign Keys +# +# note_tags_id_fkey (note_id =>

Re: [openstreetmap/openstreetmap-website] Directions on open street maps website only in Kilometers (Issue #5759)

2025-03-06 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5759) Duplicate of #1747 -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5759#issuecomment-2705667755 You are receiving this because you are subscribed to this thread.

Re: [openstreetmap/openstreetmap-website] Show new/modified/deleted count in place of " šŸ–Š" in changeset card (Issue #5758)

2025-03-07 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5758) I’m sure you’d need to backfill this information for all changesets, if you don’t like users complaining about inconsistent numbers in the future. -- Reply to this email directly or view it on GitHub: https://github.com/openstree

Re: [openstreetmap/openstreetmap-website] Directions on open street maps website only in Kilometers (Issue #5760)

2025-03-06 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5760) Duplicate of #5759 -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5760#issuecomment-2705722791 You are receiving this because you are subscribed to this thread.

Re: [openstreetmap/openstreetmap-website] Show new/modified/deleted count in place of " šŸ–Š" in changeset card (Issue #5758)

2025-03-06 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5758) I suppose this will be rather slow, because we don’t store this information on changeset level. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5758#issuecomment

Re: [openstreetmap/openstreetmap-website] Show new/modified/deleted count in place of " šŸ–Š" in changeset card (Issue #5758)

2025-03-07 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5758) I just checked this topic from cgimap side. It shouldn't be too much effort. We anyway have all details about created/modified/deleted nodes/way/relations. It boils down to an additional `UPDATE changesets SET created_objs = creat

Re: [openstreetmap/openstreetmap-website] Show new/modified/deleted count in place of " šŸ–Š" in changeset card (Issue #5758)

2025-03-11 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5758) Yes, I know those. I guess you need to keep bugging folks over at OSMUS: https://openstreetmap.us/our-work/charter-projects/osmcha/ -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreet

Re: [openstreetmap/openstreetmap-website] Show new/modified/deleted count in place of " šŸ–Š" in changeset card (Issue #5758)

2025-03-11 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5758) > OSMCha is very painful to use, 18 seconds load time for each changeset to > review, 40 seconds to load the list of changesets If there's a performance issue with OSMCha, why not report it in their repo in the first place? https

[openstreetmap/openstreetmap-website] Added WebP as new output format for map download (PR #5741)

2025-03-01 Thread mmd via rails-dev
We're supporting WebP format for map downloads now. The change is a left over from https://github.com/openstreetmap/openstreetmap-website/pull/5607#issuecomment-2660979843 You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/p

Re: [openstreetmap/openstreetmap-website] Installation on Ubuntu 24.04 Failure with Mini Racer (Issue #5733)

2025-03-01 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5733) @jessequinn : it would be good if you could post error messages as text rather than screenshot. Search here on Github doesn't work that well with images. -- Reply to this email directly or view it on GitHub: https://github.com/op

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

2025-02-19 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5639) Elsewhere I've seen that `:options` has been added to the list of methods in cors.rb (e.g. https://github.com/mastodon/mastodon/blob/main/config/initializers/cors.rb#L23), while it's not included in our version: https://github.c

Re: [openstreetmap/openstreetmap-website] Update minimum ruby version to 3.2 (PR #5715)

2025-02-21 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5715) By the way, are we already using YJIT or planning to do so in the future? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5715#issuecomment-2675766655 You are recei

Re: [openstreetmap/openstreetmap-website] Explain "Redirect URIs" and "Confidential applications" when creating an OAuth 2 application (Issue #5714)

2025-02-21 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5714) For non-confidential apps, PKCE flow is relevant, which the wiki page doesn’t explain in much detail. You could refer to https://doorkeeper.gitbook.io/guides/ruby-on-rails/pkce-flow as a starting point. -- Reply to this email d

Re: [openstreetmap/openstreetmap-website] Browse icons as svg (PR #5080)

2025-02-20 Thread mmd via rails-dev
Closed #5080. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5080#event-16387647115 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing

Re: [openstreetmap/openstreetmap-website] Browse icons as svg (PR #5080)

2025-02-20 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5080) Closing since there were too many breaking upstream changes in the meantime. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5080#issuecomment-2672436660 You are re

Re: [openstreetmap/openstreetmap-website] Show new/modified/deleted count in place of " šŸ–Š" in changeset card (Issue #5758)

2025-03-23 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5758) The most notable thing I find worth porting over from osmcha is the changeset visualization. Other projects need to jump through hoops to generate augmented diffs, and we have direct access to all relevant data and could probably

Re: [openstreetmap/openstreetmap-website] Company Name on Profile Page (PR #5987)

2025-05-07 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5987) It would be good to have a maximum field length, both for home_location_name as well as company. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5987#issuecomment-

Re: [openstreetmap/openstreetmap-website] API versions, capabilities and permissions resources (PR #5979)

2025-05-07 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5979) > "If a client only supports one version they can jump straight to the > versioned capabilities call." Turning off /api/capabilitites and having the clients call the versioned capabilities would still require some changes on the

Re: [openstreetmap/openstreetmap-website] Use require_relative in script/statistics (PR #5997)

2025-05-10 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5997) `ruby ./script/statistics` works with the current code. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5997#issuecomment-2869171433 You are receiving this because

[openstreetmap/openstreetmap-website] Removing legacy OpenID login option (Issue #6020)

2025-05-17 Thread mmd via rails-dev
mmd-osm created an issue (openstreetmap/openstreetmap-website#6020) Before starting a new PR, I wanted to get some feedback, if this login option is working, and if anyone is still using it? My impression is that it is in some broken state for quite a while. I would therefore suggest to remove i

Re: [openstreetmap/openstreetmap-website] Profile heatmap doesn't work in Chrome 136 (Issue #6021)

2025-05-17 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6021) Yes, I've also seen that. I gave it a try, seems to be working ok on Chrome: ![Image](https://github.com/user-attachments/assets/e68150e4-7b2e-4467-9acf-5333e1e80ef5) -- Reply to this email directly or view it on GitHub: https://

Re: [openstreetmap/openstreetmap-website] Profile heatmap doesn't work in Chrome 136 (Issue #6021)

2025-05-17 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6021) Same results here: Chrome Version 128.0.6613.84 on Linux x64 is failing, Firefox is ok. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6021#issuecomment-2888348

Re: [openstreetmap/openstreetmap-website] Fix UserLocationChangeTest (Issue #6022)

2025-05-17 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6022) We never see these screenshots images taken when something is failing: `[Screenshot Image]: /home/runner/work/openstreetmap-website/openstreetmap-website/tmp/screenshots/failures_test_translated_links.png` https://dev.to/ugifract

Re: [openstreetmap/openstreetmap-website] Removing legacy OpenID login option (Issue #6020)

2025-05-20 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6020) @tomhughes: So the issue with the current code seems to be related to ruby-openid, which has been archived a couple of years ago: https://github.com/openid/ruby-openid During callback processing, the user session no longer includ

Re: [openstreetmap/openstreetmap-website] Intermittent CORS issues with editing API (Issue #6028)

2025-05-19 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6028) Isn't that similar to #5987? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6028#issuecomment-2892302476 You are receiving this because you are subscribed to thi

Re: [openstreetmap/openstreetmap-website] Remove legacy OpenID login (PR #6038)

2025-05-25 Thread mmd via rails-dev
@mmd-osm commented on this pull request. > @@ -24,9 +24,8 @@ :include_blank => t("auth.providers.none"), :hide_label => true, :wrapper => { :class => "col-auto mb-0" } %> - <%= f.text_field(:auth_uid, :hide_label => true, :wrapper

Re: [openstreetmap/openstreetmap-website] Remove legacy OpenID login (PR #6038)

2025-05-25 Thread mmd via rails-dev
@mmd-osm pushed 1 commit. 706d167f08d9a5e6eaa55f024e346146e6bfb1f5 Remove legacy OpenID login -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6038/files/a52b33ba96918d3523c9c6e91c1cf218b50e9e25..706d167f08d9a5e6eaa55f024e346146e6bfb1f5 You are receiving this be

Re: [openstreetmap/openstreetmap-website] Remove legacy OpenID login (PR #6038)

2025-05-26 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6038) I also haven't addressed this bit yet: https://github.com/openstreetmap/openstreetmap-website/blob/dcd886e3e37af9b5f0003aec0563eef5a7b02c1e/app/controllers/users_controller.rb#L142-L146 Should we remove it? It seems to be some sor

Re: [openstreetmap/openstreetmap-website] Remove legacy OpenID login (PR #6038)

2025-05-25 Thread mmd via rails-dev
@mmd-osm commented on this pull request. ><% end -%> <% end %> - - <%# :tabindex starts high to allow rendering at the bottom of the template %> - <%= form_tag auth_path(:provider => "openid"), :id => "openid_login_form", :class => "collapse" do %> - - -<%=

Re: [openstreetmap/openstreetmap-website] Remove legacy OpenID login (PR #6038)

2025-05-25 Thread mmd via rails-dev
@mmd-osm commented on this pull request. >$("input#user_avatar").on("change", function () { $("#user_avatar_action_new").prop("checked", true); }); - function enableAuth() { -$("#auth_prompt").hide(); -$("#auth_field").show(); -$("#user_auth_uid").prop("disabled", fals

Re: [openstreetmap/openstreetmap-website] Remove legacy OpenID login (PR #6038)

2025-05-25 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6038) Regarding the `preferred_auth_provider`, I was looking for the exact URL to trigger the different layout. It seems I need to include this parameter along with the respective auth provider in the referer parameter: * http://localh

Re: [openstreetmap/openstreetmap-website] New 'social media links' are not included in the API when querying a user (Issue #6054)

2025-05-26 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6054) I'd say, Mastodon links look almost the same as before: Old: ``` [Edit your OSM profile], make it include My fediverse acount ``` New: ``` https://en.osm.town/@username";> ``` So there's still the "ref="...me" in place. The que

Re: [openstreetmap/openstreetmap-website] New 'social media links' are not included in the API when querying a user (Issue #6054)

2025-05-26 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6054) Ok, please ignore my previous comment. Your bot was relying on the fact that users put in a social media link in their profile description text, which you were able to obtain from the description. With the recent changes, users w

Re: [openstreetmap/openstreetmap-website] New 'social media links' are not included in the API when querying a user (Issue #6054)

2025-05-26 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6054) I think this was already in place for quite some time, and looks like this example: https://en.osm.town/@mapcomplete_edits/114543361361396417 In case people maintained a link to their mastodon account on their osm profile, they w

Re: [openstreetmap/openstreetmap-website] Remove legacy OpenID login (PR #6038)

2025-05-24 Thread mmd via rails-dev
@mmd-osm pushed 1 commit. a52b33ba96918d3523c9c6e91c1cf218b50e9e25 Remove legacy OpenID login -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6038/files/d9c9ea5f1cfa553da2bbc8586a1e83ae60271183..a52b33ba96918d3523c9c6e91c1cf218b50e9e25 You are receiving this be

[openstreetmap/openstreetmap-website] Data layer: display text for http 509 rate limiting errors (PR #6051)

2025-05-24 Thread mmd via rails-dev
This pull request adds human readable HTTP 509 rate limiting error messages. Before: ![b2](https://github.com/user-attachments/assets/a068668c-1218-463f-aec6-3635a10347b9) After: ![b3](https://github.com/user-attachments/assets/6abee1b7-24c7-4649-8280-480e3c7a0f07) You can view, comment on, or m

Re: [openstreetmap/openstreetmap-website] alias_method_chain deprecation (#1602)

2025-05-28 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#1602) @tomhughes : the PR is quite old... `bundle exec rails test` seems to work without deadlock_retry Gem these days. Was there some other reason to add it back then? Can we retire it? -- Reply to this email directly or view it on

Re: [openstreetmap/openstreetmap-website] Include changeset with node instead of loading it while rendering (PR #6058)

2025-05-28 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6058) How much faster is this now compared to the original version? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6058#issuecomment-2916602284 You are receiving this be

Re: [openstreetmap/openstreetmap-website] Implement JSON support for the changeset download API (PR #5973)

2025-05-15 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5973) Thank you for your feedback, in particular for the interesting example about the create action. > I didn't see anyone respond above to @joto's point I think I sort of addressed this one: _I agree that the action attribute doesn

Re: [openstreetmap/openstreetmap-website] Show new/modified/deleted count in place of " šŸ–Š" in changeset card (Issue #5758)

2025-05-15 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5758) @AntonKhorev : can you take a look at the proposed db schema changes and comment if you're ok with them? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5758#iss

Re: [openstreetmap/openstreetmap-website] Implement JSON support for the changeset download API (PR #5973)

2025-05-15 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#5973) So we could probably deploy the cgimap implementation on the dev server (as dedicated entry in https://apis.dev.openstreetmap.org/) for further testing, and get some feedback on the proposed format. The implementation covers chan

[openstreetmap/openstreetmap-website] Remove legacy OpenID login (PR #6038)

2025-05-22 Thread mmd via rails-dev
### Description Fixes #6020 ### How has this been tested? Scenarios tested on local instance: 1. GitHub as single third party provider - Log in / Sign up - Change external authentication on "My Account" from "Github" to "None", and back to "Github", check log in process 2. No third party prov

Re: [openstreetmap/openstreetmap-website] HTTP 500 error on user profile pages (Issue #6023)

2025-05-22 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6023) Let's close this one, the issue has been fixed in the meantime. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6023#issuecomment-2901870479 You are receiving thi

Re: [openstreetmap/openstreetmap-website] TranslateWiki doesn't sync changes (Issue #6036)

2025-05-22 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6036) Maybe @Nikerabbit could help here from TranslateWiki side? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6036#issuecomment-2901866257 You are receiving this bec

Re: [openstreetmap/openstreetmap-website] TranslateWiki doesn't sync changes (Issue #6036)

2025-05-22 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6036) @Nikerabbit : thanks a lot for the super quick fix, much appreciated! -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6036#issuecomment-2901964263 You are receivi

Re: [openstreetmap/openstreetmap-website] When is it used this "not_public_flash" ? (Issue #6035)

2025-05-22 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6035) Not sure what exactly your point is, `not_public_flash` is still in use: https://github.com/openstreetmap/openstreetmap-website/blob/1b63e9e16dff92df226aed707058b7228527bc6e/app/controllers/site_controller.rb#L100 -- Reply to thi

Re: [openstreetmap/openstreetmap-website] Remove legacy OpenID login (PR #6038)

2025-05-22 Thread mmd via rails-dev
@mmd-osm pushed 1 commit. d9c9ea5f1cfa553da2bbc8586a1e83ae60271183 Remove legacy OpenID login -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6038/files/42f4bfc9e341d20275c6a096167acb9cc39a2f49..d9c9ea5f1cfa553da2bbc8586a1e83ae60271183 You are receiving this be

Re: [openstreetmap/openstreetmap-website] When is it used this "not_public_flash" ? (Issue #6035)

2025-05-22 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6035) Okay, I see what you mean. Obviously this particular feature will only be relevant to a very small group, if at all. You can be assured that we re-evaluate features from time to time and remove them when they are no longer releva

Re: [openstreetmap/openstreetmap-website] When is it used this "not_public_flash" ? (Issue #6035)

2025-05-21 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6035) https://wiki.openstreetmap.org/wiki/Anonymous_edits has some more background. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6035#issuecomment-2899942196 You are

Re: [openstreetmap/openstreetmap-website] Intermittent CORS issues with editing API (Issue #6028)

2025-05-21 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6028) > Here's some other people reporting it on the community forums: https://community.openstreetmap.org/t/actual-problems-with-id-editor/130320/2 At least some users mentioned in https://community.openstreetmap.org/t/current-problems

Re: [openstreetmap/openstreetmap-website] JOSM can't use OAuth2 to connect to my local osm-website (Issue #6073)

2025-06-02 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6073) https://github.com/openstreetmap/openstreetmap-website/issues/5950#issuecomment-2830201587 has some previous discussion on this topic. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstr

Re: [openstreetmap/openstreetmap-website] Sprockets vs optional config files (#2185)

2025-05-29 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#2185) I'm not seeing any error messages on Rails 8 anymore in case config/settings.local.yml is missing. Is this working as expected? Maybe we could remove the respective section in the readme file now. -- Reply to this email directly

Re: [openstreetmap/openstreetmap-website] JOSM can't use OAuth2 to connect to my local osm-website (Issue #6073)

2025-06-01 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6073) Did you configure doorkeeper_signing_key in your settings.local.yml? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6073#issuecomment-2927568676 You are receivin

Re: [openstreetmap/openstreetmap-website] JOSM can't use OAuth2 to connect to my local osm-website (Issue #6073)

2025-06-01 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6073) The issue is that JOSM requires the /.well-known/oauth-authorization-server endpoint to be around, and for some reason Doorkeeper disables this endpoint unless you define a doorkeeper_signing_key. That's mostly in place so that JO

Re: [openstreetmap/openstreetmap-website] JOSM can't use OAuth2 to connect to my local osm-website (Issue #6073)

2025-06-01 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6073) https://josm.openstreetmap.de/changeset/18991/josm talks about leveraging [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414) to determine authorization_endpoint and token_endpoint fields. I think that's more of a convenien

Re: [openstreetmap/openstreetmap-website] support new indian Digipin address format (Issue #6082)

2025-06-19 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6082) > [github](https://github.com/CEPT-VZG/digipin) This reference implementation is written in Javascript and would have to be converted to Ruby (which is trivial thanks to LLMs). However, there are no unit tests in the original rep

Re: [openstreetmap/openstreetmap-website] [notes API] Prevent duplication of the same note with equal coordinates and text (Issue #6100)

2025-06-16 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6100) https://dupnotes.webmapping.cyou/creator_om.html has a few examples like https://www.openstreetmap.org/note/4806005 and https://www.openstreetmap.org/note/4806010 where the user has added additional text "It is now changed to Bel

Re: [openstreetmap/openstreetmap-website] Include changeset with node instead of loading it while rendering (PR #6058)

2025-06-19 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6058) @1ec5: this change is probably only relevant for developers running their local Rails instance. The code is not used in production. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstree

Re: [openstreetmap/openstreetmap-website] Hello, no matter how I calculate the tile according to the official method, it is always incorrect. Can someone help explain? (Issue #6099)

2025-06-14 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6099) No idea what you’re trying to achieve. Why don’t you use the API or some external tool like osmosis to load the data. It seems very odd that you’re fudging with the tile field calculation. -- Reply to this email directly or vie

Re: [openstreetmap/openstreetmap-website] [notes API] Prevent duplication of the same note with equal coordinates and text (Issue #6100)

2025-06-14 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6100) What you probably want are idempotent API endpoints like we’ve been discussing in #2201 -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6100#issuecomment-2972565

Re: [openstreetmap/openstreetmap-website] Hello, no matter how I calculate the tile according to the official method, it is always incorrect. Can someone help explain? (Issue #6099)

2025-06-14 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6099) Also, please stop spamming unrelated repos: https://github.com/openstreetmap/iD/issues/11132 -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6099#issuecomment-29

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-06-23 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6127) According to https://www.mediawiki.org/wiki/Wikibase/API/en the endpoint supports multiple ids in one request, separated by a pipe character. Since we anyway know all ids upfront, we could do with a single page update (=less flic

Re: [openstreetmap/openstreetmap-website] Capital letter sharp S is not displayed (Issue #6123)

2025-06-21 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6123) You need to report issues regarding the built in iD editor in the following place: https://github.com/openstreetmap/iD/issues -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-we

Re: [openstreetmap/openstreetmap-website] [notes API] Prevent duplication of the same note with equal coordinates and text (Issue #6100)

2025-06-15 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6100) @AntonKhorev : the main issue here is about creating multiple identical notes (same lat/lon & note description), presumably as a result of some technical glitch. I don't think we would end up with that many identical notes for the

Re: [openstreetmap/openstreetmap-website] Hello, no matter how I calculate the tile according to the official method, it is always incorrect. Can someone help explain? (Issue #6099)

2025-06-14 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6099) By the way, calling the original Rails code returns the following result: ``` QuadTile.tile_for_point(35.2000381, 114.6629926) => 3875963095 ``` This matches: ``` id | latitude | longitude | changeset_id | visible |

Re: [openstreetmap/openstreetmap-website] Idempotency for API 0.6 (#2201)

2025-06-14 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#2201) In the meantime, there are Gems like https://github.com/julik/idempo available that implement idempotency more generically (untested). -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstr

Re: [openstreetmap/openstreetmap-website] [notes API] Prevent duplication of the same note with equal coordinates and text (Issue #6100)

2025-06-14 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6100) > Here are some stats https://dupnotes.webmapping.cyou/ with a [subset of > Organic Maps duplicated > notes](https://dupnotes.webmapping.cyou/organic-maps/om-dupe-notes.json). So > it is still an issue. One thing I find interest

Re: [openstreetmap/openstreetmap-website] openstreetmapåœØę•°ę®åŗ“ēš„äø­ęœ‰äøŖč”Øcurrent_nodesäø­ēš„tileę˜Æę€Žä¹ˆč®”ē®—ēš„ļ¼Ÿ (Issue #6098)

2025-06-13 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6098) https://github.com/openstreetmap/openstreetmap-website/blob/4989c1fd8e2245fa9212c879a10630cc159c52da/app/models/concerns/geo_record.rb#L37 -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/open

Re: [openstreetmap/openstreetmap-website] Mention how long read-only mode lasts (Issue #6135)

2025-06-26 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6135) This has already been implemented in #5403. Obviously some parameters would have to be set to make this work. So not an issue for this repo but more of an operations issue. -- Reply to this email directly or view it on GitHub: h

Re: [openstreetmap/openstreetmap-website] Untranslatable strings 4 (Issue #6091)

2025-06-10 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6091) https://translatewiki.net/w/i.php?title=Special:Search&search=Osm:Profiles.show.social+links.title and https://translatewiki.net/w/i.php?title=Special:Search&search=Osm:Activerecord.attributes.user.company appear to be the correc

Re: [openstreetmap/openstreetmap-website] Untranslatable strings 4 (Issue #6091)

2025-06-09 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6091) "Home location name" doesn't appear to be translated at all, try https://www.openstreetmap.org/profile?locale=fr or https://www.openstreetmap.org/profile?locale=de -- Reply to this email directly or view it on GitHub: https://gi

Re: [openstreetmap/openstreetmap-website] Add reasonable compile time limit (PR #6154)

2025-07-01 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6154) I’ve frequently seen hanging test runs in cgimap, which turned out to be related to a used up quota. The job was being silently killed, and eventually hit the timeout, although it’s been dead for some minutes already. You should

Re: [openstreetmap/openstreetmap-website] Image download w/ submit_tag (PR #6192)

2025-07-16 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6192) > the cookie is going to be valid if I exported on osm.org recently I think the TOTP cookie is valid for an hour or so. I'm also testing locally by running an export on osm.org to get a valid token, then continue with local test

Re: [openstreetmap/openstreetmap-website] Image download w/ submit_tag (PR #6192)

2025-07-16 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6192) > During preflight the export script shouldn't look at cookies because it won't > receive any cookies. Agreed, the script isn't handling preflight requests properly at the moment. Maybe Apache could also return something for OPT

Re: [openstreetmap/openstreetmap-website] Image download w/ submit_tag (PR #6192)

2025-07-14 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6192) The click.rails event seems to be handled by jquery-ujs (https://github.com/rails/jquery-ujs/blob/master/src/rails.js#L524-L551). There's also some code in place to re-enable form elements, but my debugger isn't stopping there. I

Re: [openstreetmap/openstreetmap-website] Image download w/ submit_tag (PR #6192)

2025-07-14 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6192) I think what you describe is documented here: https://turbo.hotwired.dev/handbook/drive#form-submissions _During a submission, Turbo Drive will set the ā€œsubmitterā€ element’s [disabled](https://developer.mozilla.org/en-US/docs/Web

Re: [openstreetmap/openstreetmap-website] Add user preferences support to iD editor via server-side rendering (PR #6199)

2025-07-15 Thread mmd via rails-dev
@mmd-osm commented on this pull request. > @@ -15,7 +15,15 @@ data[:token] = token.token end data[:locale] = ID::LOCALES.preferred(preferred_languages).to_s - data[:asset_map] = assets("iD").to_json %> + data[:asset_map] = assets("iD").to_json + + # Include user preferences fo

Re: [openstreetmap/openstreetmap-website] Image download w/ submit_tag (PR #6192)

2025-07-16 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6192) > Would it? Is it even required by the exporter? Yes, it's explicitly checked here: https://github.com/openstreetmap/chef/blob/master/cookbooks/tile/templates/default/export.erb#L179-L183 -- Reply to this email directly or view

Re: [openstreetmap/openstreetmap-website] Preserve `referer` during oauth JS confirmation (PR #6138)

2025-06-27 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6138) > I also did not manage to get an OAuth setup going locally for proper > debugging (I don't have > https://www.openstreetmap.org/.well-known/openid-configuration locally for > some reason). This topic came up recently: https://

Re: [openstreetmap/openstreetmap-website] User with single trace has no public traces (Issue #6139)

2025-06-27 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6139) I think this has been forever this way. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6139#issuecomment-3014331983 You are receiving this because you are subscr

Re: [openstreetmap/openstreetmap-website] Image download with user feedback (PR #6192)

2025-07-18 Thread mmd via rails-dev
@mmd-osm pushed 1 commit. 2ee3e989e4b9edb41378d275544d1cc3915e Image download with user feedback -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6192/files/67727a878643a2ccd4df03a6b0ee6a90aa557663..2ee3e989e4b9edb41378d275544d1cc3915e You are receiving

Re: [openstreetmap/openstreetmap-website] Search function don't work on PaleMoon browser (Issue #6207)

2025-07-19 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6207) OSM.router is probably the bigger issue. It blocks a number of other features, such as adding notes, query features, directions, etc. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstre

Re: [openstreetmap/openstreetmap-website] Image download with user feedback (PR #6192)

2025-07-19 Thread mmd via rails-dev
@mmd-osm commented on this pull request. > @@ -8,7 +8,6 @@ L.OSM.share = function (options) { function init(map, $ui) { // Link / Embed - oops, fixed. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6192#discussion_r2

Re: [openstreetmap/openstreetmap-website] Image download with user feedback (PR #6192)

2025-07-19 Thread mmd via rails-dev
@mmd-osm commented on this pull request. > + const contentType = blob.type; + let extension = "bin"; + if (contentType === "image/png") extension = "png"; + else if (contentType === "image/jpeg") extension = "jpg"; + else if (contentType === "image/sv

Re: [openstreetmap/openstreetmap-website] Image download with user feedback (PR #6192)

2025-07-19 Thread mmd via rails-dev
@mmd-osm pushed 1 commit. 6f098b047258b6bf1d0f13ac8638040757c1874d Image download with user feedback -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6192/files/0f027550cff731114749a11cfa1b18bdc1e6a498..6f098b047258b6bf1d0f13ac8638040757c1874d You are receiving

Re: [openstreetmap/openstreetmap-website] Image download with user feedback (PR #6192)

2025-07-19 Thread mmd via rails-dev
@mmd-osm commented on this pull request. > @@ -7,8 +7,33 @@ L.OSM.share = function (options) { }); function init(map, $ui) { -// Link / Embed +$("#export-image").on("turbo:submit-end", function (event) { + if (event.detail.success) { +event.detail.fetchResponse

Re: [openstreetmap/openstreetmap-website] Image download with user feedback (PR #6192)

2025-07-19 Thread mmd via rails-dev
@mmd-osm commented on this pull request. > + const contentType = blob.type; + let extension = "bin"; + if (contentType === "image/png") extension = "png"; + else if (contentType === "image/jpeg") extension = "jpg"; + else if (contentType === "image/sv

Re: [openstreetmap/openstreetmap-website] Image download with user feedback (PR #6192)

2025-07-19 Thread mmd via rails-dev
@mmd-osm commented on this pull request. > @@ -7,8 +7,33 @@ L.OSM.share = function (options) { }); function init(map, $ui) { -// Link / Embed +$("#export-image").on("turbo:submit-end", function (event) { good point -- Reply to this email directly or view it on GitHub: ht

Re: [openstreetmap/openstreetmap-website] Image download with user feedback (PR #6192)

2025-07-19 Thread mmd via rails-dev
@mmd-osm pushed 1 commit. 0f027550cff731114749a11cfa1b18bdc1e6a498 Image download with user feedback -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6192/files/2ee3e989e4b9edb41378d275544d1cc3915e..0f027550cff731114749a11cfa1b18bdc1e6a498 You are receiving

Re: [openstreetmap/openstreetmap-website] Image download with user feedback (PR #6192)

2025-07-18 Thread mmd via rails-dev
@mmd-osm pushed 1 commit. 67727a878643a2ccd4df03a6b0ee6a90aa557663 Image download with user feedback -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6192/files/b514a848c5732df855e978748b94fcb87067bc1d..67727a878643a2ccd4df03a6b0ee6a90aa557663 You are receiving

Re: [openstreetmap/openstreetmap-website] Image download with user feedback (PR #6192)

2025-07-19 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6192) Instead of hardcoding formats, I have added a new attribute "formats" to layers.yml, and disable non-supported formats in the select options: https://github.com/user-attachments/assets/e5a5639e-69f5-45d2-aacc-96af327a91cf"; /> T

Re: [openstreetmap/openstreetmap-website] Search function don't work on PaleMoon browser (Issue #6207)

2025-07-19 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6207) Indeed, now everything seems to be working fine again. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6207#issuecomment-3092270750 You are receiving this because

Re: [openstreetmap/openstreetmap-website] Image download with user feedback (PR #6192)

2025-07-20 Thread mmd via rails-dev
mmd-osm left a comment (openstreetmap/openstreetmap-website#6192) Currently the export script returns errors as text/html, which Turbo happily picks up to replace the osm.org page. In this case, the user has to reload the page. Browser back button would take them to a random place, which is quit

Re: [openstreetmap/openstreetmap-website] Image download with user feedback (PR #6192)

2025-07-20 Thread mmd via rails-dev
@mmd-osm pushed 1 commit. e1311a90607d422f7f0e4c8d4d76d08a637de9af Handle response error message -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6192/files/6f098b047258b6bf1d0f13ac8638040757c1874d..e1311a90607d422f7f0e4c8d4d76d08a637de9af You are receiving this

Re: [openstreetmap/openstreetmap-website] Image download with user feedback (PR #6192)

2025-07-20 Thread mmd via rails-dev
@mmd-osm pushed 1 commit. 723ee4bcbab76b7e599cb6bd986a7ee98f217b6b Simplify code -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6192/files/e1311a90607d422f7f0e4c8d4d76d08a637de9af..723ee4bcbab76b7e599cb6bd986a7ee98f217b6b You are receiving this because you are

Re: [openstreetmap/openstreetmap-website] Add Cross-Origin-Opener-Policy header (2ff4d6a)

2025-07-07 Thread mmd via rails-dev
This seems to break sites that are using a popup to sign in to OSM, like this example: https://osmlab.github.io/osm-auth/ Error message: Uncaught TypeError: can't access property "authComplete", opener is null -- Reply to this email directly or view it on GitHub: https://github.com/openstreetm

[openstreetmap/openstreetmap-website] Paging interferes with logout flow (Issue #6172)

2025-07-07 Thread mmd via rails-dev
mmd-osm created an issue (openstreetmap/openstreetmap-website#6172) ### URL _No response_ ### How to reproduce the issue? * We're starting on a page that supports paging (so either diaries or traces) and navigate to an older entry. The resulting URL in the browser window is then something lik

<    1   2   3   4   >