flyte icon indicating copy to clipboard operation
flyte copied to clipboard

Workflow input ordering and description

Open ajsalow opened this issue 4 years ago • 8 comments

Motivation: Why do you think this is important? The current UI for workflow input would be more user friendly if workflow inputs had additional descriptions other than their name. Additionally, inputs are sorted alphabetically but user might want arrange inputs in a specific order.

Goal: What should the final outcome look like, ideally? Don't sort inputs, keep in order that user defines in workflow. Parse doc string of workflow for input description and include in UI if found. Screen Shot 2021-04-26 at 4 38 11 PM

Describe alternatives you've considered

[Optional] Propose: Link/Inline OR Additional context If you have ideas about the implementation please propose the change. If inline keep it short, if larger then you link to an external document.

ajsalow avatar Apr 26 '21 21:04 ajsalow

@ajsalow Absolutely agree with the docs. We had the functionality of showing the description in the legacy API of flytekit. But we will work on this soon. We have an entire story about documentation. Would you be open to contributing?

@wild-endeavor we discussed this -

kumare3 avatar Apr 26 '21 23:04 kumare3

From Gleb: https://developers.google.com/protocol-buffers/docs/proto3#backwards_compatibility

It's possible that we can convert a map to a list in protobuf and keep the wire-format the same

EngHabu avatar Jun 02 '21 16:06 EngHabu

We should get the description part done in v0.15.0

kumare3 avatar Jun 07 '21 18:06 kumare3

@katrogan, @wild-endeavor is this going to happen as part of Code Doc revamp work? is there a quicker win here for descriptions?

EngHabu avatar Jul 07 '21 15:07 EngHabu

This will happen as part of the code documentation project yeah, but this part is relatively easy and we should add it and release it as soon as possible. I don't think it'll happen by the 0.15.0 release though since that's eod or eot.

wild-endeavor avatar Jul 07 '21 17:07 wild-endeavor

Reopen it. we've reverted the PR. Instead of changing the map to list, we can add an index field here to keep original order.

pingsutw avatar Mar 20 '23 22:03 pingsutw

Hello 👋, this issue has been inactive for over 9 months. To help maintain a clean and focused backlog, we'll be marking this issue as stale and will engage on it to decide if it is still applicable. Thank you for your contribution and understanding! 🙏

github-actions[bot] avatar Dec 16 '23 00:12 github-actions[bot]

Bumping this issue because it's gone stale. It's very confusing UX that the workflow inputs in the flyte web UI aren't sorted in the same order that they're declared in the python @workflow function. Alphabetical ordering is surprising to the user because it destroys the conceptual order the encoded in their function definition, and below is an example where it's even a bit error prone because it swaps train/test to test/train:

@workflow
def wf(
    train_window: str,
    test_window: str,
):
    ...

Launch Workflow: image

jdanbrown avatar Jun 23 '24 04:06 jdanbrown

Hello 👋, this issue has been inactive for over 9 months. To help maintain a clean and focused backlog, we'll be marking this issue as stale and will engage on it to decide if it is still applicable. Thank you for your contribution and understanding! 🙏

github-actions[bot] avatar Mar 21 '25 00:03 github-actions[bot]

👋 Commenting to un-stale, this is still relevant.

dwo avatar Apr 09 '25 09:04 dwo