Actions
Bug #18554
closedapplication_helper can be slow when invoking authorized_for as non-admin
Status:
Rejected
Priority:
Normal
Assignee:
Category:
Users, Roles and Permissions
Target version:
-
Difficulty:
Triaged:
Bugzilla link:
Description
If you have a non-admin user with rights to view REX jobs, it can be very slow to view the task output. For example:
Rendered /opt/.../app/views/job_invocations/_tab_overview.html.erb (23.2ms)
Rendered /opt/.../app/views/job_invocations/_host_name_td.html.erb (3065.9ms)
Rendered /opt/.../app/views/job_invocations/_host_status_td.html.erb (0.5ms)
Rendered /opt/.../app/views/job_invocations/_host_actions_td.html.erb (3587.1ms)
If you attempt to view the same data as admin, it is fast:
Completed 200 OK in 67ms (Views: 47.9ms | ActiveRecord: 6.9ms)
This problem appears to be very similar to http://projects.theforeman.org/issues/15527.
Actions