HomePhabricator

Support preview configuration for dynamic schedule configs

Authored by sashank on Nov 12 2019, 7:49 PM.

Description

Support preview configuration for dynamic schedule configs

Summary:
If a ScheduleDefinition uses a dynamic config (environment_config_fn), then Dagit would not properly load the config. This diff updates the gql resolvers to evaluation the config function if it exists to support the view configuration feature.

Caveat is that environment_config_fn can't have any side effects.

Test Plan: unit

Reviewers: #ft, alangenfeld

Reviewed By: #ft, alangenfeld

Subscribers: alangenfeld

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

Details

Committed
sashankNov 12 2019, 10:48 PM
Reviewer
Restricted Project
Differential Revision
D1404: Support preview configuration for dynamic schedule configs
Parents
R1:afb6dafc5222: 0.6.4.pre3
Branches
Unknown
Tags
Unknown