HomePhabricator

Use Apollo cache normalization for schedule stop/start

Authored by Sashank Thupukari <s@thupukari.com> on Thu, Nov 7, 9:59 PM.

Description

Use Apollo cache normalization for schedule stop/start

Summary:
Previously, the Dagit scheduler page would use optimistic updates to update the state of the schedule state toggle. This diff changes it to properly use Apollo's cache normalization for mutations.

https://www.apollographql.com/docs/angular/features/cache-updates/

Test Plan: Start and stop schedules from Dagit, verify they are in the correct state

Reviewers: #ft, prha

Reviewed By: #ft, prha

Subscribers: prha

Differential Revision: https://dagster.phacility.com/D1384