Trying to set Quality Gate conditions that went missing
I have tried restarting and reinstalling binary
I was doing some routine metrics when I noticed the Quality Gate conditions went missing for all my Quality Gates. When I go to add a new condition there are none available in the dropdown. Is there a problem with the database? Is there a way to recover from this kind of failure?
edit
Just noticed via the qualitygates/project_status?projectKey= API that Quality Gate conditions exist for projects. The UI does not reflect these, however.
I don’t have any ideas on the specific problem, but if the API is returning results then maybe something is going wrong between the UI and API. You might try opening your browser’s developer tools, then refreshing the page that should display the criteria for your quality gate. Post back with any errors you see, or even a screenshot of the whole thing.
OK your comment did the trick. I will edit the original post so anyone else running into it won’t waste as much time as I did…
It was a content blocker. I still am trying to figure out why that specific URL was blocked (Fetch API cannot load https://[HOST]api/metrics/search?ps=500 due to access control checks.), but the issue was purely related to the content blocker.