cuddly-jelly-27016
05/15/2025, 12:12 AMversion when invoking Flyte APIs that take in an Identifier. This requires making two calls - one is two list all versions to find out the latest, and then another call to make an actual request.
Example:
• Get http://flyte/api/v1/workflows/my_project/development?limit=1&sort_by.key=created_at&id.name=flyte.workflows.my_work_flow first to get the latest version
• Post http://flyte/api/v1/executions with the spec:
'project': 'my_project',
'domain': 'development',
'spec': {
'launch_plan': {
'resource_type': 'LAUNCH_PLAN',
'project': 'my_project',
'domain': 'development',
'name': 'my_work_flow',
'version': version
}
},
### Goal: What should the final outcome look like, ideally?
I should be able to specify "magic" value as a version tag to indicate that latest version of the resource should be used
### Describe alternatives you've considered
Making two API calls
### Propose: Link/Inline OR Additional context
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flytecuddly-jelly-27016
05/15/2025, 12:12 AM