Re: [openstreetmap/openstreetmap-website] Show "reporting user" on "issues" screen (PR #4990)

2025-01-21 Thread David Tsiklauri via rails-dev
@nertc pushed 1 commit. d7eb8b668e0363b45b7f4eb15a17b2ed840e39af Show reporting user on issues screen -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/4990/files/0e69bdfa26f3fc0720d1e7a371ca36f06d53e0ac..d7eb8b668e0363b45b7f4eb15a17b2ed840e39af You are receiving

Re: [openstreetmap/openstreetmap-website] Sticky close button (PR #4825)

2025-01-21 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 2 commits. a214bcb2282a6c613118a3c77b061a7704184f2b Make left sidebar close button sticky 764f2383f2cc1cfa43bc075dceaa7d25ec02768c Make right sidebar close button sticky -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/4825/files/fce22582a94

Re: [openstreetmap/openstreetmap-website] Add older/newer links in front of diary, comment, issue, block pages (PR #5262)

2025-01-21 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 1 commit. a90362123a06c61150526ff9f6b4e1dc81a1d50b Add older/newer links in front of diary, comment, issue, block pages -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5262/files/fe1f63c0fadff216eae591c9a694239e6c716cc1..a90362123a06c611505

Re: [openstreetmap/openstreetmap-website] Add oldest/newest links to shared pagination - with gaps around "newer" and "older" v2 (PR #4734)

2025-01-21 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 4 commits. 9851427b32b7123589465f038cabaece2dd469da Add oldest/newest links to shared pagination cb95536c09c55fc3b1eb60cc8a8e784fd7ef1a4f Show only pagination icons below medium/small screen sizes d3e697a913351325c5695c33bef75449fa709e16 Split pagination buttons into 3 gro

Re: [openstreetmap/openstreetmap-website] Add oldest/newest links to shared pagination - with gaps around "newer" and "older" v2 (PR #4734)

2025-01-21 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 7 commits. 40c0797640307e6cbf9541cd6566f9c77d1c0408 Relax min id value for paging to include 0 9ca721a050ef3850e54f65423f61f7effa764461 Introduce pagination item helper 1950b17501e7d2fa808c251fa47e01272006411d Replace previous/next page selectors with helper methods in tes

Re: [openstreetmap/openstreetmap-website] Add older/newer links in front of diary, comment, issue, block pages (PR #5262)

2025-01-21 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 1 commit. fe1f63c0fadff216eae591c9a694239e6c716cc1 Add older/newer links in front of diary, comment, issue, block pages -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5262/files/0b053314fd7f427f2b5c8a0c35b583bda43ce0f3..fe1f63c0fadff216eae

[openstreetmap/openstreetmap-website] Set needs_view by default for new blocks (PR #5532)

2025-01-21 Thread Anton Khorev via rails-dev
If a block is created without `needs_view`, it's less likely to get noticed by the receiving user. Nobody could come up with any reason why blocks shouldn't be `needs_view` by default. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetma

Re: [openstreetmap/openstreetmap-website] Add indexes on user+id to changeset and diary comments (PR #5531)

2025-01-21 Thread Anton Khorev via rails-dev
> an index on author+date+id `+id` is probably not necessary. If a user managed to create multiple objects during the same microsecond we can afford picking a wrong one. Or select min/max(id) where created_at is between target_date and target_date+/-epsilon. -- Reply to this email directly or

Re: [openstreetmap/openstreetmap-website] Add indexes on user+id to changeset and diary comments (PR #5531)

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

Re: [openstreetmap/openstreetmap-website] Add indexes on user+id to changeset and diary comments (PR #5531)

2025-01-21 Thread Anton Khorev via rails-dev
> filtering by date Not filtering really, just get the starting id by date and then use it as `before` or `after`. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5531#issuecomment-2605893472 You are receiving this because you ar

Re: [openstreetmap/openstreetmap-website] Add indexes on user+id to changeset and diary comments (PR #5531)

2025-01-21 Thread Tom Hughes via rails-dev
Those indexes are all pretty tiny currently so I guess keeping them doesn't hurt. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5531#issuecomment-2605864060 You are receiving this because you are subscribed to this thread. Mess

Re: [openstreetmap/openstreetmap-website] Add indexes on user+id to changeset and diary comments (PR #5531)

2025-01-21 Thread Tom Hughes via rails-dev
Well then you'd ideally want an index on author+date+id though we have to think about how much space we want o use on indexes at some point - is here really a need for filtering by date? How often do you know that you need to look at comments from a particular date? -- Reply to this email dire

Re: [openstreetmap/openstreetmap-website] Add indexes on user+id to changeset and diary comments (PR #5531)

2025-01-21 Thread Anton Khorev via rails-dev
Creation date indexes might still be useful for combining pagination with date pickers https://github.com/openstreetmap/openstreetmap-website/pull/5255#issuecomment-2413857393 -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5531#

Re: [openstreetmap/openstreetmap-website] Preload parent objects for user comments (PR #5530)

2025-01-21 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/5530#issuecomment-2605816797 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev

Re: [openstreetmap/openstreetmap-website] Preload parent objects for user comments (PR #5530)

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

Re: [openstreetmap/openstreetmap-website] Adds optional use of notes records (PR #5511)

2025-01-21 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. >end - # Return the note's author IP address, derived from the first comment + # Return the note's author IP address, unless record is unavailable and + # it will be derived from the first comment def author_ip Do we need this method at a

Re: [openstreetmap/openstreetmap-website] Add indes on user+id to changeset and diary comments (PR #5531)

2025-01-21 Thread Tom Hughes via rails-dev
@tomhughes pushed 1 commit. 0100c2c8b148f2a8d3c2d9181c4454c6d3691ae3 Add indes on user+id to changeset and diary comments -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5531/files/3ebe31d65cea0442111afd70e29aca4bce153bb7..0100c2c8b148f2a8d3c2d9181c4454c6d3691

[openstreetmap/openstreetmap-website] Add indes on user+id to changeset and diary comments (PR #5531)

2025-01-21 Thread Tom Hughes via rails-dev
This adds indexes on `user+id` to diary and changeset comments to make comment views more efficient. Once this is merged we can switch the `diary_comments` association on users to sort by id instead of creation date and then drop the creation date indexes. You can view, comment on, or merge this

Re: [openstreetmap/openstreetmap-website] List of user's changeset comments (PR #5518)

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

Re: [openstreetmap/openstreetmap-website] List of user's changeset comments (PR #4248)

2025-01-21 Thread Tom Hughes via rails-dev
Superseded by #5518. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/4248#issuecomment-2605528199 You are receiving this because you are subscribed to this thread. Message ID: ___ rails

[openstreetmap/openstreetmap-website] Preload parent objects for user comments (PR #5530)

2025-01-21 Thread Tom Hughes via rails-dev
I noticed that the comment views were loading objects one by one and this should make it more efficient. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5530 -- Commit Summary -- * Preload parent objects for user co

Re: [openstreetmap/openstreetmap-website] List of user's changeset comments (PR #4248)

2025-01-21 Thread Tom Hughes via rails-dev
Closed #4248. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/4248#event-16019021545 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing

Re: [openstreetmap/openstreetmap-website] Test fallback locale on embed page (PR #5528)

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

Re: [openstreetmap/openstreetmap-website] List of user's changeset comments (PR #5518)

2025-01-21 Thread Tom Hughes via rails-dev
This all looks great to me, thanks. We probably want to think about indexes because changeset comments don't have an index on author+id (neither do diary comments but some people have 80k changeset comments vs a few hundred diary comments) but I don't think that's a blocker based on some quick

Re: [openstreetmap/openstreetmap-website] Test fallback locale on embed page (PR #5528)

2025-01-21 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/5528#issuecomment-2605459918 You are receiving this because you are subscribed to this thread. Message ID: ___

[openstreetmap/openstreetmap-website] Consistent usage of layer information in _osm_location cookie (PR #5529)

2025-01-21 Thread mmd via rails-dev
As reported in #3971, some URLs like https://www.openstreetmap.org/?mlat=53.32607&mlon=-1.49033 reset the currently selected layers. In order to restore the previous setting, a user needs to select both map and overlay layers after click on the link. It seems a bit premature to simply override

Re: [openstreetmap/openstreetmap-website] Adds optional use of notes records (PR #5511)

2025-01-21 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. >def author_id -comments.first.author_id +if user_ip.nil? && user_id.nil? + comments.first.author_id +else + user_id +end end Now you are revealing the true author as soon as migration happens, but not before. -- R

Re: [openstreetmap/openstreetmap-website] Adds optional use of notes records (PR #5511)

2025-01-21 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. >def description -comments.first.body +if user_ip.nil? && user_id.nil? + comments.first.body +else + RichText.new("text", self[:description]) +end end Copying is not the problem, the problem is you won't be able to th

Re: [openstreetmap/openstreetmap-website] Add locale selector (PR #5201)

2025-01-21 Thread Anton Khorev via rails-dev
Depends on how much @gravitystorm is against settings in cookies https://github.com/openstreetmap/openstreetmap-website/pull/4985#issuecomment-2551576536. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5201#issuecomment-260485246

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

2025-01-21 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > +//= require popper +//= require tooltip + + +/* global CalHeatmap, CalendarLabel, Tooltip */ +document.addEventListener("DOMContentLoaded", () => { + const heatmapElement = document.querySelector("#cal-heatmap"); + + if (!heatmapElement) { +c

Re: [openstreetmap/openstreetmap-website] Adds optional use of notes records (PR #5511)

2025-01-21 Thread Nenad Vujicic via rails-dev
@nenad-vujicic commented on this pull request. >def description -comments.first.body +if user_ip.nil? && user_id.nil? + comments.first.body +else + RichText.new("text", self[:description]) +end end Have we reached a decision on this? We planned to copy the body

Re: [openstreetmap/openstreetmap-website] Moves the note's description, author ID, and author IP from the first comment to the note itself (PR #5485)

2025-01-21 Thread Gregory Igelmund via rails-dev
Hi @nenad-vujicic thanks for putting in the effort to address https://github.com/openstreetmap/openstreetmap-website/issues/3831 You might have noticed that I've started some time ago working on https://github.com/openstreetmap/openstreetmap-website/pull/4481 to address the same issue. Since y

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

2025-01-21 Thread Simon Poole via rails-dev
> @simonpoole This is not something you should worry about because it will take > one `if` statement to remove the entire thing unlike let's say feeds. Oh, I'm not concerned at all. I was just pointing this out for good form, aka I saw something that I know is wrong, and I'm giving the people he