Skip to content

[BUG] Flytectl returns the oldest workflow version when using --latest flag #3972

Description

@LeHyperion

Describe the bug

Description:
When attempting to retrieve the latest version of a workflow using the --latest flag with flytectl get workflow, I am presented with the oldest version instead of the expected latest version.

Expected behavior

Expected Result:
The latest version of the specified workflow should be returned.

Actual Result:
The oldest version of the workflow is returned.

Additional context to reproduce

Steps to Reproduce:

  1. Run the following command:
flytectl get workflow -p MY_PROJECT -d DEV WORKFLOW_NAME --latest
  1. Observe the returned workflow version.

Environment/Configuration:

  • Flytectl version: 0.6.45

Additional Notes:
This issue could potentially impact users who rely on fetching the latest version for their operational needs.

Screenshots

No response

Are you sure this issue hasn't been raised already?

  • Yes

Have you read the Code of Conduct?

  • Yes

Metadata

Metadata

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions