https://dagster.io/ logo
#ask-community
Title
# ask-community
j

jose

09/09/2022, 7:48 PM
Hi all, I have defined the config_schema of a @op to be a Enum , as documented here What should I have in the @job config ? I want to exhibit all the Enum options in dagit, and right now I am only able to have a default value
y

yuhan

09/09/2022, 8:24 PM
Copy code
from dagster import op, job, repository, Field, Enum, EnumValue


@op(
    config_schema=Field(
        Enum("CowboyType", [EnumValue("good"), EnumValue("bad"), EnumValue("ugly")])
    )
)
def my_op():
    pass


@job
def my_job():
    my_op()


@repository
def my_repo():
    return [my_job]
if your code looks like this, the values should be available in the autocomplete in dagit’s launchpad:
❤️ 1
j

jose

09/09/2022, 8:26 PM
Thank you! I get this, I thought there would be a way to display the options without typing the first letter!
y

yuhan

09/09/2022, 8:30 PM
ah that’s a great feedback. i’ll log that idea!
@Dagster Bot issue Consider display all enum options in Dagit Launchpad
❤️ 2
d

Dagster Bot

09/09/2022, 8:30 PM
4 Views