Commit graph

68 commits

Author SHA1 Message Date
Tom Hughes
5449cf4adc Merge 14394:14533 from trunk. 2009-04-16 21:11:12 +00:00
Tom Hughes
09fdee5493 Add a "database readonly" state that allows all writes to the database
to be suppressed.
2009-04-14 14:27:30 +00:00
Tom Hughes
1f8a68371a Merge 14059:14394 from trunk. 2009-04-08 13:53:09 +00:00
Matt Amos
afcb345014 Moved a bunch of time functions into UTC. Fixes bugs which we only see for 4 hours a year. 2009-03-29 01:31:04 +00:00
Tom Hughes
eff9fa3b00 Refactor the GPX upload to try and avoid the import daemon loading traces
which do not exist yet.
2009-03-20 00:08:53 +00:00
Thomas Wood
1522ed275c Set params to sane defaults if unset by client.
Reject creates with no file with 400, model validations will also reject with 400 (as was existing but broken behaviour)
Closes #1510
2009-01-23 19:14:21 +00:00
Thomas Wood
9bb9de0fbe Require auth on calls to /trace/create, and pass through to form if called without params. Adjust validations on traces to prevent dual error messages on description (validates_presence_of catches the empty string removed from length validation)
More changes to come for api_create
References #1510
2009-01-23 01:19:45 +00:00
Shaun McDonald
721dd9c27d resync from rails_port 11795:12304 2008-12-12 19:29:27 +00:00
Tom Hughes
9b1b6be371 Optimise lookup of traces with a given tag. 2008-12-12 15:17:14 +00:00
Shaun McDonald
55d511bf21 Remember whether the user set the public checkbox on GPX upload as a user preference. Closes #827 2008-11-18 20:22:09 +00:00
Tom Hughes
990dcedc4c Require the user to be logged in for those methods which make no
sense otherwise.
2008-11-18 17:23:40 +00:00
Tom Hughes
f77ce935a4 Fix syntax of status only renders. Closes #1345. 2008-11-18 17:19:37 +00:00
Dave Stubbs
67a50e848c more boolean correcting 2008-11-08 10:48:07 +00:00
Andy Allan
2700e5110f add fixme 2008-11-07 13:27:03 +00:00
Andy Allan
7058d836f7 use boolean flags when using boolean columns 2008-11-07 13:24:18 +00:00
Tom Hughes
fb997c0a76 Revert r11194 as it doesn't work as the trace_name member does return
the correct result until after the trace is saved.
2008-10-21 12:16:12 +00:00
Tom Hughes
b105304a1b Fix race condition adding traces. Closes #1201. 2008-10-13 23:27:49 +00:00
Tom Hughes
34189cf761 Add basic support for logically deleting a user. 2008-08-24 16:53:42 +00:00
Tom Hughes
5d5f72b927 More warning fixes. 2008-07-18 22:23:26 +00:00
Tom Hughes
2cf15b549e Add support for putting the site in an offline mode where it operates
without a database but with most features disabled.
2008-06-22 12:10:32 +00:00
Tom Hughes
74b6dabb7f Tidy up handling of unknown traces. 2008-05-06 16:57:40 +00:00
Steve Coast
3d0f2130da fix bug 871 - show a good error message if gps trace not found 2008-05-03 14:29:01 +00:00
Tom Hughes
4f33014464 Use FileUtils.mv instead of File.rename as it will do a copy+delete when
the source and target are not on the same filesystem. Closes #670.
2008-02-07 23:53:20 +00:00
Tom Hughes
07e8449625 Allow a GPX to be fetched in XML format by fetching data.xml instead
of data (the data method returns it in the format it is stored in).

Closes #534.
2008-01-23 13:40:47 +00:00
Tom Hughes
3db4ac9a8e Improve consistency of trace upload forms and error handling.
Fixes #543 and #544.
2007-09-25 23:18:32 +00:00
Tom Hughes
868ce8d467 Allow trace descriptions and tags to be edited. 2007-09-23 17:05:31 +00:00
Tom Hughes
d274c0e3d8 Put the option to delete GPS traces back. Fixes #405. 2007-08-22 18:01:23 +00:00
Tom Hughes
9738e3f648 Handle errors a bit better. 2007-08-20 14:22:51 +00:00
Tom Hughes
9f58d17242 Handle files uploaded via the API properly. 2007-08-18 20:49:15 +00:00
Tom Hughes
44051f30d8 Make the gpx/id/data API call work, and make gpx/create a POST method
so arguments can be handled more robustly.
2007-08-16 23:04:18 +00:00
Tom Hughes
08b71b48e1 Tidy up trace handling a bit, and add support for per-user and per-tag feeds. 2007-08-15 18:10:18 +00:00
Tom Hughes
deb3c74fc7 Add the author name to RSS feeds. 2007-08-14 09:22:29 +00:00
Tom Hughes
289eac6bcd Remove bogus setting of title attribute. 2007-08-14 00:00:35 +00:00
Tom Hughes
0a18deef09 Fix title and tidy up a few things. 2007-08-09 22:02:03 +00:00
Tom Hughes
183841d10e Return "404 Not Found" for users and traces which don't exist. 2007-08-09 07:45:04 +00:00
Tom Hughes
07ad4a36ea Use the rails paginator to paginate the trace list, and abstract some
common template code into a partial.
2007-08-08 23:58:37 +00:00
Tom Hughes
bce2c88336 Provide a more sensible suggested filename when downloading traces. 2007-07-17 14:34:22 +00:00
Tom Hughes
2788050685 Handle public flag for GPX creation properly. 2007-07-02 23:38:13 +00:00
Tom Hughes
aacc7ae3e0 Refactor GPX creation routines to share common code. 2007-07-02 23:33:28 +00:00
Tom Hughes
dcad29dad0 Split the rest action into sparate read, update and delete actions thus
allowing authorization to be done on a per-action basis without worring
about the method. This should make the user API work.

Also do a lot of cleanup of the controllers.
2007-06-27 17:27:10 +00:00
Dan Karran
f0b5776389 Adding tag name to title if available. 2007-06-23 11:30:03 +00:00
Dan Karran
467990a45b Adding titles to trace lists 2007-06-23 10:52:34 +00:00
Tom Hughes
d781f42016 Avoid reading traces and trace images into memory when sending them to
the client, and make sure the MIME type is correct for trace files.
2007-06-21 23:19:25 +00:00
Dan Karran
7eec8de2a6 Setting correct XML content-type for trace RSS feeds. 2007-06-16 21:32:41 +00:00
Tom Hughes
bd5793f7a6 Improve reporting of errors in GPX uploads, and allow private traces
to be uploaded once again.
2007-06-12 08:52:19 +00:00
Tom Hughes
d27ff25473 Improve handling of login/logout some more to improve the chances of
us ending up on the right page afterwards.
2007-06-11 23:49:03 +00:00
Tom Hughes
4012eb7f9a Make next and previous links on user/XXX/traces work. Fixes #501. 2007-06-10 23:51:23 +00:00
Tom Hughes
0f727ece17 Use params[] instead of @params[] to avoid deprecation warnings. 2007-06-10 16:29:15 +00:00
Steve Coast
e25cbb009a various gpx bits 2007-05-10 22:14:11 +00:00
Steve Coast
6ccf25b347 various fixes 2007-05-09 17:31:11 +00:00