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

Workflow Tags are not updated

Aperta
#190 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
299
Fork
84
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con il costruttore di Workflow dell’Python SDK e il percorso update(), usando la riproduzione fornita per confrontare create() con l’aggiornamento di una macchina a stati esistente. Traccia come viene gestito l’elenco di tags durante l’aggiornamento, quindi verifica il completamento nell’AWS UI confermando che i due tags compaiano nel workflow.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws, python
Ambito
cloud
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
28/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.