Commit graph

956 commits

Author SHA1 Message Date
Tom Hughes
e15a92a302 Fix new rubocop warnings 2024-11-05 18:23:47 +00:00
Anton Khorev
2d7e0a397a Subscribe users when they interact with notes 2024-10-28 02:35:25 +03:00
Amir E. Aharoni
0d650217f4 Consistent use of quotes
Most strings used single quotes, and a few used
opening backticks. Now it's single quotes everywhere.
2024-10-26 11:39:52 -04:00
Tom Hughes
fb6042e35c Avoid adjusting time by a number of days
Using hours instead of days avoids test failures when moving
past a point in time when the clocks change.
2024-10-25 19:30:27 +01:00
Anton Khorev
eaabf7bb59 Remove "User's Diary" from diary entry og:title 2024-10-20 19:12:09 +03:00
mmd-osm
72d61f2924 Trace import: validate background job results 2024-09-21 22:30:30 +02:00
Tom Hughes
fe96c0a524 Replace creation_ip with creation_address 2024-09-15 19:38:21 +01:00
Anton Khorev
ed74bc036b Fix browse elements timeouts 2024-09-14 18:03:48 +03:00
Tom Hughes
70f1b327b4 Merge remote-tracking branch 'upstream/pull/5178' 2024-09-13 18:09:37 +01:00
Anton Khorev
02c2d5292b Remove :id from redaction path helper calls 2024-09-11 17:55:23 +03:00
Anton Khorev
8a84825b02 Fix changeset comments feed timeout 2024-09-09 19:14:51 +03:00
Anton Khorev
8b024f48c1 Disable redactions with write_api scope
Requires write_redactions scope to redact. Previously it was possible to redact with either write_redactions or write_api.
2024-09-08 12:31:31 +03:00
Tom Hughes
4d221fd7a6 Simplify creation of bearer authorization headers
Uses the new features added to the bearer_authorization_header while
dropping basic authentication support to simplify the creation of bearer
authorization headers for API tests.
2024-09-03 18:54:05 +01:00
Tom Hughes
973d62a25e Drop support for basic authentication 2024-09-02 19:00:57 +01:00
Tom Hughes
33a2ccf560 Merge remote-tracking branch 'upstream/pull/5135' 2024-09-01 10:51:50 +01:00
Anton Khorev
d419a5d6c8 Merge branch 'drop-oauth1' 2024-09-01 03:46:23 +03:00
Tom Hughes
17bc0853a0 Drop support for OAuth 1 2024-09-01 03:43:02 +03:00
Anton Khorev
9ed6a9d779 Fix page title for failed trace updates 2024-08-31 19:13:27 +03:00
Anton Khorev
212ace7ef1 Test oauth2 application list with moderator permission icon 2024-08-30 19:29:02 +03:00
Tom Hughes
549a46c867 Merge remote-tracking branch 'upstream/pull/5126' 2024-08-28 19:03:53 +01:00
Tom Hughes
990b41cd4c Merge remote-tracking branch 'upstream/pull/5120' 2024-08-28 18:38:34 +01:00
Andy Allan
10a4c5cf6e Rename Feeds::ChangesetCommentsController to ChangesetComments::FeedsController
We usually create nested controllers with the main controller as the module,
and the nested controller as the specialization, e.g. Users::DeletionsController
or Traces::IconsController.

This then leaves the topic of whether the feed resource is plural, and whether we
are then showing a singular feed or showing a list (index) of objects.

The routes are carefully named so that we have `changesets_comments_feed_path` (the
comments feed for all changesets) vs `changeset_comment_feed_path(changeset)` (the
comments for a singular changeset).
2024-08-28 18:31:36 +01:00
Andy Allan
a948f2bc24
Merge pull request #4587 from AntonKhorev/changeset-comment-routes
Move changeset comments feed to resourceful routes
2024-08-28 18:30:11 +01:00
Andy Allan
b9988bdbc8
Merge pull request #5093 from AntonKhorev/diary-comments-shallow-paths
Use shallow routes for diary comments
2024-08-28 14:58:53 +01:00
Nenad Vujicic
4716800144 Allowed sending follow-ups for sent messages
Fixes #3497. Adds Reply button when displaying sent messages (app/views/messages/show.html.erb) and allows replying to messages for which sender is current user (app/controllers/messages_controller.rb). Improved tests for testing added functionality.
2024-08-28 15:11:09 +02:00
Tom Hughes
ec5754a9bd Merge remote-tracking branch 'upstream/pull/5110' 2024-08-23 18:09:21 +01:00
Tom Hughes
6704a6a0dc Merge remote-tracking branch 'upstream/pull/5107' 2024-08-23 17:48:48 +01:00
Anton Khorev
4a38ab5c80 Move changeset comment feeds to resourceful routes 2024-08-23 18:14:19 +03:00
Anton Khorev
09d5ae68dd Move changeset comments controller to feeds module 2024-08-23 17:40:26 +03:00
Anton Khorev
258104dfdf Remove revoke block action 2024-08-23 13:34:08 +03:00
Anton Khorev
cc2a72bdd7 Remove revoke block pages 2024-08-23 13:23:29 +03:00
Anton Khorev
3a8b8af53b Stop testing revoke block buttons 2024-08-23 12:55:20 +03:00
Anton Khorev
22841f5908 Convert dashboard test into a system test
Allows to remove an id used only for testing.
2024-08-22 17:47:26 +03:00
Anton Khorev
b71425f4b2 Remove outdated test for friends in users controller 2024-08-22 17:41:50 +03:00
Anton Khorev
76736bab4f Change submit button on block edit page when can only revoke 2024-08-22 14:01:54 +03:00
Anton Khorev
11a7bf7e0e Remove duration controls for blocks that can only be revoked by editing 2024-08-22 14:01:54 +03:00
Anton Khorev
5e7ab68721 Let all moderators revoke blocks by editing 2024-08-22 14:01:54 +03:00
Anton Khorev
67a5809c8a Show edit buttons on active blocks to all moderators 2024-08-22 14:01:54 +03:00
Tom Hughes
754a0a9cb5 Merge remote-tracking branch 'upstream/pull/5069' 2024-08-21 19:04:06 +01:00
Anton Khorev
6c4b028232 Record revokers when deactivating blocks by editing 2024-08-19 15:21:59 +03:00
Anton Khorev
cff4c63713 Add deactivates_at date to user blocks
Block deactivation dates that take needs_view-block views into account were derived using updated_at. This was possible because inactive blocks couldn't be edited and their updated_at date wouldn't change. With editing of inactive blocks enabled deactivation date needs to be saved explicitly.
2024-08-19 14:33:20 +03:00
Tom Hughes
71d459c71c Merge remote-tracking branch 'upstream/pull/5091' 2024-08-18 11:59:42 +01:00
Anton Khorev
71f31bfc4c Use shallow routes for diary comments 2024-08-17 15:12:52 +03:00
Anton Khorev
1e62ae4b18 Remove /user_blocks/new route 2024-08-17 14:03:27 +03:00
Anton Khorev
cfaae9eadd Don't update ends_at when editing inactive blocks 2024-08-17 13:02:20 +03:00
Anton Khorev
323b7032ba Prevent reactivating inactive blocks 2024-08-15 12:59:49 +03:00
Tom Hughes
d010e280af Merge remote-tracking branch 'upstream/pull/5078' 2024-08-14 19:02:07 +01:00
Tom Hughes
68abf2075b Merge remote-tracking branch 'upstream/pull/5073' 2024-08-14 19:00:20 +01:00
Anton Khorev
09721c6fee Add article:published_time meta tag to diary entries 2024-08-14 18:00:14 +03:00
Andy Allan
735a5cf9e2
Merge pull request #5056 from AntonKhorev/diary-og-description
Set og:description meta tag to diary entry description
2024-08-14 14:38:28 +01:00