Andy Allan
7ffec2eb38
Rework the 'issues not found' notice slightly.
...
Previously it would go into a redirect loop if there were no issues
in the database.
2017-09-13 16:12:36 +01:00
Andy Allan
d7612f42d0
Refactor creating a new report to use a ReportsController
...
It's really a report that the user is creating, the issue is created indirectly. Similar
refactoring will be required for issue comments.
2017-09-06 18:06:21 +01:00
Andy Allan
3e4255eb2c
Use current_user instead of @user.
2017-08-02 12:21:51 +01:00
Andy Allan
c1cdddf11f
Use rails 5 version of redirect_back.
2017-07-12 13:57:09 +01:00
Andy Allan
9c1c696141
Remove indirection.
2017-07-12 13:42:39 +01: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
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
ed84930283
UI changes + Redirection after creating report fixed
...
(cherry picked from commit 987fcf0ba5e7e914dc479e9dc7613400e72148a0)
2016-08-22 16:18:15 +01:00
Shrey
eb79b15681
Fixed error
...
(cherry picked from commit 99f8a765b8303115c8633fdc9e3c4edc77cbc32d)
Conflicts:
app/controllers/issues_controller.rb
2016-08-22 16:18:15 +01:00
Shrey
b598979374
Changed report button + Added disclaimer on report page + Added search filter
2016-08-22 16:18:15 +01:00
Shrey
69c1f6d186
Added sortable headers + search + reportable Notes
2016-08-22 16:18:15 +01:00
Shrey
4b4b67aa96
Added report strings for Changesets and Notes + minor controller changes
2016-08-22 16:17:54 +01:00
Shrey
b17f9a6157
Fixed an error + Added email notifications for moderators
2016-08-22 16:17:54 +01:00
Shrey
b68b29b43c
Added support for reporting Changesets + Deleting issues from the CLI
2016-08-22 16:17:54 +01:00
Shrey
cf639202b8
Added a few more tests
2016-08-22 16:17:54 +01:00
Shrey
25737ce46e
Added a few tests
2016-08-22 16:17:54 +01:00
Shrey
965f32d545
Fixed existing tests
2016-08-22 16:17:54 +01:00
Shrey
e74163d036
Replaced check_box_tags with radio_button
2016-08-22 16:17:54 +01:00
Shrey
dc173881e5
Small changes
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
fb78544d05
Proper implementation of report strings + cleaning up
2016-08-22 16:17:54 +01:00
Shrey
0a3dd82c47
Added search for issues
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
cf4cfc530a
Moved strings to locales + Added 'Issues' button + Fixed typo in tests
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
d1d4f8192d
DB changes + Related issues added
2016-08-22 16:16:31 +01:00
Shrey
bdc6adddbf
basic UI for reporting diary entries,diary entry comments and user profiles
2016-08-22 16:15:12 +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