Project

General

Profile

Feature #25551

Prevent auto-refreshing on inactive dashboard tabs

Added by Lukas Zapletal over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Dashboard generates many queries depending on amount of widgets. When search box is used, queries get more complicated and very slow. My initial idea is to use Rails cache to cache these, this will speed things up quite lot.

EDIT: I am turning this into disabling auto refresh for inactive tabs or minimized browsers since caching turned out not to be best idea.


Related issues

Related to Foreman - Feature #25637: Disable default auto-reload of the dashboardClosed

Associated revisions

Revision ffef16d6 (diff)
Added by Avi Sharvit about 4 years ago

Fixes #25551 - Prevent auto-refresh when inactive

History

#1 Updated by Lukas Zapletal over 4 years ago

  • Triaged changed from No to Yes
  • Subject changed from Dashboard with search query generates multiple slow queries to Dashboard with search query generates multiple slow queries

#2 Updated by The Foreman Bot over 4 years ago

  • Assignee set to Lukas Zapletal
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6281 added

#3 Updated by Lukas Zapletal over 4 years ago

  • Assignee deleted (Lukas Zapletal)
  • Status changed from Ready For Testing to New
  • Pull request deleted (https://github.com/theforeman/foreman/pull/6281)

Caching solution was not preferred by the community, I am leaving this to WebUI/JS team to at least prevent refreshing on inactive tab.

#4 Updated by Lukas Zapletal over 4 years ago

  • Category changed from Dashboard to Web Interface
  • Subject changed from Dashboard with search query generates multiple slow queries to Prevent auto-refreshing on inactive dashboard tabs

New task: Do not refresh dashboard if a tab is on a background.

#5 Updated by Lukas Zapletal about 4 years ago

  • Related to Feature #25637: Disable default auto-reload of the dashboard added

#6 Updated by Lukas Zapletal about 4 years ago

  • Difficulty set to easy
  • Priority changed from High to Normal
  • Description updated (diff)
  • Tracker changed from Bug to Feature

#7 Updated by Lukas Zapletal about 4 years ago

  • Bugzilla link deleted (1650662)

#8 Updated by The Foreman Bot about 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6420 added

#9 Updated by Ohad Levy about 4 years ago

  • Target version set to 1.22.0
  • Fixed in Releases 1.22.0 added

#10 Updated by Avi Sharvit about 4 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF