-
Notifications
You must be signed in to change notification settings - Fork 53
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
Sorting for "See more Recommended extensions" #7339
Comments
@devaneymoz this issue has been discussed in more detail in #1074 but we marked that as a wontfix. |
@devaneymoz You weighed in on #1074 yourself and agreed with wontfixing it. It seems that the question here is whether we should have a random sort or not. If we keep it random then this "problem" will remain, or we can change it to a different sort sequence. What do you see as a good way forward? |
True I agreed with "wontfix" in the prior discussion but after more usage with this behavior I've changed my mind. Over time I've fielded quite a few requests from folks asking where they can see the entire Recommended list, and when I point them here it's obviously not an ideal overview. |
@diox it looks like ES supports this case with seeding see elastic/elasticsearch#1170 - would be good to estimate what that would take to expose via the API. Thinking aloud (and assuming we add API support), from a UX perspective we can do something like this:
In practice this would mean you'd be able to navigate all random results, but when you return to page one a new random search is performed. It would also maintain a random result set based on starting from somewhere that isn't page one. A nit/issue would be that if you started from anywhere that wasn't page 1 based on the logic described above, you'd never see the correctly paginated page 1 if it pulls a new set of random data and ignores the seed provided. Another solution, which was mentioned here which is quite elegant and avoids all the client storage issues by regenerating a random seed on the server at an interval (all users would see the same "random" results in a given time-frame). This would make this change purely server-side. |
@muffinresearch It looks like you neglected to add the URL for the "other solution" mentioned above. |
Thanks @bobsilverberg that's fixed now. |
Thanks @muffinresearch. It sounds like there is a possibility of solving this on the server, or a combination of the client and server. @diox do you think we should transfer this back to addons-server, or create an additional issue for it there, or shall we just discuss the options here and then figure out where the issue should live once we have decided on a solution? |
I think providing a seed to the random query is definitely the best approach. We could do it purely on the server side without even needing a special field, just making the seed dependent on specific time periods. We would need to determine what's an acceptable period of time after which changing the seed. Only drawback of that approach is there would still be an edge case where a client sees the randomized list and then clicks on the link to see all the results (or go from one result page to another) exactly at a time that would coincide with a seed change: they would experience the same issue they are seeing currently. I think that is fine if it doesn't happen too often, so we should factor that in the decision regarding the period of time to use the same seed for. |
@devaneymoz mentioned on slack we could rotate every 24 hours. So we could force the seed on addons-server to be dependent on the date and we'd be okay without any other changes, it would be transparent to the frontend. |
Just wondering, are we going to implement this for any search with |
That's a @jvillalobos call. I was just focused on having a place we can direct people to see a comprehensive list of Recommended extensions. Should probably exist for Recommended themes as well. |
|
That's not currently the case. I can request search results using |
Can you file a new issue for this on |
Ah, you're right, my mistake. I tried changing the URL in addons-frontend, and forgot that we added code to make sure we do not send an API request like that to addons-server, so while I thought it was issuing the API request, it in fact was not, and was removing the |
@diox I checked on AMO dev the following:
I'm waiting the time to expire and will re-check once again. But so far this looks fixed to me on dev with FF73(Win10). |
Describe the problem and steps to reproduce it:
From the AMO homepage click "See more Recommended extensions" text link within its shelf.
What happened?
You're taken to a "search results" type page, with pagination that currently runs to four pages.
What did you expect to happen?
Since the Search results page tells me there are (currently) "97 extensions found" I expect the four pages to list them in some type of consistent order in case I want to peruse the entire list of Recommended extensions. However when you click from page to page you find an inconsistent ordering and often see extensions you already saw on previous pages. User is never certain if they've seen the entire list.
The text was updated successfully, but these errors were encountered: