-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[single-implicit-asset-job] add
partitionKeysOrError
and `partition…
…` to `GrapheneJob` (#23494) ## Summary & Motivation This enables the frontend to query for partition information with respect to an asset selection within a job. This enables a world where jobs can contain assets with different `PartitionsDefinition`s. It's used by @bengotow 's `partition-set-to-job/graphql-ui` branch. Sits atop #23491. ## How I Tested These Changes
- Loading branch information
Showing
10 changed files
with
448 additions
and
55 deletions.
There are no files selected for viewing
29 changes: 25 additions & 4 deletions
29
js_modules/dagster-ui/packages/ui-core/src/graphql/schema.graphql
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
85 changes: 85 additions & 0 deletions
85
js_modules/dagster-ui/packages/ui-core/src/graphql/types.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
python_modules/dagster-graphql/dagster_graphql/schema/partition_keys.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import graphene | ||
|
||
from dagster_graphql.schema.errors import GrapheneError | ||
|
||
from .util import non_null_list | ||
|
||
|
||
class GraphenePartitionKeys(graphene.ObjectType): | ||
partitionKeys = non_null_list(graphene.String) | ||
|
||
class Meta: | ||
name = "PartitionKeys" | ||
|
||
|
||
class GraphenePartitionSubsetDeserializationError(graphene.ObjectType): | ||
message = graphene.NonNull(graphene.String) | ||
|
||
class Meta: | ||
interfaces = (GrapheneError,) | ||
name = "PartitionSubsetDeserializationError" | ||
|
||
|
||
class GraphenePartitionKeysOrError(graphene.Union): | ||
class Meta: | ||
types = (GraphenePartitionKeys, GraphenePartitionSubsetDeserializationError) | ||
name = "PartitionKeysOrError" |
Oops, something went wrong.
3bd53c0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for dagit-core-storybook ready!
✅ Preview
https://dagit-core-storybook-ge3jz2v6g-elementl.vercel.app
Built with commit 3bd53c0.
This pull request is being automatically deployed with vercel-action