Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ez][HUD] Main page permalink to use sha from page one #5395

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

clee2000
Copy link
Contributor

@clee2000 clee2000 commented Jul 3, 2024

Currently, if you click the permalink button on the second page of HUD https://hud.pytorch.org/hud/pytorch/pytorch/main/2?per_page=100
image

Then the result is https://hud.pytorch.org/hud/pytorch/pytorch/c9dc9887db0deff3ccbebf9b59dcbe79c3bd8a4f/2?per_page=100

image

Note the difference in the images. This is because the permalink uses the latest commit sha present on the page (c9dc988), but uses the page param (2 in this example).

This PR changes it to use the latest commit sha of the branch on page one, so the new permalink is https://torchci-git-csl-permalinkpage1-fbopensource.vercel.app/hud/pytorch/pytorch/29c68df600e6cb8eb61ccfea57d6aa3685b0a30f/2?per_page=100.

Note that the sha is different and doesn't show up on the original page that we clicked the permalink button on, it's the sha on page 1. The page param is still 2, allowing us to use the prev button.

An alternate solution would to keep the sha the same (the sha on page 2) but change the page param to be 1, but then you would lose use of the prev button

image

Copy link

vercel bot commented Jul 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
torchci ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2024 4:47pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 3, 2024
@clee2000 clee2000 marked this pull request as ready for review July 3, 2024 16:53
@clee2000 clee2000 changed the title [HUD] Main HUD page permalink to use latest sha and page params [ez][HUD] Main HUD page permalink to use latest sha and page params Jul 3, 2024
@clee2000 clee2000 requested review from ZainRizvi and a team July 3, 2024 16:53
@clee2000 clee2000 changed the title [ez][HUD] Main HUD page permalink to use latest sha and page params [ez][HUD] Main HUD page permalink to use latest sha from page one Jul 3, 2024
@clee2000 clee2000 changed the title [ez][HUD] Main HUD page permalink to use latest sha from page one [ez][HUD] Main HUD page permalink to use sha from page one Jul 3, 2024
@clee2000 clee2000 changed the title [ez][HUD] Main HUD page permalink to use sha from page one [ez][HUD] Main page permalink to use sha from page one Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants