Commit graph

71 commits

Author SHA1 Message Date
Andy Allan
80a241f798 Allow reporting of anonymous notes 2018-02-28 14:26:40 +08:00
Andy Allan
63992d83bd Store the report category. 2017-12-13 16:02:55 +00:00
Andy Allan
0df788d742 Rename 'issue_type' to 'assigned_role', set defaults in the model and test. 2017-12-06 17:15:11 +00:00
Andy Allan
1956ab5913 Use a simple user_id for tables with one owning user
This is the standard way of naming in rails, and it avoids having
to tell rails which models are actually required.
2017-11-29 16:23:13 +00:00
Andy Allan
1d24228a3b Combine migrations into one
This makes it easier to review, rather than having a PR with migrations that
correct each other.
2017-11-29 16:13:32 +00:00
Andy Allan
2dd8f09395 Remove the reassign column from issue_comments
Reassigning is an effect of a controller action, not something that
should be stored in the database like this.
2017-11-29 16:05:12 +00:00
Andy Allan
33c43ab0af Ensure that issue comments have associated issues and users. 2017-09-13 15:01:36 +01:00
Andy Allan
a0b665faf7 Add missing structure.sql changes from 948fd8c8fa 2017-09-13 14:58:13 +01:00
Andy Allan
67a95ac7e9 Remove created_at / updated_at column definitions since these duplicate t.timestamps 2017-09-13 14:57:07 +01:00
Andy Allan
dbd88d893f Merge branch 'master' into moderation 2017-07-12 10:16:11 +01:00
Andy Allan
9046b5ba8d Revert unrelated changes from db/structure.sql 2017-07-05 15:36:56 +01:00
Tom Hughes
81deb35331 Update to rails 5.0.4 2017-06-27 08:26:44 +01:00
Tom Hughes
15934b9b56 Index oauth_tokens and client_applications by user_id 2017-02-22 13:44:57 +00:00
Tom Hughes
c83f15821d Update schema 2016-10-19 11:58:08 +01:00
Mikel Maron
3a14abde1b Update structure.sql 2016-10-11 21:22:00 -04:00
Mikel Maron
bb22e23dfb css in right place; fix structure.sql 2016-10-06 21:47:29 -04:00
Tom Hughes
dbeccba968 Update schema 2016-09-05 08:17:11 +01:00
Matt Amos
c3ad6aa292 More whitespace fixes. Attempting to get tests to pass. 2016-08-22 18:38:03 +01:00
Matt Amos
757a1aaa85 Made rubocop happy by formatting and minor syntax tweaks. 2016-08-22 17:24:10 +01:00
Shrey
69c1f6d186 Added sortable headers + search + reportable Notes 2016-08-22 16:18:15 +01:00
Shrey
b68b29b43c Added support for reporting Changesets + Deleting issues from the CLI 2016-08-22 16:17:54 +01:00
Shrey
f72c34aaf8 Added Issue Type + Issue Reassigning + Last updated_by 2016-08-22 16:17:54 +01:00
Shrey
c7bc13668b Issue reopens on Reports coming in after instance update 2016-08-22 16:17:54 +01:00
Shrey
d5f02968f6 Fixed tests + Altered migration file + Added reporting strings + Added update method 2016-08-22 16:17:54 +01:00
Shrey
faf4c5aa7a Fixed tests + Added new ones 2016-08-22 16:17:21 +01:00
Shrey
d1d4f8192d DB changes + Related issues added 2016-08-22 16:16:31 +01:00
Shrey
683722ed5c Added IssueComments + ForeignKeys + Indexes 2016-08-22 16:15:12 +01:00
Shrey
5add3cf671 Basic models set up 2016-08-22 16:12:31 +01:00
Tom Hughes
f00b624ce4 Improve message when Gravater is disabled 2016-08-19 12:27:54 +01:00
Tom Hughes
2d22ab10f7 Force coordinates into bounds when using the query tool 2015-02-25 11:16:10 +00:00
Tom Hughes
e434cb154c Convert OpenID authentication to generic third party authentication 2015-02-25 01:07:23 +00:00
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
Ł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
e36aa53f49 Update to paperclip 4.x and add content type validation 2014-02-10 00:34:23 +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
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
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
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