Commit graph

328 commits

Author SHA1 Message Date
Tom Hughes
959a076b50 Add some padding to select elements 2015-02-01 11:29:38 +00:00
Tom Hughes
44e44a5198 Only log at info level in production 2015-01-18 19:43:21 +00:00
Tom Hughes
cd2ca12d42 Merge branch 'rails42' 2015-01-17 11:09:13 +00:00
Tom Hughes
821a22c607 Update old changesets to subscribe the creator 2015-01-11 19:44:58 +00:00
Tom Hughes
8fa9763281 Set default formats in the database now that rails handles enums
Because rails now reads the defaults from the database correctly it
no longer works to set them conditionally in after_initialise as they
have already been set.
2015-01-11 12:54:16 +00:00
Tom Hughes
ac7bb003ec Cleanup migrations
Cleanup our migrations, replacing as much of our custom code
and monkey patching with modern standard rails methods.
2015-01-11 12:53:01 +00:00
Tom Hughes
501d13e1c0 Merge branch 'master' into overpass 2014-11-01 12:50:23 +00:00
Tom Hughes
8598db3233 Tidy up changeset comment code 2014-10-23 21:24:51 +01:00
Łukasz Gurdek
14ac1babc2 Changeset discussions
Add support for commenting on changesets with RSS feeds and email
notification of comments to other commenters and people that have
chosen to subscribe to a changeset.
2014-10-23 21:24:51 +01:00
Tom Hughes
2bdd542d9b Require the migration support code 2014-05-12 15:55:00 +01:00
Tom Hughes
360333d37d Modernise use of find and update_all in database migrations 2014-04-27 19:18:35 +01:00
Tom Hughes
e36aa53f49 Update to paperclip 4.x and add content type validation 2014-02-10 00:34:23 +00:00
Tom Hughes
8accdb9259 Remove code to populate countries table 2014-01-17 19:57:58 +00:00
Tom Hughes
42b329ed82 Replace the country table with a static XML countries file
Storing the countries in the database is overkill, so just use a
copy of the geonames countryInfo data that is loaded into a hash
the first time it is used.
2014-01-17 19:25:58 +00:00
Tom Hughes
45618726ef Reenable the note search API
Add a postgress freetext index on the note comments, and enable
note searching using freetext matching.
2014-01-15 19:58:58 +00:00
Tom Hughes
0c8ed1938b Add an index on created_at to the note_comments table 2013-12-12 12:50:05 +00:00
Tom Hughes
95e8c63c2a Fix rails 4 compatibility issues in migrations 2013-09-21 12:03:53 +01:00
Tom Hughes
baaa67b5b1 Update database structure 2013-04-23 22:57:40 +01:00
Tom Hughes
97e0d5ad1f Add a new write_notes permission needed for OAuth access to notes 2013-03-28 18:50:18 +00:00
Tom Hughes
31a031be26 Convert author_ip to a proper INET field 2012-12-03 14:50:55 +00:00
Tom Hughes
ba5107ebb5 Remove the author_name field from notes 2012-12-03 14:50:54 +00:00
Kai Krueger
0a3aba7f89 Remove nearby_place from the note model
Instead of storing the auto-generated meta information nearby_place
in the database, just look up the information on the fly when needed
and cache it for performance.
2012-12-01 18:18:09 +00:00
Tom Hughes
7599f98957 Merge branch 'master' into notes
Conflicts:
	Gemfile
	Gemfile.lock
	app/assets/stylesheets/common.css.scss
	app/helpers/application_helper.rb
2012-11-20 19:08:30 +00:00
Tom Hughes
1b0028574a Update database schema 2012-10-18 18:59:39 +01:00
Paweł Paprota
ad43499205 Implemented Gravatar support 2012-10-18 18:59:38 +01:00
Tom Hughes
0037502426 Merge branch 'master' into notes
Conflicts:
	Gemfile.lock
	app/views/browse/_map.html.erb
	app/views/site/index.html.erb
2012-10-13 15:55:34 +01:00
Tom Hughes
4377418d53 Update database schema 2012-10-13 11:49:52 +01:00
Tom Hughes
99a2b549d4 Drop renaming of sequences
Rails seems to rename sequences automatically now when the
corresponding table is renamed, so we don't need to do it.
2012-10-13 11:49:37 +01:00
Tom Hughes
a63b22a9af Fix require paths in migrations 2012-10-13 11:33:16 +01:00
Paweł Paprota
67a03d44a1 Display a diary entry count on the user page 2012-10-07 16:17:01 +01:00
Tom Hughes
88d10f8db8 Update database schema 2012-09-29 18:00:04 +01:00
Tom Hughes
3ce4de1295 Add a /api/0.6/user/NNNN call to the API 2012-09-24 18:44:11 +01:00
Tom Hughes
e9c82ce19d Update database schema 2012-09-16 14:47:48 +01:00
Tom Hughes
686ce8f3e5 Fix interpolation issues in attribution text 2012-09-13 09:56:26 +01:00
Tom Hughes
0d3a9ed9cb Merge branch 'master' into openstreetbugs
Conflicts:
	Gemfile.lock
	app/views/browse/_map.html.erb
	app/views/user/view.html.erb
	config/locales/en.yml
	config/openlayers.cfg
	db/structure.sql
	vendor/assets/openlayers/OpenLayers.js
2012-08-22 20:52:08 +01:00
Tom Hughes
3ca027f3d6 Update schema 2012-08-10 08:42:38 +01:00
Tom MacWright
221ca3c1fa Improve user page navigation menu
Add counts to edits, blocks, and traces; don't show blocks if there
are none; and move OAuth to the settings page.
2012-08-10 08:26:48 +01:00
Tom Hughes
5fabab8b08 Update database schema 2012-04-09 20:52:32 +01:00
Tom Hughes
c5152d1860 Improve styling of redaction view 2012-04-05 14:33:13 +01:00
Matt Amos
851de28303 Added redactions resource 2012-04-05 13:50:15 +01:00
Matt Amos
822759075c Add redactions table and link it to history tables 2012-04-04 08:43:44 +01:00
Tom Hughes
987c52f53e Only require a readable database for login, not a writable one 2012-03-28 10:08:38 +01:00
Tom Hughes
19b6221b32 Drop the sessions table 2012-03-28 10:07:58 +01:00
Tom Hughes
5f33656c8d Get rid of custom CSRF protection for user role changes
By restricting role changes to POST requests, which they should be
anyway, we get all the rails CSRF protection for free.
2012-03-20 17:21:13 +00:00
Tom Hughes
3b0ff552de Add "text" to the valid formats 2012-03-18 13:19:44 +00:00
Tom Hughes
8a7a4b2ece Update schema 2012-03-17 17:14:11 +00:00
Tom Hughes
d66f38de45 Update schema 2012-03-17 16:36:59 +00:00
Tom Hughes
aa4205482a Treat all newly entered blocks of text as Markdown 2012-03-17 16:36:55 +00:00
Tom Hughes
c74180ba0f Update schema 2012-03-09 20:17:21 +00:00
Tom Hughes
11af5c266d Update schema 2012-03-09 00:35:23 +00:00