Pipeline view should refresh when browser tab is not the active one
Summary
I personally open many pipelines on my favorite web browser. When I get back to one of them, I wish I immediately saw the latest state of it. Instead, I have to wait about 10 seconds, without any indication that something is loading.
Steps to reproduce
- Open a pipeline[1] on your favorite browser
- Go to some other tabs to keep doing your regular work
- The favicon doesn't get refreshed (#323699 (closed)), so go to the pipeline tab.
[1] URL matches this pattern https://gitlab.com/GROUP_NAME/REPO_NAME/-/pipelines/$PIPELINE_ID
What is the current bug behavior?
The pipeline view remains identical to the last time I saw it (which is usually the beginning of the pipeline). About 10 seconds later, the view gets updated. Although, I have to stare at my screen for that time. If I happen to switch tabs again, I don't get updated.
What is the expected correct behavior?
The pipeline view should update in the background. This way, when I come back to that tab, I may have not the actual latest state, but it's close to it, until the next refresh happens. What do you all think?
Relevant logs and/or screenshots
N/A
Output of checks
This bug happens on GitLab.com