conductor-oss / conductor-oss/javascript-sdk

Cannot update workflow without accessing deprecated methods

Open
#95 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
58
Forks
20
Avg merge
1d 13h
Merged PRs (30d)
7

Description

When trying to update a workflow using `MetadataClient.registerWorkflowDef(workflow, true)` with the latest build of conductor-oss, the request fails. It looks as though the [Orkes implementation](https://developer.orkescloud.com/swagger-ui/index.html?configUrl=/api-docs/swagger-config#/metadata-resource/create) of `POST /api/metadata/workflow` supports an `overwrite` query param, but the Conductor OSS build doesn't.

The current way around this is to call `client.metadataResource.update` directly, but this results in a deprecation warning. While this is currently functional, it'd be great if there was a way to update directly using `MetadataClient` OR I suppose adding `overwrite` support to the Conductor OSS build would also do the trick.

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.