Project

General

Profile

Actions

action #110533

closed

Minion Jobs page keeps retrieving stats even when logged out size:M

Added by tinita almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Feature requests
Target version:
Start date:
2022-05-02
Due date:
% Done:

0%

Estimated time:

Description

Observation

When I have a browser window with the Minion Page open, it retrieves statistics in the background every four seconds (/minion/stats).

When I get logged out at some point, it keeps retrieving, but since it's unauthorized, the Ajax request always gets redirected to our OpenID provider, which is causing some other problems on their side due to the many requests.

Acceptance criteria

  • AC1: Move the Minion stats route (not all Minion routes!!!) into the public part of the openQA routes (to sidestep authentication)

Suggestions

  • Since it's a JSON request, don't redirect to a login page, just return 403
  • Detect that we get a 403 and stop retrieving data
  • Fix the ui upstream to stop requesting stats after receiving a non-200 response
Actions

Also available in: Atom PDF