def resolve_tags(self, graphene_info): return [ graphene_info.schema.type_named("PipelineTag")(key=key, value=value) for key, value in self._active_preset_data.tags.items() if get_tag_type(key) != TagType.HIDDEN ]
def get_run_tags(graphene_info): instance = graphene_info.context.instance return [ graphene_info.schema.type_named("PipelineTagAndValues")(key=key, values=values) for key, values in instance.get_run_tags() if get_tag_type(key) != TagType.HIDDEN ]
def get_run_tags(graphene_info): from ..schema.tags import GraphenePipelineTagAndValues instance = graphene_info.context.instance return [ GraphenePipelineTagAndValues(key=key, values=values) for key, values in instance.get_run_tags() if get_tag_type(key) != TagType.HIDDEN ]
def get_partition_tags(graphene_info, repository_handle, partition_set_name, partition_name): from ..schema.partition_sets import GraphenePartitionTags from ..schema.tags import GraphenePipelineTag check.inst_param(repository_handle, "repository_handle", RepositoryHandle) check.str_param(partition_set_name, "partition_set_name") check.str_param(partition_name, "partition_name") result = graphene_info.context.get_external_partition_tags( repository_handle, partition_set_name, partition_name) return GraphenePartitionTags(results=[ GraphenePipelineTag(key=key, value=value) for key, value in result.tags.items() if get_tag_type(key) != TagType.HIDDEN ])
def get_partition_tags(graphene_info, repository_handle, partition_set_name, partition_name): check.inst_param(repository_handle, "repository_handle", RepositoryHandle) check.str_param(partition_set_name, "partition_set_name") check.str_param(partition_name, "partition_name") result = graphene_info.context.get_external_partition_tags( repository_handle, partition_set_name, partition_name) if isinstance(result, ExternalPartitionTagsData): return graphene_info.schema.type_named("PartitionTags")(results=[ graphene_info.schema.type_named("PipelineTag")(key=key, value=value) for key, value in result.tags.items() if get_tag_type(key) != TagType.HIDDEN ]) else: return graphene_info.schema.type_named("PythonError")(result.error)
def resolve_tags(self, _graphene_info): return [ GraphenePipelineTag(key=key, value=value) for key, value in self._active_preset_data.tags.items() if get_tag_type(key) != TagType.HIDDEN ]