fix(flytectl): Update FetchWorkflowLatestVersion to fetch the latest version of a workflow#418
fix(flytectl): Update FetchWorkflowLatestVersion to fetch the latest version of a workflow#418LeHyperion wants to merge 1 commit intoflyteorg:masterfrom
Conversation
…version of a workflow The FetchWorkflowLatestVersion function in workflow_fetcher.go has been updated to retrieve the latest version of a workflow by using the last element in the wVersions slice. This change ensures that the most recent version is fetched when calling this function.
|
would you be willing to make a few more changes? I think this function is wrong, or the name is wrong. we should loop through the filters, and if there isn't a limit filter we should add a limit of 1 to the existing list of filters, and then we should sort https://docs.flyte.org/en/latest/concepts/admin.html#sorting-syntax. Is this something you could add please? |
I'm new to contributing, so I appreciate your patience with my inquiries.
|
|
Oh no worries, thank you very much @LeHyperion!
Looking at this more, I think what's happening is that this filter object is not correct. If we just change it, it should work.
Thanks again. |
|
@LeHyperion just checking in to see if you need any help with this? |
TL;DR
Fix the
FetchWorkflowLatestVersionfunction in flytectl to return the latest workflow version.Type
Are all requirements met?
Complete description
The
FetchWorkflowLatestVersionfunction inworkflow_fetcher.gohas been updated to retrieve the latest workflow version by using the last element in thewVersionsslice. This change ensures that the most recent version is fetched when calling this function.Tracking Issue
fixes 3972