Commit graph

167 commits

Author SHA1 Message Date
Tom Hughes
ee3f045495 Assign proper sequence numbers to relation members in tests 2023-10-26 18:22:41 +01:00
Tom Hughes
45be62391f Update test results for changes to rescuable exception handling
https://github.com/rails/rails/pull/45867
2023-10-18 18:26:14 +01:00
Tom Hughes
46cd08b1c8 Replace composite_primary_keys with rails builtin support 2023-10-18 18:26:14 +01:00
Andy Allan
1700c23dd1 Prefer find_by() instead of where().first
These are very similar, differing only if we would expect multiple
results and the sorting is important. However, in all our cases
we're only expecting one result to be returned, and so find_by is
easier to read.
2023-10-04 17:53:58 +01:00
Tom Hughes
e8af4b85bf Fix new rubocop warnings 2023-09-26 18:42:57 +01:00
Tom Hughes
85b17a1f2a Merge remote-tracking branch 'upstream/pull/4240' 2023-09-14 17:42:04 +01:00
Anton Khorev
4b92988555 Add comment ids to changeset discussion api responses 2023-09-10 17:30:06 +03:00
Anton Khorev
9442829d31 Add json output for show user block api 2023-09-09 16:50:36 +03:00
Anton Khorev
71654e563e Add show user block api endpoint 2023-09-09 15:53:22 +03:00
Anton Khorev
9682fe6431 Add user id to api trace output 2023-09-08 17:13:57 +03:00
Tom Hughes
be3baea4de Merge remote-tracking branch 'upstream/pull/4222' 2023-09-03 18:54:18 +01:00
Anton Khorev
11df872c3e Add bbox parameter to notes search api 2023-09-03 11:26:05 +03:00
Anton Khorev
0ef4a299bb Check required bbox parameter presence outside of BoundingBox class 2023-09-03 09:47:27 +03:00
Tom Hughes
75bde83a13 Improve testing of changeset comment rate limits 2023-08-30 19:11:08 +01:00
Tom Hughes
e210b4efbf Improve naming of changeset comment rate limit settings 2023-08-30 18:25:06 +01:00
Andy Allan
a1657f03a8
Merge pull request #4202 from tomhughes/changeset-comment-limit
Add rate limiting for changeset comments
2023-08-30 11:12:40 +01:00
ENT8R
26a092fbf7 Add checks to ensure that the response is empty 2023-08-26 13:01:05 +02:00
ENT8R
bc71737f05 Change tests to expect a successful (empty) response even if the user is not visible anymore 2023-08-26 09:37:06 +02:00
Tom Hughes
a274726f46 Add rate limiting for changeset comments
Fixes #4196
2023-08-25 19:53:04 +01:00
Anton Khorev
0bd5838f51 Respond with plaintext when user not found in changeset query
The response used to be of type xml with empty body, which is not valid xml.
2023-08-19 20:26:13 +03:00
Anton Khorev
3f6e344e6a Expose note query limit values in api capabilities 2023-08-19 05:40:34 +03:00
Anton Khorev
a654071beb Add missing changeset query limit capabilities test 2023-08-19 05:40:05 +03:00
Anton Khorev
df60444d05 Use max note query limit setting in tests 2023-08-19 05:23:42 +03:00
Anton Khorev
5bdaf0b73b Add JSON output to /api/versions 2023-08-18 05:16:39 +03:00
Anton Khorev
1e8cd9bedd Add tests for changeset order + from..to queries 2023-08-15 19:29:05 +03:00
Tom Hughes
a1798fe6fb Merge remote-tracking branch 'upstream/pull/4159' 2023-08-13 10:38:58 +01:00
Tom Hughes
3539328d1c Check that the /api/0.6/capabilities.json route is recognised 2023-08-13 10:33:43 +01:00
Tom Hughes
6d74aa2873 Merge remote-tracking branch 'upstream/pull/4158' 2023-08-13 10:00:29 +01:00
Anton Khorev
8c42c39a67 Use Settings.generator string in tests 2023-08-12 19:07:36 +03:00
Anton Khorev
24d6b3c55f Add JSON output to /api/0.6/capabilities 2023-08-12 06:00:46 +03:00
Anton Khorev
0abab48f5d Add order parameter to changeset query api entry point 2023-08-12 03:57:48 +03:00
Anton Khorev
abdce62a03 Add ordered changeset test method 2023-08-12 03:40:52 +03:00
Anton Khorev
665bde6ccd Use max changeset query limit setting in tests 2023-08-08 03:43:35 +03:00
Andy Allan
925d12cc81
Merge pull request #3933 from AntonKhorev/api-changesets-limit
Add limit parameter to api changesets query
2023-07-26 16:45:00 +01:00
Tom Hughes
ba3d3269e3 Fix new rubocop warnings 2023-07-18 18:27:06 +01:00
Anton Khorev
e286ce515c Add limit parameter to api changesets query 2023-02-14 20:56:29 +03:00
Andy Allan
9748ce301c Move browse#note to notes#show
This allows a more resourceful routing approach.
2023-02-01 17:13:41 +00:00
Andy Allan
f7367baa6b Rename api_notes resource to avoid conflict with non-API resource
This allows using e.g. note_path for notes#show in the future.
2023-01-25 19:01:57 +00:00
Andy Allan
415ac577f3 Remove some old debugging comments 2022-12-21 12:05:15 +00:00
mmd-osm
ec121dde4f Add more testcases to changesets_controller
Extracted from pull request #1995
2022-11-30 22:32:20 +01:00
Tom Hughes
3d0b94abda Merge remote-tracking branch 'upstream/pull/3768' 2022-10-25 19:28:10 +01:00
Tom Hughes
460ed0c844 Fix new rubocop warnings 2022-10-25 19:19:57 +01:00
Anton Khorev
225b260640 Pass min/max lat/lon to notes index rss builder 2022-10-25 13:52:28 +03:00
Anton Khorev
0c8b9eabf3 Pass min/max lat/lon to notes rss feed builder 2022-10-25 13:35:18 +03:00
Robbendebiene
b5e695b6f3 Remove default xml format from notes routing test 2022-09-26 09:13:40 +02:00
Anton Khorev
d353186b19 Uncomment asserts for namespaced elements in note rss test 2022-07-22 18:02:00 +03:00
Tom Hughes
9adad9f90d Fix new rubocop warnings 2022-06-14 19:04:39 +01:00
Tom Hughes
9c0582f88f Merge remote-tracking branch 'upstream/pull/3523' 2022-04-12 17:12:16 +01:00
Andy Allan
561ee71129 Rubocop autofix: ambiguous operator precedence
This simply adds braces to clarify which mathematical operator comes
first.
2022-04-06 14:55:29 +01:00
mmd-osm
4ec85171fd JSON output added to changeset(s) endpoints 2022-03-14 15:52:49 +01:00