HomePhabricator

Use Apollo cache normalization for schedule stop/start

Authored by sashank on Nov 7 2019, 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

Details

Committed
sashankNov 8 2019, 6:48 PM
Reviewer
Restricted Project
Differential Revision
D1384: Use Apollo cache normalization for schedule stop/start
Parents
R1:a86b343aacce: Guard against inscrutable error messages when passing badly-behaved values in…
Branches
Unknown
Tags
Unknown