Commit graph

165 commits

Author SHA1 Message Date
Tom Hughes
d3b42fef34 Add extra validation to messages and diary entries. 2007-09-04 14:05:13 +00:00
Tom Hughes
603d1be4bd Get the timestamp outside the transactionso everything can see it. 2007-09-01 06:48:59 +00:00
Tom Hughes
b948dd6d52 Fix typo. 2007-09-01 06:39:10 +00:00
Tom Hughes
5fe7a5bbbc Split the transaction used for ways so that we recover more cleanly
without leaving rubbish in the database.
2007-08-31 23:10:33 +00:00
Frederik Ramm
6d07f5661a changed from nd id=... to nd ref=... 2007-08-31 22:33:27 +00:00
Tom Hughes
e15916ad5b Let exceptions propagate to the default handler for ways so they are logged. 2007-08-31 18:10:44 +00:00
Tom Hughes
0975858cdb Allow exceptions processing node and segment requests to propagate and
be handled by the default handler so they are logged.
2007-08-31 10:11:15 +00:00
Frederik Ramm
78b440ffc1 preliminary commit 0.5 API with relations / untested after entity-relation rename, some changes still in queue 2007-08-29 22:00:26 +00:00
Frederik Ramm
02451061ce segment stuff removed 2007-08-29 21:38:38 +00:00
Tom Hughes
755a2c596c Add additional validation to the user model and tidy up a few things on
the account options page.
2007-08-19 12:27:23 +00:00
Tom Hughes
4b71f8aacd Include the home location in API user details response. 2007-08-19 09:43:01 +00:00
Tom Hughes
9861ca8001 Move tag validation to the right place. 2007-08-19 09:16:33 +00:00
Tom Hughes
7dbb746fde Throw an exception if saving the imported trace fails. 2007-08-19 09:11:59 +00:00
Dan Karran
3c79240a6a Showing all messages in inbox, but sorting by date DESC and highlighting new ones. Adding link from message reading page back to inbox. Mark as read/unread. 2007-08-17 18:05:09 +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
6adf8fe384 Only initialize creation_time if it isn't already set. 2007-08-15 07:26:33 +00:00
Tom Hughes
4fd689b035 Fix exception when username is not known. 2007-08-14 23:38:52 +00:00
Tom Hughes
c2b377efac Salt passwords so that two users with the same password will have
different password hashes in the database.
2007-08-14 23:25:58 +00:00
Tom Hughes
0a8c26e596 Various updates to the user management, including the creation of a
preferences table and moving tokens into a tokens table so that a user
can have more than one.
2007-08-14 23:07:38 +00:00
Tom Hughes
b61e4f77e8 Improve handling of user to user messages. 2007-08-14 17:29:27 +00:00
Tom Hughes
c9370930ea Add a model for sessions. 2007-08-09 23:21:17 +00:00
Tom Hughes
3b751f79b8 Handle segments which do not exist correctly and indicate that the
preconditions for the way are not met.
2007-07-27 08:16:12 +00:00
Tom Hughes
9e0226113c Don't bother setting user_id for each tracepoint - it is redundant as
the same information can be found by joining to gpx_files. It is also
never used, so the column is going to be removed.
2007-07-20 07:51:46 +00:00
Tom Hughes
30f740178f Use a full path to find the file command. 2007-07-18 08:37:46 +00:00
Tom Hughes
16358a1d39 Improve MIME type determination for trace files. 2007-07-17 14:45:04 +00:00
Tom Hughes
bce2c88336 Provide a more sensible suggested filename when downloading traces. 2007-07-17 14:34:22 +00:00
Tom Hughes
4235bdf162 Bring some sort of sanity to sequence numbers for segments in a
way - now everything starts counting at one again and nothing starts
at zero.
2007-06-29 23:00:27 +00:00
Tom Hughes
fcc485725d Make negative caching of users work. 2007-06-27 18:16:04 +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
Tom Hughes
71606b34f0 Make sure we get the list of tags and segments to save before we do the
corresponding delete, as otherwise we might not have read them from the
database yet.
2007-06-24 11:12:52 +00:00
Tom Hughes
b383517d2b Fix the segs and tags methods for old_ways so they work. 2007-06-23 23:21:35 +00:00
Tom Hughes
c184b20f9f Make sure the associations with segments and old ways are properly ordered. 2007-06-23 23:06:48 +00:00
Tom Hughes
cfa4f10a72 Show the most recent entries first when viewing a user's diary. 2007-06-23 00:11:44 +00:00
Tom Hughes
bb4b682d0b Fill in the visible flag correctly when updating the history for a way. 2007-06-22 15:34:24 +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
Tom Hughes
8284352436 Support tar archives of traces, with optional gzip or bzip2 compression. 2007-06-21 10:50:18 +00:00
Tom Hughes
b982bc6b19 Make "nearby users" show all those within 50km rather than all those
within a degree of latitude and longitude.
2007-06-20 17:04:29 +00:00
Tom Hughes
c11d961f62 Close a number of holes in the API by making it validate changes
more carefully.
2007-06-19 23:20:39 +00:00
Tom Hughes
7ab154a0ae Return usernames correctly. 2007-06-19 11:23:12 +00:00
Tom Hughes
6464d84c62 Add support for bzip2 compressed trace files. 2007-06-18 12:31:47 +00:00
Tom Hughes
8c8d55736f Tell users if the reason they can't login is because they haven't activated
their account yet.
2007-06-18 07:27:39 +00:00
Tom Hughes
7ecc1c4f21 Fix rm call to actually work... 2007-06-15 11:28:58 +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
2afcb4b222 Allow users to change their password from the account page, and get rid
of the separate edit page that (partially) duplicated the account page.
2007-06-12 00:28:53 +00:00
Tom Hughes
0d597c1771 Don't allow [/;.,?] to be used in display names, as those are used as
separator characters by rails when routing, which means a display name
containing them will not work as part of a URL.
2007-06-11 08:43:47 +00:00
Tom Hughes
81021a1081 Only validate the presence of a description on create as we have old
records in the database with no description.
2007-06-10 09:08:22 +00:00
Tom Hughes
a7d41f09eb Refactor GPX import code to make reimporting old traces easier. 2007-06-09 23:34:50 +00:00
Tom Hughes
a187c759b7 Validate passwords properly when creating an account. Fixes #419. 2007-06-09 22:56:18 +00:00
Steve Coast
c72f6a4182 fix based from TomH-Home 2007-06-07 00:38:09 +00:00
Richard Fairhurst
6efdcaa993 Latest Potlatch, plus TomH's GPX fix 2007-06-06 09:59:59 +00:00