<#3370 [BUG] FE: Graph not rendering nodes correct...
# flyte-github
a
#3370 [BUG] FE: Graph not rendering nodes correctly. Issue created by jsonporter Describe the bug Users reported that node names displayed in the graph are not correct. Here are some details from the OSS channel: workflow:
Copy code
from flytekit import dynamic, task, workflow


@task()
def model_training(name: str) -> str:
    print(f"Hello {name}")
    return name


@task()
def hello_person(name: str) -> str:
    print(f"Hello {name}")
    return name


@dynamic
def people(names: List[str]) -> List[str]:
    ack = []
    for name in names:
        ack.append(model_training(name=name))
    return ack


@workflow()
def hello_people(names: List[str]) -> List[str]:
    ack = people(names=names)
    other_names = ["bob", "sue"]
    for other_name in other_names:
        hello_person(name=other_name).with_overrides(node_name=f"hello_{other_name}")
    print(ack)
    return ack


if __name__ == "__main__":
    output = hello_people(names=["bob", "sue"])
    type(output)
Expected behavior The expected behavior is that the node names displayed in the graph match the node names displayed on the node list. Additional context to reproduce No response Screenshots

image (3)

image (2)

Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte