<#4185 Update tag to ExecutionModel> Pull request ...
# flyte-github
a
#4185 Update tag to ExecutionModel Pull request opened by ericwudayi Describe your changes Enable users to add tags to their existing execution. It can perform the execution update operation directly through an HTTP PUT request. The detailed example are shown in screenshot using postman. 1. Add add_tag in ExecutionUpdateRequest (flyteidl/protos/admin/execution.proto). 2. Implement add tag details in flyteadmin. 3. Adding test for UpdateExecutionModel and UpdateExecutionModelAddTag
Copy code
pyflyte run --tag abc --tag tags1 --remote example.py training_workflow --hyperparameters '{"C": 0.1}'
//Go to http://localhost:30080/console/projects/flytesnacks/domains/development/executions/f5300f7f411674b89998 to see execution in the console.

## Put request, adding tags2 into the workflow
curl -X PUT -H "Content-Type: application/json" -d '{"add_tags": ["tags2"]}' http://localhost:30080/api/v1/executions/flytesnacks/development/f5300f7f411674b89998
Check all the applicable boxes ☐ I updated the documentation accordingly. ☑︎ All new and existing tests passed. ☑︎ All commits are signed-off. Screenshots Initialization:

Screenshot 2023-10-15 at 9 31 27 AM▾

After PUT Request: (curl -X PUT -H "Content-Type: application/json" -d '{"add_tags": ["tags2"]}' ...)

Screenshot 2023-10-15 at 9 36 49 AM▾

##ScreentShot in Database Create the corresponding identity in admin tag DB table

Screenshot 2023-10-15 at 9 38 43 AM▾

The corresponding execution admin tags DB table

Screenshot 2023-10-15 at 9 41 30 AM▾

##Tracking PR #4142 flyteorg/flyte ✅ All checks have passed 2/2 successful checks