action #110533
Updated by livdywan over 2 years ago
# 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