Commit graph

60 commits

Author SHA1 Message Date
Tom Hughes
973d62a25e Drop support for basic authentication 2024-09-02 19:00:57 +01:00
Tom Hughes
0f50292784 Merge remote-tracking branch 'upstream/pull/5050' 2024-08-06 18:33:35 +01:00
Anton Khorev
2245505185 Don't use XML::Parser when testing changeset upload diffResults 2024-08-06 05:31:26 +03:00
Anton Khorev
2cd63d3001 Always check the order when testing changeset queries 2024-08-06 04:08:18 +03:00
Anton Khorev
724376419a Simplify api changeset path helper calls 2024-07-25 16:55:27 +03:00
Anton Khorev
1f4c298f76 Simplify subscribe path helper calls 2024-07-16 17:32:00 +03:00
Tom Hughes
505dcde52a Add tests for API changeset size limits 2024-06-19 00:46:35 +01:00
Tom Hughes
61c5011813 Update tests to avoid triggering changeset size limits 2024-06-19 00:46:35 +01:00
Anton Khorev
ba2eb52054 Simplify element show paths in api tests 2024-04-02 14:53:17 +03:00
Anton Khorev
765165777e Rename api changesets index action 2024-03-30 08:26:58 +03:00
Anton Khorev
9c0d74fe69 Simplify and test downloaded changeset element sorting 2024-03-21 20:02:18 +03:00
Tom Hughes
f31c81c3f3 Fix rubocop warnings 2024-02-25 14:17:05 +00:00
Tom Hughes
53817fa9e8 Merge remote-tracking branch 'upstream/pull/4251' 2024-02-25 14:06:56 +00:00
Tom Hughes
f5aa031b58 Rename path for changeset API subscription methods 2024-02-25 09:48:11 +00:00
Tom Hughes
7e974b8662 Add tests for API change rate limits 2023-11-02 08:59:57 +00:00
Tom Hughes
ba503e02d2 Enforce rate limit for API calls which make changes 2023-11-02 08:59:57 +00: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
Anton Khorev
e22589f946 Show hidden comments to moderators if requested 2023-10-01 19:50:27 +03:00
Tom Hughes
e8af4b85bf Fix new rubocop warnings 2023-09-26 18:42:57 +01:00
Anton Khorev
4b92988555 Add comment ids to changeset discussion api responses 2023-09-10 17:30:06 +03: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
1e8cd9bedd Add tests for changeset order + from..to queries 2023-08-15 19:29:05 +03: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
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
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
mmd-osm
4ec85171fd JSON output added to changeset(s) endpoints 2022-03-14 15:52:49 +01:00
Tom Hughes
cbcc7dc49f Fix some rubocop Naming/PredicateName warnings 2022-03-03 22:47:55 +00:00
Tom Hughes
b5f06e06c1 Fix rubocop Rails/TimeZone warnings 2022-03-01 22:55:10 +00:00
Andy Allan
76f1d7bc78 Use a builder to render changeset downloads 2021-09-15 16:33:04 +01:00
Josh Soref
fc0aee74af spelling: success
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2021-07-21 10:45:38 -04:00
Josh Soref
7ff3d82c03 spelling: shouldn't
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2021-07-21 10:45:38 -04:00
Josh Soref
eee739356f spelling: modify
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2021-07-21 10:45:38 -04:00
Tom Hughes
d3c800fdb4 Fix new rubocop warnings 2021-06-29 18:29:00 +01:00
Tom Hughes
2dc50b4431 Fix new rubocop warnings 2020-10-09 08:26:38 +01:00
Tom Hughes
ea59d95f4a Fix some new rubocop warnings 2020-08-06 22:27:30 +01:00
Andy Allan
2e3522a2f6 Refactor changesets_controller_test
Introduces some route names which need to be unique from the non-api versions
2020-04-29 17:42:08 +02:00
Tom Hughes
7a1615bc55 Fix rubocop-minitest warnings 2020-04-15 19:07:13 +01:00
Andy Allan
7595e5a4dd Use squiggly heredocs instead of rails strip_heredoc
Squiggly heredocs were introduced in ruby 2.3 and I prefer the ability
to indent the closing heredoc marker.
2019-12-11 10:54:19 +01:00
Andy Allan
f1c6a87aa1
Merge pull request #2427 from mmd-osm/patch/remove_expand_bbox
Remove expand_bbox endpoint
2019-12-04 12:48:34 +01:00
Andy Allan
bc850d1d37 Move Relation.to_xml and to_xml_node out of the model and into tests 2019-11-20 15:45:28 +01:00
Andy Allan
2b1bac1279 Move Way.to_xml and to_xml_node out of the model and into tests
This code is only used in the tests. Refs #2433
2019-11-20 15:31:47 +01:00
Andy Allan
4e7c0c3008 Move Node.to_xml and to_xml_node out of model and into tests
This code is only used in the tests for creating 'fixture' payloads,
so it shouldn't be kept in the models.
2019-11-13 17:01:40 +01:00
mmd-osm
fc8923c305 Remove expand_bbox endpoint 2019-11-09 21:08:40 +01:00