Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Prefect doesn't show zero number from enum variants in UI dropdown #17272

Open
peterochek opened this issue Feb 25, 2025 · 0 comments
Open

Prefect doesn't show zero number from enum variants in UI dropdown #17272

peterochek opened this issue Feb 25, 2025 · 0 comments
Labels
bug Something isn't working ui Related to the Prefect web interface

Comments

@peterochek
Copy link

peterochek commented Feb 25, 2025

Bug summary

Hello!
I have following prefect setup. When setting one of the parameters to Python Enum '0' variant is not shown in drop-down list.

Same happens if i set OrderType extended from 'pydantic.baseModel`

class OrderStatus(enum.IntEnum):
    ACCEPTED = 0
    CANCELED = 1
@dataclass
class OrderType:
    status: OrderStatus
    flag: OrderFlag
@flow(log_prints=True)
def rtt_flow(order_types: list[OrderType]):
    logger = get_run_logger()
Image

Version info

Version:             3.2.6
API version:         0.8.4
Python version:      3.11.10
Git commit:          5ceb3ada
Built:               Wed, Feb 19, 2025 9:24 PM
OS/Arch:             linux/x86_64
Profile:             default
Server type:         server
Pydantic version:    2.9.2

Additional context

No response

@peterochek peterochek added the bug Something isn't working label Feb 25, 2025
@cicdw cicdw added the ui Related to the Prefect web interface label Feb 25, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working ui Related to the Prefect web interface
Projects
None yet
Development

No branches or pull requests

2 participants