Project

General

Profile

Actions

Bug #18554

closed

application_helper can be slow when invoking authorized_for as non-admin

Added by Chris Duryee over 7 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
Users, Roles and Permissions
Target version:
-
Fixed in Releases:
Found in Releases:

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

Also available in: Atom PDF