PrefectHQ / prefect

Prefect is a workflow orchestration framework for building resilient data pipelines in Python.
https://prefect.io
Apache License 2.0
15.77k stars 1.54k forks source link

Can not clear field in ECS Task screen #9378

Open yaronlevi opened 1 year ago

yaronlevi commented 1 year ago

First check

Bug summary

In the ECS Task edit screen when you clear a field and press "save", instead of None you get an empty string.

CleanShot 2023-04-29 at 01 00 01@2x

Press save and then:

CleanShot 2023-04-29 at 01 01 12@2x

Reproduction

In order to get to that buggy state, you first need to add some JSON to the field and press save. Then try to clear it back to None and see that it's not possible.

Error

No response

Versions

prefect cloud

Additional context

No response

zhen0 commented 1 year ago

Note that for where we are using the json input for object types, entering null will clear the field. For the ECS-Task block that includes environment-variables and labels.

https://www.loom.com/share/ae9ea63bf49241248df5575d8b5ed851

Where we are using the json input for array types, entering null will set the input to null. (i.e. null is still shown in the UI instead of the original "None" placeholder.) For the ECS-Task block that includes command.

https://www.loom.com/share/ebde3956495540e69d137ccacd2534b9