Project

General

Custom queries

Profile

Actions

Feature #25551

closed

Prevent auto-refreshing on inactive dashboard tabs

Added by Lukas Zapletal over 6 years ago. Updated over 6 years ago.

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

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 1 (0 open1 closed)

Related to Foreman - Feature #25637: Disable default auto-reload of the dashboardClosedTomer BriskerActions
Actions #3

Updated by Lukas Zapletal over 6 years ago

  • Status changed from Ready For Testing to New
  • Assignee deleted (Lukas Zapletal)
  • 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.

Actions #4

Updated by Lukas Zapletal over 6 years ago

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

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

Actions #10

Updated by Avi Sharvit over 6 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF