rubenf
rubenf10mo ago

Hello @Rory , we will fix the

Hello @Rory , we will fix the multiselect coloring right away. Dynamic enums are a todo for us, should be available this week or the next
16 Replies
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
rubenf
rubenf10mo ago
I did the former and i'm about to finish the latter Using: x: List[Literal["foo", "bar"]]
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
rubenf
rubenf10mo ago
only the ones that have a mapping as types, otherwise they are kind of in code, as in they are in the metadata file when developping locally dynamic enums are a tough one, it will only make sense within flows and apps and for flows it will only make sense for approval steps forms
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
rubenf
rubenf10mo ago
so that enum seems to be static and in windmill it would simply be with the new feature:
def main(
tenants: List[Literal["Tenant 1", "Tenant 2", "Tenant 3"]]
)
def main(
tenants: List[Literal["Tenant 1", "Tenant 2", "Tenant 3"]]
)
which is not only more elegant but also valid python code that will make your type inference more precise as for the description, that is something we can infer from python comments I don't think we do at the moment but it's easy enough to add
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
rubenf
rubenf10mo ago
If you wanted to have the enum be dynamic, you could do that as part of a workflow. Prompts and approval steps are not 1:1 but after OIDC this is pretty much our last item to reach feature parity approval steps assume that the executer of the workflow is not the one with ability to approve it, that's the only thing we have to adjust
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
rubenf
rubenf10mo ago
We have a public changelog and our roadmap is pretty much our github issues, but we usually adapt to our customer needs given all the "big items" are stable and won't need significant changes and the rest is on a by need basis. But OIDC, prompts, rust support are the biggest items at the moment and we should all achieve it in the next few weeks
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
rubenf
rubenf10mo ago
@Rory Logue it's now implemented in latest
rubenf
rubenf10mo ago
rubenf
rubenf10mo ago
We will have a satisfactory answer for prompts/dynamic enums this week or the next as well
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
rubenf
rubenf10mo ago
if you're into types, the fact it works well with the python type system make it a lot more powerful and allow other tools to review correctness