PrefectHQ / prefect

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

.serve() truncates a deployment name with two dots #13528

Open seanpwlms opened 4 months ago

seanpwlms commented 4 months ago

First check

Bug summary

.serve() with a name containing two dots will truncate the name. The cloud UI truncates it further. name = 'mre/mre_v0.1.2' will return:

To trigger a run for this flow, use the following command:

        $ prefect deployment run 'mre/mre_v0.1'

and the UI displays this:

image

This doesn't happen with a name such as: mre.serve(name='mre/mre_v0.1.2...').

Reproduction

@flow
def mre():
    pass

if __name__ == "__main__":
    mre.serve(name='mre/mre_v0.1.2')

Error

No response

Versions

Version:             2.19.0
API version:         0.8.4
Python version:      3.12.3
Git commit:          92a982fe
Built:               Mon, May 13, 2024 3:32 PM
OS/Arch:             darwin/arm64
Profile:             default
Server type:         cloud

Additional context

No response

serinamarie commented 4 months ago

Hi @seanpwlms, thanks we have added this to our backlog!

cicdw commented 4 weeks ago

This is happening here.

Will need to consider unifying name validation logic somewhere to avoid this better.