-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[single-implicit-asset-job] add partitionKeysOrError
and partition
to GrapheneJob
#23494
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,32 +15,12 @@ | |
|
||
from .asset_key import GrapheneAssetKey | ||
from .auto_materialize_policy import GrapheneAutoMaterializeRule | ||
from .partition_keys import GraphenePartitionKeys, GraphenePartitionKeysOrError | ||
from .util import non_null_list | ||
|
||
GrapheneAutoMaterializeDecisionType = graphene.Enum.from_enum(AutoMaterializeDecisionType) | ||
|
||
|
||
class GraphenePartitionKeys(graphene.ObjectType): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just moved this to a different file |
||
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" | ||
|
||
|
||
class GrapheneTextRuleEvaluationData(graphene.ObjectType): | ||
text = graphene.String() | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import graphene | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just moved this from a different file |
||
|
||
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" |
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.
just moved this from a different file