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

Clicking "Show more" at end of a result set does not jump you back to the top of the page #7024

Closed
slimsag opened this issue Dec 4, 2019 · 9 comments
Assignees
Labels
bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. e2e-tests Everything related to our E2E test suite planned/3.15 Issues that were planned for the given milestone. Used by cmd/tracking-issue. webapp

Comments

@slimsag
Copy link
Member

slimsag commented Dec 4, 2019

A user at https://app.hubspot.com/contacts/2762526/company/407948923 reported this, and I agree the current behavior is surprising.

When you click "Show more" it doesn't jump you back to the top of the page, and instead lets you "continue" by leaving you at the bottom of the page.

Given that we do not have stable result ordering (outside of the experimental paginated search API), it is surprising that we do this because really we don't know which results the user has seen when the count: increases.

@slimsag slimsag added bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. search labels Dec 4, 2019
@tsenart tsenart added the customer Important issues reported or desired by a customer. label Dec 17, 2019
@tsenart
Copy link
Contributor

tsenart commented Dec 17, 2019

@slimsag: Is there anything Core Services could do here or is this a purely a Web thing?

@Akarshit
Copy link
Contributor

I tried to reproduce this one, but couldn't. Here is the query I tried. Clicking on "Show More" does a "refresh" on the search results and takes me to the top.
Did I miss anything?

@slimsag
Copy link
Member Author

slimsag commented Jan 27, 2020

@sourcegraph/web Is there an e2e test which guarantees this behavior? I am worried there may be a bug in some edge case here or that we may have regressed and then fixed this without knowing.

@slimsag slimsag added webapp e2e-tests Everything related to our E2E test suite and removed team/core-services customer Important issues reported or desired by a customer. labels Jan 27, 2020
@felixfbecker
Copy link
Contributor

I don't know, all e2e tests are in this file: https://sourcegraph.com/github.com/sourcegraph/sourcegraph/-/blob/web/src/e2e/e2e.test.ts

@slimsag
Copy link
Member Author

slimsag commented Feb 4, 2020

See also https://github.com/sourcegraph/sourcegraph/issues/5120

Can someone on @sourcegraph/web own defining this behavior and adding an e2e test?

@lguychard
Copy link
Contributor

we do not have stable result ordering

Given this, the behaviour should be to scroll back to the top.

Looking at relevant code, I don't see anything that would leave you at the bottom of the page (eg. adding a hash fragment with the position, as mentioned in #5120).

I can own adding an e2e test for this.

@lguychard lguychard self-assigned this Feb 4, 2020
@lguychard lguychard added this to the 3.14 milestone Feb 4, 2020
@lguychard lguychard mentioned this issue Feb 24, 2020
29 tasks
@uwedeportivo
Copy link
Contributor

Dear all,

This is your release captain speaking. 🚂🚂🚂

Branch cut for the 3.14 release is scheduled for tomorrow.

Is this issue / PR going to make it in time? Please change the milestone accordingly.
When in doubt, reach out!

Thank you

@lguychard lguychard modified the milestones: 3.14, 3.15 Mar 19, 2020
@lguychard lguychard mentioned this issue Mar 19, 2020
63 tasks
@uwedeportivo
Copy link
Contributor

Dear all,

This is your release captain speaking. 🚂🚂🚂

Branch cut for the 3.15 release is scheduled for tomorrow.

Is this issue / PR going to make it in time? Please change the milestone accordingly.
When in doubt, reach out!

Thank you

@lguychard lguychard added the planned/3.15 Issues that were planned for the given milestone. Used by cmd/tracking-issue. label Apr 16, 2020
@lguychard lguychard removed this from the 3.15 milestone Apr 16, 2020
@slimsag
Copy link
Member Author

slimsag commented Oct 7, 2020

This has been fixed.

@slimsag slimsag closed this as completed Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. e2e-tests Everything related to our E2E test suite planned/3.15 Issues that were planned for the given milestone. Used by cmd/tracking-issue. webapp
Projects
None yet
Development

No branches or pull requests

6 participants