Commit Graph

5 Commits (58e452beb891da7fcb54d78f6f482f39607a833d)

Author SHA1 Message Date
Eugen Rochko 216b85b053
Fix performance on instances list in admin UI ()
- Reduce duplicate queries
- Remove n+1 queries
- Add accounts count to detailed view
- Add separate action log entry for updating existing domain blocks
Yamagishi Kazutoshi d10447c3a8 Use raw status code on have_http_status ()
Akihiko Odaki 7b92950f1c Cover InstancesController more ()
Matt Jankowski 9566893cc9 More controller specs ()
* Add render_views in more places

* Delegate methods from account to user with allow nil true, so that admin accounts show view renders when missing a user

* Use actual account instances in authorize follow controller spec
Matt Jankowski 55e1503522 Instances list in admin ()
* Add admin/instances index action

* Add link to instances admin page

* View lists instances

* Instances, grouped by domain, ordered by count

* Use Account.remote scope

* Extract method: Account.by_domain_accounts