conductor-oss / conductor-oss/javascript-sdk

Cannot update workflow without accessing deprecated methods

オープン
#95 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
58
フォーク
20
平均マージ
1日 13時間
マージ済み PR(30日)
7

説明

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!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start with MetadataClient.registerWorkflowDef(workflow, true) and compare its behavior with the direct client.metadataResource.update workaround. Check the POST /api/metadata/workflow request and determine whether MetadataClient can update without the deprecated method or whether overwrite support is needed; done means workflow updates succeed without a deprecation warning.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
api
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。