Skip to content

Move Environments App Query to Use Polling

Andrew Fontaine requested to merge afontaine/new-environments-polling into master

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:

  1. Enable the new environments page
    Feature.enable(:new_environments_table)
  2. Navigate to environments page for environment
  3. 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.

Edited by Andrew Fontaine

Merge request reports