[openstreetmap/openstreetmap-website] Note subscriptions API (PR #5314)

2024-11-12 Thread Anton Khorev via rails-dev
Part 4 of #5283 Adds API endpoints to subscribe/unsubscribe from a note. This is like the changeset subscribe/unsubscribe https://wiki.openstreetmap.org/wiki/API_v0.6#Subscribe:_POST_/api/0.6/changeset/#id/subscribe but since we like resourceful routes, instead of `POST .../subscribe` and `POST

Re: [openstreetmap/openstreetmap-website] Note subscriptions (PR #5283)

2024-11-12 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 3 commits. 3ecf7943b36836b9f0337aa9d7c8f48992293ae8 Add create note subscription api endpoint bc8c005d6186c56054fc68d8281e67ba8efb76cc Add destroy note subscription api endpoint 98a287457e6742a9e625f66b7acbdb8898304737 Add subscribe/unsubscribe buttons to note pages --

Re: [openstreetmap/openstreetmap-website] Don't update deactivates_at if block was already viewed (PR #5312)

2024-11-12 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > + get user_block_path(block) + assert_response :success + block.reload + assert_not block.needs_view + assert_equal Time.now.utc - 1.hour, block.deactivates_at +end + end + + ## + # test clearing needs_view by showing

Re: [openstreetmap/openstreetmap-website] Don't update deactivates_at if block was already viewed (PR #5312)

2024-11-12 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 1 commit. ff0569829f81f868e054e6430eaf11bf779d1213 Don't update deactivates_at if block was already viewed -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5312/files/f4208862bc1841dc18aa55ce85acad349b6f2b43..ff0569829f81f868e054e6430eaf11bf

Re: [openstreetmap/openstreetmap-website] Send notifications to note subscribers instead of commenters (PR #5310)

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

Re: [openstreetmap/openstreetmap-website] Restore loading spinner in richtext previews (PR #5311)

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

Re: [openstreetmap/openstreetmap-website] Send notifications to note subscribers instead of commenters (PR #5310)

2024-11-12 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/5310#issuecomment-2471333468 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] Restore loading spinner in richtext previews (PR #5311)

2024-11-12 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/5311#issuecomment-2471323757 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] Don't update deactivates_at if block was already viewed (PR #5312)

2024-11-12 Thread Tom Hughes via rails-dev
@tomhughes requested changes on this pull request. > + get user_block_path(block) + assert_response :success + block.reload + assert_not block.needs_view + assert_equal Time.now.utc - 1.hour, block.deactivates_at +end + end + + ## + # test clearing needs_view by s

Re: [openstreetmap/openstreetmap-website] We need to move away from dartsass-ruby (Issue #5313)

2024-11-12 Thread Tom Hughes via rails-dev
The version lock is from 41f13ac73a740b16bce708b23db8b2cdb6d24d1f and it seems our bootstrap is still too old to avoid the warnings. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5313#issuecomment-2471155482 You are receiving

Re: [openstreetmap/openstreetmap-website] We need to move away from dartsass-ruby (Issue #5313)

2024-11-12 Thread Tom Hughes via rails-dev
Ah it has already been changed in `dartsass-sprockets` but we have a version lock on `sass-embedded` which is stopping it from updating. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5313#issuecomment-2471150961 You are receiv

[openstreetmap/openstreetmap-website] We need to move away from dartsass-ruby (Issue #5313)

2024-11-12 Thread Tom Hughes via rails-dev
We are currently using `dartsass-ruby` as a dependency of `dartsass-sprockets` but v1.x of the `uri` gem has an ABI change which breaks it: ``` bin/rails aborted! ArgumentError: wrong number of arguments (given 1, expected 0) (ArgumentError) /home/tom/.bundle/ruby/3.3.0/gems/uri-1.0.1/lib/uri/rfc