Page MenuHomePhabricator

Article Feedback Page - Filter and Sort URL parameters
Closed, ResolvedPublic

Description

It would be very useful if we could enable users to add URL parameters after a link to the feedback page, in order to insure that the page is filtered and sorted the same way for all users who click on that link.

Here is an example of what such a link might look like:

http://prototype.wikimedia.org/release-en/Special:ArticleFeedbackv5/Golden-crowned_Sparrow?filter=relevant&sort=date&sort-order=newest

Clicking on such a link would cause the page to be filtered by relevance, and sorted by date, with the newest post listed first.

We may even want to have these parameters appear in the address bar after a user clicks on a filter or sort link, essentially refreshing the page to include the full URL, so that it can be easily shared.

Here are some examples of wording we might use for the filter and sort URLs:

Filters:
relevant
comments
helpful
featured
all-visible

Sort:
relevance
date
helpfulness
rating

Sort order:
most-relevant
least-relevant
newest
oldest

Similarly, we could use a URL parameter to cause the feedback page to display the latest post from a user, perhaps by adding a '&latest-post=<postID>' at the end of the URL.

With that in mind, other parameter labels not specified here would generally match the wording used in our feature requirements page, under the filter and sort sections:
http://www.mediawiki.org/wiki/Article_feedback/Version_5/Feature_Requirements#Feedback_Page_for_Readers


Version: unspecified
Severity: normal

Details

Reference
bz36919

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:29 AM
bzimport set Reference to bz36919.
bzimport added a subscriber: Unknown Object (MLST).

Filters in url: add GET-parameter 'filter', e.g. ?filter=featured
List of filters: featured, unreviewed, helpful, unhelpful, flagged, useful, resolved, noaction, inappropriate, archived, allcomment, hidden, requested, declined, oversighted, all
If a filter is outside of a user's permissions, it will fallback to the default filter.

Sort in url: add GET-parameter 'sort', e.g. ?sort=age-DESC
List of sorts: relevance-DESC, relevance-ASC, age-DESC, age-ASC, helpful-DESC, helpful-ASC

Feedback id in url: add hash <id> on article feedback page, e.g. #04f96b0b20b0f1dc09e4842b2b77e6f9

Thanks for doing this, Matthias, this is great!