https://prefect.io logo
m

Mitch

08/30/2023, 7:44 PM
Hey team - in the prefect UI, is there an easy way to see which branch a deployment is using? I'm deploying using a prefect.yaml and dictating the github branch to use using the pull step
prefect.deployments.steps.git_clone
? In prefect 1 using code commit it showed in the UI the branch the current deployment was running from which was very useful
n

Nate

08/30/2023, 9:02 PM
hi @Mitch - are you setting the branch in your step like this?
m

Mitch

08/30/2023, 9:10 PM
Yep exactly, but I don't see anything on the UI to reflect that. At times, I would like to deploy something from a non standard branch for one of many deployements in a prefect.yaml. Viewing in the UI to confirm would be nice
n

Nate

08/30/2023, 9:14 PM
i see - how about if I opened a PR to change this to this
Copy code
<http://deployment_logger.info|deployment_logger.info>(f"Cloned the {branch or 'main'!r} branch of repository {repository!r} into {directory!r}")
hmm well there's slight annoyance around
main
/
master
there, so maybe
Copy code
<http://deployment_logger.info|deployment_logger.info>(f"Cloned the {branch or 'default'!r} branch of repository {repository!r} into {directory!r}")
m

Mitch

08/30/2023, 9:17 PM
Could it be added as a tag maybe
n

Nate

08/30/2023, 9:18 PM
as a tag on the flow run? i don't think we'd want to add a tag for all users in a case like this - many people do a lot of logic on their tags that we wouldnt want to pollute however that should be possible for you individually if you wanted to
m

Mitch

08/30/2023, 9:21 PM
Is there a reason the flows deployed with a github pull step in the prefect.yaml don't reference it within the Infrastructure Document ID or Storage Document ID?
n

Nate

08/30/2023, 9:22 PM
yeah - infra/storage document IDs refer to the storage / infra blocks used to do block-based deployments (pre
prefect deploy
+
prefect.yaml
)
there is no storage and infra block block involved in deployments via
prefect deploy
j

Jenny

09/01/2023, 12:09 PM
We have plans to add the
pull_steps
of a deployment to the UI which I think should help here https://github.com/PrefectHQ/prefect/issues/10467
🙌 1
m

Mitch

09/15/2023, 7:16 PM
Hey @Jenny Is there any update on this? This would be very very helpful for us.
j

Jenny

09/15/2023, 7:21 PM
Thanks for checking in. I believe this is being worked on but let me check with the team and make sure it gets a bit of attention next week.
1
m

Mitch

09/25/2023, 3:04 PM
Great, thanks!