<#2609 Fix source code link> Pull request opened b...
# flyte-github
c
#2609 Fix source code link Pull request opened by pingsutw ## Tracking issue NA ## Why are the changes needed? We only show the repo link in the UI, which is not helpful. It would be great if we could display the link to the file. ## What changes were proposed in this pull request? • Updated the source link (
<github_repo_link>
=>
<github_repo_link>/blob/<git_sha>/<file_path>
) • Only show the link if the file has been pushed ## How was this patch tested?
Copy code
pyflyte run ...
from datetime import datetime from flytekit import task, workflow @task(cache=True, cache_version="1.0") def t1(x: int) -> datetime: print(x) return datetime.now() @workflow def wf(): """ Dummy workflow for functional test. """ t1(x=10) ### Setup process ### Screenshots [Screenshot 2024-08-30 at 12 24 15 PM](https://private-user-images.githubusercontent.com/37936015/363307052-e6129701-36d8-4fde-a8c0-b97eb13974a7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDEyOTE3MjQsIm5iZiI6MTc0MTI5MTQyNCwicGF0aCI6Ii8zNzkzNjAxNS8zNjMzMDcwNTItZTYxMjk3MDEtMzZkOC00ZmRlLWE4YzAtYjk3ZWIxMzk3NGE3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAzMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMzA2VDIwMDM0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg1NWNjYTI1NjZkNDA2ZTdhYjM4ZjE1YTg1ZDc2ZWQwODAyYzM4ZTdkZDBlZDNhOWUyNzk1YTBkNGNmZGI2ZmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.VFn2ULiFtn0tRKBYQEroDCt6siJMKDFxkSXJJGnZKmw) ## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. ## Related PRs NA ## Docs link NA flyteorg/flytekit