Tom Hughes
b5f06e06c1
Fix rubocop Rails/TimeZone warnings
2022-03-01 22:55:10 +00:00
Andy Allan
619ac4c5b2
Enable active_record.belongs_to_required_by_default
...
This switches the logic so that belongs_to parent objects must exist
by default, and marks the optional ones explicitly. This is reflected
in the null/not_null status on the relevant db columns.
2022-02-23 20:33:28 +00:00
Tom Hughes
25510b6616
Add additional limits on sending messages
...
Additional limits apply to new accounts and accounts with
unresolved issues reported against them.
Fixes #3135
2021-03-31 22:40:34 +01:00
Tom Hughes
39b60219fe
Fix new rubocop warnings
2020-06-11 19:21:41 +01:00
Andy Allan
a41d500b9f
Create an ApplicationRecord for models to inherit from
...
This is the default for Rails 5+, and also paves the way for
multiple database support.
2019-11-27 11:50:48 +01:00
Tom Hughes
e5604ce98e
Assign vandalism reports for users to moderators
2018-06-17 11:14:19 +01:00
Tom Hughes
6c225bd01c
Only include issues visible to the current user in the count
2018-06-17 01:01:24 +01:00
Tom Hughes
f227804093
Add some extra indexes on issues
2018-06-10 15:25:53 +01:00
Andy Allan
ee1a8637d3
Convert issue status to an enum
2018-03-21 12:05:08 +08:00
Andy Allan
facce9d0bb
Refactor set_default_assigned_role to be more easily read.
2018-03-14 17:35:58 +08:00
Andy Allan
5310c7000c
Remove cascading deletes, add another foreign key, and switch index around.
2018-03-14 16:15:39 +08:00
Andy Allan
3006ce9713
Remove reporting of changesets
2018-02-28 14:39:40 +08:00
Andy Allan
80a241f798
Allow reporting of anonymous notes
2018-02-28 14:26:40 +08:00
Andy Allan
8dc8479e12
Re-enable issue reassigning.
2017-12-06 18:01:51 +00:00
Andy Allan
cbe707b33e
Validate the assigned role, and remove the :type activrecord enum
2017-12-06 17:15:11 +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
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
fc0096289d
Annotate models.
2017-11-29 12:34:04 +00:00
Andy Allan
506c0b5f0d
Set the reported_user in a callback
...
This avoids passing around the reported_user via forms. There was no
validation anywhere that the reported_user corresponded to the object
being reported. This approach removes those worries too.
2017-07-12 13:36:48 +01:00
Andy Allan
65e1dbb4a6
Rubocop autofixes.
2017-07-12 11:49:23 +01:00
Andy Allan
99df5f6179
Rename association to reported_user, for clarity
2017-07-12 11:44:05 +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
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
d49922eb63
Added authorization + issues dashboard
2016-08-22 16:14:10 +01:00
Shrey
453f758f91
Controllers + a few tests + new notification added. Work pending on the notification view
2016-08-22 16:13:31 +01:00
Shrey
5add3cf671
Basic models set up
2016-08-22 16:12:31 +01:00