Tom Hughes
96ee7ef95c
Only report traces as offline when they are offline
2020-07-07 10:37:56 +01:00
Tom Hughes
2def62ee19
Fix errors with GPX offline mode
2020-07-05 14:49:12 +01:00
Tom Hughes
c9f9ade96f
Fix new rubocop warnings
2020-06-03 17:47:35 +01:00
Tom Hughes
b5c778b662
Fix new rubocop warnings
2020-03-31 19:08:10 +01:00
Tom Hughes
aaf9d15d56
Rework set_default_request_format ast set_request_formats
...
Instead of trying to work out the exact format, just figure
out the list of allowed formats and let rails do the rest.
2020-02-29 15:28:23 +00:00
Andy Allan
73c95847a6
Merge pull request #2485 from mmd-osm/patch/json2
...
JSON output nodes, ways, relations, map
2020-02-26 15:55:48 +01:00
Tom Hughes
ff7ddb6b86
Merge remote-tracking branch 'upstream/pull/2381'
2020-02-19 19:11:32 +00:00
ENT8R
b84799f481
Keep the behaviour backwards-compatible
2020-02-19 12:58:47 +01:00
mmd-osm
03ca0b2c69
Added Accept header unit tests
2020-01-12 17:46:11 +01:00
mmd-osm
45a1d298a9
Move default_format_xml to api_controller
2019-12-30 17:26:00 +01:00
mmd-osm
75a49786f8
API JSON output
2019-12-30 16:37:52 +01:00
Tom Hughes
7531060a12
Use squiggly heredocs
2019-12-11 10:40:41 +00:00
Tom Hughes
57f5b7840e
Fix rubocop warnings
2019-12-04 19:31:53 +00: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
8ad88b9ddc
Move user preference XML generation to a view
2019-11-20 16:39:23 +01:00
Andy Allan
25ebf87e5a
Rename UserPreference controller methods to follow rails conventions more closely
2019-11-20 16:09:48 +01:00
mmd-osm
fc8923c305
Remove expand_bbox endpoint
2019-11-09 21:08:40 +01:00
Andy Allan
15865b5a8d
Remove node/way/relation Search API
...
This API clearly shows its age, having never been fully implemented
and simply returning 100 ways (or 2000 relations) at random matching
the provided tags.
It is, as far as I'm aware, completely unused. While it provides a
good amount of humour to anyone who reads the code, the time as come
for it to be retired.
2019-10-23 11:41:05 +02:00
ENT8R
b7bdc88008
Don't expose technical terms to the user
2019-10-03 17:17:59 +02:00
ENT8R
d6c01586fe
Sort and order notes by different values and ascending or descending order
2019-10-03 14:12:27 +02:00
Tom Hughes
783b5e3729
Merge remote-tracking branch 'upstream/pull/1926'
2019-08-28 17:23:10 +01:00
Tom Hughes
135ec35a91
Fix numericality validation to use correct integer only constraint
...
Fixes #2355
2019-08-22 12:14:06 +01:00
Tom Hughes
1f880528bd
Fix new rubocop warnings
2019-07-18 16:47:08 +01:00
mmd-osm
84faaaf795
Rubocop
2019-06-28 22:05:38 +02:00
mmd-osm
fb953006a1
Replace respond_to with render xml format
2019-06-28 21:56:42 +02:00
mmd
11cc4a5e60
Merge branch 'master' into patch/view_migration
2019-06-27 22:40:51 +02:00
mmd-osm
8ad1ce9798
Refactoring
2019-06-27 22:28:40 +02:00
mmd-osm
b9ae40d978
Remove non functioning changeset_cache, user_display_name_cache
2019-06-27 21:26:11 +02:00
mmd-osm
cf3cf5216f
Avoid unnecessary arrays
2019-06-27 18:33:12 +02:00
Tom Hughes
a66c34991a
Merge remote-tracking branch 'upstream/pull/2280'
2019-06-26 19:57:12 +01:00
Andy Allan
2398614349
Add support for an unversioned 'versions' API call
...
This will eventually replace the unversioned 'capabilities' call.
Client applications can use this versions call to find out what versions
are available, if they support multiple versions. The capabilities
of each version, and the format of the capabilities call, is then
able to change between versions. If a client only supports one version
they can jump straight to the versioned capabilities call.
Additionally, supported versions are now a list of version identifiers,
without any implications surrounding min/max values (e.g. guesswork
for supported intermediate versions).
Fixes #2162
2019-06-26 16:52:10 +02:00
Tom Hughes
cbea796ef4
Merge remote-tracking branch 'upstream/pull/2207'
2019-06-26 14:30:30 +01:00
Andy Allan
f77d4dc4f7
Avoid stating the action to render when it just matches the current action
2019-06-26 14:50:35 +02:00
Andy Allan
c24b0e9399
Rework to ensure views are named after the controller method name
2019-06-26 13:45:40 +02:00
Tom Hughes
24b138db09
Merge remote-tracking branch 'upstream/pull/2228'
2019-06-12 19:16:32 +01:00
mmd-osm
b97e8d5427
Remove SWF gpx trackpoints feature for Potlatch1
2019-05-19 15:17:14 +02:00
mmd-osm
363155a2a8
Move xml gen. into view for (old) nodes, ways, relations, map
2019-05-07 22:16:22 +02:00
Tom Hughes
9f57f60b87
Fix new rubocop warnings
2019-04-23 09:33:34 +01:00
Frederik Ramm
17e6e69c39
Move generation of gpx_file XML from model to builder
2019-04-14 16:25:14 +01:00
Andy Allan
e66c719294
Resourceful(ish) naming for api/users_controller
2019-04-10 17:06:15 +02:00
Andy Allan
5444af981c
Resourceful route names for api/trace_controller
2019-04-10 16:52:20 +02:00
Tom Hughes
f68cee0f4e
Fix queuing of trace imports for API uploads
...
Fixes #2200
2019-04-03 21:53:16 +01:00
Andy Allan
d5d3975181
Use the trace jobs for creating and destroy traces via the API
2019-03-27 11:40:50 +01:00
Andy Allan
dad36f2fca
Use a lambda in order to pass parameters in before_actions
...
This avoid calling methods on a new instance of the controller, and
therefore allows these methods to be marked as private.
As a bonus, rubocop can now parse them and warn when they refer to
actions that don't exist in the controller.
2019-03-20 15:08:36 +01:00
Andy Allan
742291a840
Simplify deny_access handling
...
Now that we have all api controllers inheriting from a common base,
it's easier to override the deny_access handler without having to
switch between both.
Fixes #2064
2019-03-20 14:39:17 +01:00
Andy Allan
3bb07e29ec
Refactor api controllers to inherit from a common ApiController
2019-03-20 14:16:15 +01:00
Tom Hughes
141df02e67
Move status into the settings object
...
Only the very early boot code needs to look at the value
from the environment directly.
2019-03-17 11:15:34 +00:00
Tom Hughes
e3ed9988ce
Merge remote-tracking branch 'upstream/pull/2177'
2019-03-16 15:39:03 +00:00
Andy Allan
656ed0af76
Move changeset builder views to the api namespace
2019-03-16 15:30:41 +00:00
Frederik Ramm
538bfed8a6
Move changeset XML generation to a view
2019-03-16 15:30:18 +00:00