prefect icon indicating copy to clipboard operation
prefect copied to clipboard

Prefect Deployment Apply output displays wrong URL

Open prefectcboyd opened this issue 2 years 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

When running prefect deployment apply the displayed deployment URL is incorrect.

Notably, the parent page is /deployments/ with a specific deployment falling to /deployments/deployment/<id>

The current behavior displays a url of the form: /deployment/<id> which returns a 404.

prefect deployment apply healthcheck-deployment.yaml
Successfully loaded 'local_run'
Deployment 'healthcheck/local_run' successfully created with id '36a6d1b6-d4ce-4464-8302-8e103d0b6dca'.
View Deployment in UI:
https://app.prefect.cloud/account/e16f474c-4714-40ae-89c9-ba3cbdd3bf13/workspace/e7c934ce-f75b-4d2f-a166-e25d40e647d7/deployment/36a6d1b6-d4ce-4464-8302-8e103d0b6dca

To execute flow runs from this deployment, start an agent that pulls work from the 'default' work queue:
$ prefect agent start -q 'default'

image

Reproduction

Apply a deployment, and attempt to navigate to the URL.

Error

No response

Versions

prefect version
Version:             2.6.1
API version:         0.8.2
Python version:      3.9.12
Git commit:          d9dd4443
Built:               Fri, Oct 14, 2022 2:01 PM
OS/Arch:             darwin/x86_64
Profile:             internal_kube
Server type:         cloud


### Additional context

_No response_

prefectcboyd avatar Oct 17 '22 18:10 prefectcboyd

It turns out that {ui}/deployment/{deployment_id} is a valid URL on Prefect Orion but not a valid URL on Prefect Cloud. The valid URL to the deployment in Prefect Cloud is {ui}/deployments/deployment/{deployment_id} instead. I’m not sure what causes the difference

khuyentran1401 avatar Oct 19 '22 21:10 khuyentran1401