Hi all, I have defined the config_schema of a @op ...
# ask-community
j
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
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
Thank you! I get this, I thought there would be a way to display the options without typing the first letter!
y
ah that’s a great feedback. i’ll log that idea!
@Dagster Bot issue Consider display all enum options in Dagit Launchpad
❤️ 2
d