Commit graph

472 commits

Author SHA1 Message Date
Tom Hughes
f77a3c75be Add methods to get a bug's author details from the first comment 2011-05-18 00:36:01 +01:00
Tom Hughes
882700c5c8 Rename some columns and indexes in the bug tables 2011-05-18 00:36:00 +01:00
Tom Hughes
8852454795 Rename association between map_bugs and map_bug_comment to comments 2011-05-08 00:22:32 +01:00
Tom Hughes
63e9c4771a Always get the bug commenter name from the user if there is one 2011-05-07 17:47:05 +01:00
Tom Hughes
4b0191befd Detabify and tidy up some more of the bugs code 2011-05-07 13:18:42 +01:00
Tom Hughes
e7cd90f4b4 Merge branch 'master' into openstreetbugs 2011-05-06 22:56:47 +01:00
Tom Hughes
a9ff3bfc4b Remove tags from deleted nodes
When ways or relations are deleted we remove their tags and there
is no reason why nodes should be different.
2011-05-05 20:25:58 +01:00
Kai Krueger
b3d62bb85a Send notification emails when someone comments on a map bug report 2011-04-27 12:01:52 -06:00
Kai Krueger
001ff5764b Merge branch 'master' into openstreetbugs2 2011-04-19 22:00:30 -06:00
Andy Allan
33a039e849 Show the latest changeset for each of the contacts on the user page 2010-12-17 13:36:53 +00:00
Andy Allan
6d51e77880 Use configuration variables for limiting nearby users, and bump the number to 30 2010-12-17 13:18:26 +00:00
Tom Hughes
0a52a4eb07 Implement automatic OAuth setup for Potlatch 2 2010-11-29 12:20:22 +00:00
Matt Amos
cd66a5db99 Initial work on support for multiple editors 2010-11-29 12:20:21 +00:00
Tom Hughes
a1cb0f04d4 Merge branch 'master' into openstreetbugs
Conflicts:
	app/views/site/index.html.erb
2010-10-17 11:02:11 +01:00
Tom Hughes
71f1554212 Make trace API a proper CRUD API like other object types 2010-10-11 23:09:27 +01:00
Tom Hughes
9caa2046ca Include description and tags in GPX details API response 2010-10-11 19:10:42 +01:00
Tom Hughes
bddf524c88 Allow users to send themselves a new confirmation email
Add a method which generates a new confirmation email, and provide
links to it from appropriate places.
2010-10-04 21:52:58 +01:00
Tom Hughes
1c3a9ee62b Update oauth models and controllers for OAuth 1.0a support 2010-09-21 16:20:30 +01:00
Tom Hughes
6fb8570200 Merge branch 'master' into openstreetbugs
Conflicts:
	config/environment.rb
	config/routes.rb
2010-09-06 12:51:50 +01:00
Tom Hughes
f07819d81a Rework application configuration
Use a preinitializer to load the settings from application.yml so
that they are available as early as possible. All settings can also
be overridden using environment variables.

The ad-hoc settins in environment.rb are then moved to this new
system so we have one consistent location for settings.
2010-08-04 22:06:05 +01:00
Tom Hughes
52395b3cdf Merge branch 'master' into openstreetbugs 2010-07-28 21:30:55 +01:00
Tom Hughes
6740cab85b Use the correct name for the interpolation variable 2010-06-29 15:19:54 +01:00
Tom Hughes
2038cd52c6 Include an [OpenStreetMap] prefix on the subject of message notifications
Put back the [OpenStreetMap] prefix to the subject line of email
notifications of messages, but strip it again from any incoming
email replies.
2010-06-29 09:43:30 +01:00
Tom Hughes
b4a22eee71 Reject leading and trailing whitespace in display names 2010-06-28 17:47:05 +01:00
Tom Hughes
02ad2f5a51 Merge branch 'master' into openstreetbugs 2010-06-27 16:29:52 +01:00
Tom Hughes
eefb42334f Use the message title as the subject of notification mails
Make message notification mails use the message title as the subject
so that it is properly perserved when replying by email. Closes #3051.
2010-06-26 16:03:47 +01:00
Tom Hughes
406b46e49b Revert "Switch to using oauth-plugin as a gem"
This reverts commit 41a123334b.
2010-06-07 16:01:04 +01:00
Tom Hughes
41a123334b Switch to using oauth-plugin as a gem
Use the oauth-plugin as a gem instead of carrying a local copy.

This also required that commit eff06faf46 be
reverted as it changed the plugin. I don't think the cosmetic improvement
from that patch is worth the hassle of carrying local changes to the plugin.
2010-05-24 12:58:27 +01:00
Tom Hughes
160429e62d Merge branch 'master' into openstreetbugs
Conflicts:
	lib/osm.rb
2010-05-07 22:29:09 +01:00
Tom Hughes
5d3992daca Tell users their account has been suspended when they try and login 2010-05-06 17:18:34 +01:00
Tom Hughes
980c2fa301 Suspend users if their spam score gets too high
Use an observer to watch all diary and user updates and, if the user
is not confirmed, chek their spam score and suspend then if it has got
too high.
2010-05-06 17:18:34 +01:00
Tom Hughes
5a54630b57 Add support for suspended and confirmed users
Replace the existing "active" and "visible" with an enumerated status
that allows for extra cases. Currently we have "suspended" for users
who hve triggered the spam detector and "confirmed" for users that have
triggered the detector but have been confirmed as vald by an admin.
2010-05-06 17:18:34 +01:00
Tom Hughes
8b781bb18b Include the user description in the spam score 2010-05-06 17:18:34 +01:00
Tom Hughes
937b576bf5 Add a spam_score method to the user model 2010-05-06 17:18:33 +01:00
Kai Krueger
5898b494df Merge branch 'master' of git://git.openstreetmap.org/rails into openstreetbugs 2010-05-02 11:42:58 +01:00
Andy Allan
cd89a3c662 Move email configuration out of the model and into the config file 2010-05-01 12:36:22 +01:00
Tom Hughes
acbc99ac16 Merge branch 'master' into openstreetbugs 2010-04-19 21:30:42 +01:00
Tom Hughes
f576c47525 Ignore whitespace around the commas when splitting a user's list of
preferred languages. Closes #2891.
2010-04-19 14:28:03 +01:00
Kai Krueger
c3bf919e3e Reuse the map_bug_comment table as a more general history table of map_bugs including close and reopen events
This helps the rss feed to work on a per event basis rather than on a per bug basis
2010-03-21 12:12:05 +00:00
Kai Krueger
03f733c4f4 Merge -r 20198:20540 from trunc into openstreetbugs branch 2010-03-18 12:42:23 +00:00
Kai Krueger
01aa270315 Add a browse page for bugs 2010-03-13 13:45:02 +00:00
Kai Krueger
c22958faed Record time of closure of a bug. 2010-03-10 08:42:07 +00:00
Kai Krueger
d0e291552e Allow for different formats to the getBugs call
This is a rudimentary initial version of a GPX and a rss
format for looking at bugs in an area.
2010-03-04 22:30:42 +00:00
Kai Krueger
eac7348ad2 Split comment field out of map bugs table
Rather than have all comments in a single text field, have each comment in its own entry
and only combine them back on output
2010-03-01 21:05:40 +00:00
Tom Hughes
5e9ae68fb2 Make friend notification messages include a link to add a reciprocal
friendship if it doesn't already exist. Closes #2754.
2010-03-01 12:08:11 +00:00
Kai Krueger
42822a8b89 An initial (incomplete) "proof of concept" integration of an OpenStreetBugs interface into the rails port
This is a (start of a) reimplementation of the api at http://github.com/emka/openstreetbugs/tree/master/api/0.1/
into rails

The client side code is taken from http://wiki.openstreetmap.org/wiki/OpenStreetBugs/New_Client

This is ment as a mockup to perhaps use as a basis to further discuss how best to integrate a map bug reporting system

It currently uses (more or less) the openstreetbugs api specification. But this api feels rather inconsistent with the
rest of the rails_port api, so depending on discussions might still need some significant changes.
2010-02-28 09:30:40 +00:00
Tom Hughes
0b913efd05 Use Nominatim to reverse geocode diary location information and display
a friendly human readable location instead of some coordinates.
2010-02-27 12:41:56 +00:00
Tom Hughes
9deeae3f96 Remove validates_associated_of calls which target the user model as
we have a number of users with minor validation failures.
2010-02-25 21:50:09 +00:00
Tom Hughes
7f28b7342c Improve email address validation and add validation of the new
email address field. Closes #2744.
2010-02-25 19:15:54 +00:00
Tom Hughes
5d658d5a34 Fix expiry of cached diary views. 2010-01-27 09:12:25 +00:00