google / gitiles

A simple browser for Git repositories.
https://gerrit.googlesource.com/gitiles/
Other
582 stars 174 forks source link

Gitiles log next/previous links don't work as expected #128

Closed aarongable closed 6 years ago

aarongable commented 6 years ago

What steps will reproduce the problem?

What is the expected output?

What do you see instead?

What steps will reproduce the problem?

What is the expected result?

What do you see instead?

dborowitz commented 6 years ago
  • I get taken to a view of the most recent ~hundred commits

IMHO, a link that says "Next" should not take you to a page that repeats the contents of the page you're currently looking at, and I am a little surprised that you expect it to. But that's just a reflection of the link text; I think it's actually fine behavior for the link from the repo index page to take you to a log starting from the tip. So I would be ok with your suggestion if we also change the text to say "More" or something.

aarongable commented 6 years ago

Absolutely agreed; I think the best fix for the first half of this bug is for the front page to have something like a "More" or "Log" link, rather than having the same "Next>>" link that full log pages have.

dborowitz commented 6 years ago

https://gerrit-review.googlesource.com/c/gitiles/+/158830

aarongable commented 6 years ago

I just noticed another issue with the next/previous links:

  1. Go to any raw +log url, like https://chromium.googlesource.com/chromium/src/+log/
  2. Click "Next >>"

Expected result: the next page of results Actual result: a 404, because the url populates "null" instead of "HEAD"

dborowitz commented 6 years ago

Jeez, who knows how long that's been broken: https://gerrit-review.googlesource.com/#/c/gitiles/+/158831

On Fri, Feb 9, 2018 at 3:27 PM Aaron Gable notifications@github.com wrote:

I just noticed another issue with the next/previous links:

  1. Go to any raw +log url, like https://chromium.googlesource.com/chromium/src/+log/
  2. Click "Next >>"

Expected result: the next page of results Actual result: a 404, because the url populates "null" instead of "HEAD"

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/google/gitiles/issues/128#issuecomment-364555730, or mute the thread https://github.com/notifications/unsubscribe-auth/AAL5b58z2OoTw-kKrhYIow17tk1u6V3Vks5tTKpMgaJpZM4R9kGy .

aarongable commented 6 years ago

Dang that was fast, you beat me to it. And your solution is better anyway. Thanks for finding those fixes so fast!

jrn commented 6 years ago

Fixed by https://gerrit.googlesource.com/gitiles/+/571b7a06e3e6b6bf0d11d6ee9e07050f762e7fbb and https://gerrit.googlesource.com/gitiles/+/fa80a6a768b509e10df00ee96f01573097250e20.