Admin reports controller improvements (#1714)
* Simplify admin/reports controller filtering for index * Rename parameter to resolved * Fix issue where reports view could not access filter_link_to * Add coverage for admin/reports controller * DRY up resolution of related reports for target account * Clean up admin/reports routes * Add Report#statuses method * DRY up current account action taken params * Rubocop styles
Showing
- app/controllers/admin/reported_statuses_controller.rb 18 additions, 0 deletionsapp/controllers/admin/reported_statuses_controller.rb
- app/controllers/admin/reports_controller.rb 41 additions, 19 deletionsapp/controllers/admin/reports_controller.rb
- app/helpers/admin/accounts_helper.rb 1 addition, 1 deletionapp/helpers/admin/accounts_helper.rb
- app/models/report.rb 4 additions, 0 deletionsapp/models/report.rb
- app/views/admin/reports/index.html.haml 2 additions, 2 deletionsapp/views/admin/reports/index.html.haml
- app/views/admin/reports/show.html.haml 6 additions, 6 deletionsapp/views/admin/reports/show.html.haml
- config/routes.rb 2 additions, 7 deletionsconfig/routes.rb
- spec/controllers/admin/reported_statuses_controller_spec.rb 21 additions, 0 deletionsspec/controllers/admin/reported_statuses_controller_spec.rb
- spec/controllers/admin/reports_controller_spec.rb 76 additions, 4 deletionsspec/controllers/admin/reports_controller_spec.rb
- spec/fabricators/report_fabricator.rb 2 additions, 0 deletionsspec/fabricators/report_fabricator.rb
- spec/models/report_spec.rb 9 additions, 1 deletionspec/models/report_spec.rb
Loading
Please register or sign in to comment