aws / aws/aws-step-functions-data-science-sdk-python

Workflow Tags are not updated

オープン
#190 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Python
スター
299
フォーク
84
PR マージ指標
30日以内にマージされた PR はありません

説明

I have created two workflows with the SDK.
Later I wanted to update the workflows using the SDK and adding tags.
I provided a list of tags in the constructor, but when viewing the workflow in the AWS UI I do not see any tags on my workflows.

### Reproduction Steps

```python
import stepfunctions
from stepfunctions.workflow import Workflow
from stepfunctions.steps import *

workflow_execution_role = ""
hello_workflow_name='hello_workflow'
hello_step = Pass(state_id="HelloWorld")

# creating a demo workflow
hello_workflow = Workflow(
name=hello_workflow_name,
definition=hello_step,
role=workflow_execution_role
)
hello_workflow_arn = hello_workflow.create()

# now trying to update the existing workflow with tags
hello_workflow_update = Workflow(
name=hello_workflow_name,
definition=hello_step,
role=workflow_execution_role,
state_machine_arn = hello_workflow_arn,
tags=[
{"key": "Environment", "value": 'example'},
{"key": "Owner", "value": 'Lasdem'},
]
)
hello_workflow_update.update(hello_step)
```

### What did you expect to happen?

I tried to add tags to an existing workflow

### What actually happened?

No Tags appeared after the update of the workflow.

### Environment

- **AWS Step Functions Data Science Python SDK version :** 2.3.0
- **Python Version:** Python 3.8.13

### Other

---

This is :bug: Bug Report

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

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

調査の方向性

Python SDK の Workflow コンストラクターと update() パスから始め、提供された再現手順を使って create() と既存のステートマシンの更新を比較します。更新時に tags リストがどのように処理されるかを追跡し、AWS UI でワークフローに 2 つのタグが表示されることを確認して完了を検証します。

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

評価

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

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

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