Move Environments App Query to Use Polling
What does this MR do and why?
The old version of this page relies on HTTP polling for updates. As I am not actually using a GraphQL API here, nor are there any GraphQL subscriptions to take advantage of, I still need to rely on HTTP polling.
I fetch the polling interval out of the headers of the response, and write that to a separate query. Then, I utilize that interval in the configuration of the environment app query.
Also update a few of the resolvers to pass back error messages, matching the current environments page.
How to set up and validate locally:
- Enable the new environments page
Feature.enable(:new_environments_table)
- Navigate to environments page for environment
- View network tab for polling
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Andrew Fontaine