Hey team.. so we have our custom UI that uses the ...
# ask-the-community
r
Hey team.. so we have our custom UI that uses the REST API to trigger workflows in the Flyte backend. Now every time we bump the version of the workflows, the REST APIs invoked by the UI need to change as well to use the latest version. Is there a "latest" tag or something like that that can be used to alleviate this problem?
Alternatively is there an API which has the same functionality as
flytectl get launchplan --project my_project --domain development <http://flyte.workflows.my|flyte.workflows.my>_wf --latest --execFile exec_spec.yaml
that can provide the latest version?
k
you can do latest
r
ExecutionCreateRequest with version set to "latest" ?
no it will be 2 calls
first call, get latest
and 2nd send an execution create request
but both are hidden in flyte remote
automatically
r
Is there an API call that can be made to get the latest version? This is being triggered from the UI
k
let me dm you
👍🏼 1
a
I'm currently doing
list workflows
to pick up the latest version (by created_at), and then
create execution
with that version. but I feel like there should be a way to pass a "magic" version tag in the spec to do this automatically on the backend :)
k
yes there should be magic tag i agree
but sadly we do not have one today
would love for one of you to file an issue
we have been thinking about that for a while
a
will do, do you have an url handy where I can do that?
k
are you using the javascript sdk?
or how are you communicating with the backend?
cc @Jason Porter / @Carina Ursu
a
REST API
old school 🙂
❤️ 1
k
nice
but there is a good client already available in flyteconsole
if you want (in typescript)
and cc @Matthew Griffin wrote a deno sdk
138 Views