prefect icon indicating copy to clipboard operation
prefect copied to clipboard

Tags created by using "with tags" function should show in the Tags filter in Prefect UI

Open jfloodnet opened this issue 1 year ago • 1 comments

First check

  • [X] I added a descriptive title to this issue.
  • [X] I used the GitHub search to find a similar issue and didn't find it.
  • [X] I searched the Prefect documentation for this issue.
  • [X] I checked that this issue is related to Prefect and not one of its dependencies.

Bug summary

Using this code will add the tag to the task within:

async def monitor_page_flow(url: str):
    host = socket.gethostname()
    with tags(host):
        await monitor_page(url)

But It will not show in the filter input:

image

Reproduction

`async def monitor_page_flow(url: str):
    host = socket.gethostname()
    with tags(host):
        await monitor_page(url)`

Error

No response

Versions

2.x

Additional context

No response

jfloodnet avatar Jun 23 '24 08:06 jfloodnet

Thanks for the issue @jfloodnet - we don't (yet) have a way to retrieve task level tags for the filter dropdown however you should be able to enter them yourself into the filter.

I'm going to remove the bug label and add an enhancement one as this is currently working as designed but I can see the value of having task level tags for the dropdowns.

zhen0 avatar Jun 24 '24 16:06 zhen0