Project

General

Profile

Actions

Bug #6896

closed

Content view pages generate *many* api calls

Added by Ohad Levy over 10 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Web UI
Target version:
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

when browsing a content view, I've noticed in the logs:

Processing by Katello::Api::V2::ContentViewsController#history as JSON
  Parameters: {"organization_id"=>"3", "page"=>"663", "search"=>"", "sort_by"=>"created_at", "sort_order"=>"DESC", "api_version"=>"v2", "id"=>"5"}
  Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/api/v2/content_view_histories/index.json.rabl within katello/api/v2/layouts/collection (1.8ms)
Completed 200 OK in 17ms (Views: 3.0ms | ActiveRecord: 0.7ms)
Processing by Katello::Api::V2::ContentViewsController#history as JSON
  Parameters: {"organization_id"=>"3", "page"=>"664", "search"=>"", "sort_by"=>"created_at", "sort_order"=>"DESC", "api_version"=>"v2", "id"=>"5"}
  Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/api/v2/content_view_histories/index.json.rabl within katello/api/v2/layouts/collection (1.8ms)
Completed 200 OK in 17ms (Views: 2.9ms | ActiveRecord: 0.7ms)
Processing by Katello::Api::V2::ContentViewsController#history as JSON
  Parameters: {"organization_id"=>"3", "page"=>"665", "search"=>"", "sort_by"=>"created_at", "sort_order"=>"DESC", "api_version"=>"v2", "id"=>"5"}
  Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/api/v2/content_view_histories/index.json.rabl within katello/api/v2/layouts/collection (1.9ms)
Completed 200 OK in 179ms (Views: 3.1ms | ActiveRecord: 4.1ms)
Processing by Katello::Api::V2::ContentViewsController#history as JSON
  Parameters: {"organization_id"=>"3", "page"=>"666", "search"=>"", "sort_by"=>"created_at", "sort_order"=>"DESC", "api_version"=>"v2", "id"=>"5"}
  Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/api/v2/content_view_histories/index.json.rabl within katello/api/v2/layouts/collection (2.0ms)

This kept on going for quite some time.

Actions

Also available in: Atom PDF