Commit graph

1558 commits

Author SHA1 Message Date
Tom Hughes
141a5692eb Fixed to work with merged changes to api availability checks. 2009-04-16 21:38:29 +00:00
Tom Hughes
a68b8651d5 Handle MySQL/Postgres boolean differences. 2009-04-16 21:16:09 +00:00
Tom Hughes
5449cf4adc Merge 14394:14533 from trunk. 2009-04-16 21:11:12 +00:00
Tom Hughes
a4de927a28 Handle differences in interval constant formatting. 2009-04-16 20:47:18 +00:00
Tom Hughes
bb7c4f93e2 Cope with MySQL and Postgres. 2009-04-16 20:40:32 +00:00
Tom Hughes
66c95aa3f9 Work out which session store class to use automatically. 2009-04-16 20:29:18 +00:00
Tom Hughes
2e2b556a25 Fix statistics script to work with 0.6 database schema. 2009-04-16 11:38:02 +00:00
Shaun McDonald
08bd1688ee Railsify the relation member model, type attribute, by putting it into class case, rather than lower case. Requires reload of postgres databases or manual change to the enum. Fixes the databrowser on postgres, however affects the rest of the codebase. 2009-04-15 14:49:21 +00:00
Tom Hughes
80c6c685bc Fix database check in browse controller. 2009-04-15 09:05:29 +00:00
Tom Hughes
45dfd0f05f Fix spelling mistake. 2009-04-15 08:03:26 +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
Shaun McDonald
5bc558e355 Should have a .new when raising error 2009-04-14 12:00:26 +00:00
Shaun McDonald
ed87bd73f3 Remove function that is in the test help from functional test 2009-04-14 11:52:56 +00:00
Shaun McDonald
d84d5c68de Remove function that is in the test help from functional test 2009-04-14 11:39:46 +00:00
Shaun McDonald
72a3947b1b remove the dup methods from the test helper. Add tests for no content and checking that a record has been created. 2009-04-13 00:13:51 +00:00
Shaun McDonald
90ec90f13d reverting last change, which included posgres config specific things 2009-04-13 00:10:37 +00:00
Shaun McDonald
2c52b06716 Remove duplication that is in the test helper. Adding tests for the passing of no content, and the wrong method used. Also ensuring that there has been a changeset added to the db when it is created. 2009-04-13 00:04:24 +00:00
Shaun McDonald
0f25285ab6 More tests, found a bug in the data browser, no fix yet. Fix db readme. Don't show the signup page to logged in users, by redirecting them to the home page. Remove unnessesary begin blocks in the browse controller. 2009-04-12 23:20:31 +00:00
Thomas Wood
464c490cae Use the right keyword this time... 2009-04-09 23:18:21 +00:00
Thomas Wood
6442208841 Add exceptions for remaing cases where XML::Parser.string is used, to catch for empty strings.
See also r14241
2009-04-09 22:37:43 +00:00
Tom Hughes
9c0f288bb7 Explicitly set the default for home_lat and home_lon to null. 2009-04-09 17:11:04 +00:00
Thomas Wood
776d2d7bc2 Return "Make my edits" button to functioning state, positioning is unfortunate, but it cannot be inside the page's form. I've made a compromise of the two states. 2009-04-09 17:06:53 +00:00
Tom Hughes
7fff6361c1 Use the inet type for IP addresses in postgres. 2009-04-09 15:17:12 +00:00
Tom Hughes
2e1414b229 Fix primary key creation for ACL table. 2009-04-09 15:09:38 +00:00
Tom Hughes
ea7938dd89 Use pg_config to find postgres. 2009-04-09 14:47:41 +00:00
Thomas Wood
63474e1f50 Fix readme instructions for module compilation 2009-04-09 14:16:13 +00:00
Thomas Wood
c64ebb9139 Add has_valid_bbox? method to Changeset model to tidy checking for bbox, and fix edge case where no bbox would cause changeset browsing to die. 2009-04-09 11:18:31 +00:00
Tom Hughes
47350833fc Make the box outline the same colour as the ways and points drawn
in the data browser maps.
2009-04-08 23:52:39 +00:00
Tom Hughes
1262b376ef Add a mini map to the changeset view in the data browser. 2009-04-08 23:44:43 +00:00
Tom Hughes
b02c873c0e Eliminate duplication of tag printing logic. 2009-04-08 23:19:41 +00:00
Tom Hughes
7daa4f5d2b Tidy up new box code. 2009-04-08 23:14:50 +00:00
Harry Wood
fdd5d2d779 new support for box=yes param on the homepage, and then link to this from various changeset display 2009-04-08 16:55:22 +00:00
Tom Hughes
1f8a68371a Merge 14059:14394 from trunk. 2009-04-08 13:53:09 +00:00
Tom Hughes
9b72debd9a Fix formatting of changeset details. 2009-04-08 13:35:35 +00:00
Shaun McDonald
240869f37b Adding a versionless capabilities to head, so that editors can use it now, prior to the 0.6 changeover. 2009-04-03 11:12:11 +00:00
Harry Wood
c321c026f2 tweak lat lon decision logic for the edit tab. made it more similar to logic in index, including using cookie 2009-04-02 18:08:46 +00:00
Harry Wood
bf0d8b3a5e lose the unnecessary <% embed syntax %> 2009-04-02 17:19:33 +00:00
Tom Hughes
72dfc2e55e Use correct key for z15 and greater. 2009-03-29 16:23:07 +00:00
Matt Amos
18633b7c9e Fixed a problem where rails was setting the ID column to null, which violates the not-null constraint. Also fixed possible typo in AMF controller. 2009-03-29 02:14:40 +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
Matt Amos
8140c99313 Fix for correct boolean handling in query. 2009-03-29 00:56:08 +00:00
Matt Amos
f492a1b709 Fixed unit tests and fixture loading for postgres. The foreign keys were playing havoc with the tests when only some fixtures were loaded. 2009-03-28 20:18:26 +00:00
Matt Amos
be75a1504f Fixed a couple of bugs with changeset bounding box calculation when modifying or deleting. 2009-03-27 12:22:23 +00:00
Harry Wood
663416ae0b fix 'edits' link. action was renamed 'list_user' 2009-03-26 23:43:34 +00:00
Richard Fairhurst
023b9e3662 fix user:pass auth for Potlatch 2009-03-26 09:38:11 +00:00
Matt Amos
568c05c548 Fixing failing potlatch tests. Someone who knows what the potlatch API is actually supposed to be doing should check these... 2009-03-25 17:54:21 +00:00
Tom Hughes
9752466c03 Add SOTM advert. 2009-03-25 16:49:33 +00:00
Harry Wood
0f3e5a28c0 show a 'no bbox specified' message for the moment at least. Due to inconsistent location detecting across tabs, the history tab often gets nil bbox (Need to fix for all tabs) + other history tab tweaks 2009-03-24 11:23:56 +00:00
Thomas Wood
6167bb6502 Shut up libxml's "Must specify a string with one or more characters" error on relation and way models. 2009-03-23 21:52:32 +00:00
Thomas Wood
d841d3d135 <td> tags must be closed, move browse index test over to changeset, lazy fix for new format 2009-03-23 21:35:06 +00:00