<#3223 [UI Feature] "Create new task execution" in...
# flyte-github
c
#3223 [UI Feature] "Create new task execution" inputs should show function defaults instead of type defaults Issue created by fg91 ### Motivation: Why do you think this is important? When debugging large workflows it is helpful to be able to start individual tasks. However, when starting an individual task from the flyte console, the inputs section does not show the defaults set in the task function but the type defaults. This is in contrast to starting a workflow execution where this is handled the opposite way. Let uns consider this minimal working example: from flytekit import task, workflow from dataclasses import dataclass from dataclasses_json import dataclass_json @dataclass_json @dataclass class Config: foo: str = "default" @task def test_task(config: Config = Config(foo="task-default")) -> None: print(config) @workflow def test_workflow(config: Config = Config(foo="workflow-default")) -> None: test_task(config=config) When creating an execution of the workflow, the value
foo="workflow-default"
is used:

[Screenshot 2023-01-10 at 16 57 11](https://user-images.githubusercontent.com/36511035/211603256-965f57f9-bdf9-4f4a-b3ce-c3108761a47e.png)▾

Accordingly, I would have expected that
foo="task-default"
is shown when creating an execution for a task. Instead, the type default is shown:

[Screenshot 2023-01-10 at 16 57 34](https://user-images.githubusercontent.com/36511035/211603534-50852ff5-6337-4c39-ae10-383c313bdf63.png)▾

### Goal: What should the final outcome look like, ideally? This makes the feature of launching individual tasks from the UI for debugging less useful than it could be for the following reason: We often use a
Hyperparameters
dataclass that contains
lr
,
batch_size
, ... without setting defaults as it is reused in many different experiments. In the individual task function we would be able to set sane defaults. However, in the flyte console these are not shown and, thus, have to be entered manually every time. When dataclasses are nested, this becomes tedious. I propose that when creating a task execution, the defaults defined in the task function are shown in the UI instead of the type defaults. ### Propose: Link/Inline OR Additional context No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte