Page MenuHomePhabricator

"No results matching the query" messaging feels uncertain
Open, Needs TriagePublic

Description

Background

As part of T382390, I'm working in adding a link from GUC to Special:GlobalContributions on Meta-Wiki.

When I'm logged in with my main account (meets critera and has consented):

Screenshot 2025-03-31 at 16.13.47.png (1×1 px, 268 KB)

Despite me (afaik) having the rights to see as much as this tool can show to anyone, the messaging still implies uncertainty. Maybe some results require additional rights, but the system can't or won't tell me. Is that true? Are there other tiers of access, and, it is policy not to expose the existence of these tiers to users?

When I'm logged-in with my sock account instead (not yet consented or doesn't meet criteria), the exact same message is shown.

Screenshot 2025-03-31 at 16.13.57.png (1×1 px, 270 KB)

I revoked the consent on my main account, and to my surprise it does actually show a different message there:

Screenshot 2025-03-31 at 16.19.47.png (501×1 px, 133 KB)

Finding

It is important to me that when people follow the link in GUC (being added in T382390), that people have a clear understanding of what they can and cannot do, and how to do it. It seems confusing for people to land on a page saying "No results matching the query" when in fact no query was even attempted.

Scenarios I tested:

  • If you're accidentally not logged-in Meta-Wiki, convey login requirement and/or redirect to login page. LGTM!
  • If you don't meet the requirements and aren't auto-enrolled, display a warning or error conveying as much, don't imply that a query was attempted and that some or all results were excluded.
  • If you do meet the requirements, aren't auto-enrolled, but haven't consented, display a notice indicating as much and linking to the preferences to do, and/or to a page explaining how to do so. This exists, but it also says "No results matching query" when no query was performed, and includes uncertain messages about "incomplete" results, which is confusing.

The subtitle says "Showing results […] for all wikis where you have the right to view contributions." which sounds like it might be able to show results from some wikis but not consider others. This sounds like it might be either a left-over from a previous iteration, or in prep for something in the future because Special:GlobalContributions always redirects to the version on Meta-Wiki, and while Special:Preferences on local wikis (e.g. Commons) does show me the checkbox locally, from what I can tell the extension code for GlobalContributions only checks it locally on Meta-Wiki. And indeed with consent given on Commons, but not Meta-Wiki and not in global prefs, I get the same "you need to accept the agreement in your global preferences." notice, which suggests that this partial results is not actually a thing that exists currently.

  • If you meet the requirements and have consented locally on another wiki (e.g. Commons and testwiki), but not in in global prefs and not on Meta-Wiki, then no query is attempted and a notice is shown that you need to consent via global prefs. LGTM!

The fact that, when looking up an IP that has recent temp-account edits on testwiki, when consent is given on testwiki and Commons, but not Meta-Wiki or global prefs, confirms that there is not actual uncertainty. But that does suggest the subtitle text and "No results matching the query" messaging is misleading relative to how the system works today.

Suggestion

In all likelihood, given the complexity of the system, and generally that the above is unlikely to all be unintended left-overs, I am missing some information about how it is meant to work and probably the problem isn't that these should be removed but rather that the meaning is inconsistent or insufficiently explained.

However, from the POV of someone who understands the above, the following appears to make sense:

  • Remove "No results matching the query" and "may not" uncertainty from the checkuser-global-contributions-no-results-no-permissions message. Instead phrase it as a simple permission denied error, with the appropriate red error message box styling.
  • Remove "No results matching the query." and "may be incomplete" uncertainty from the checkuser-global-contributions-no-results-no-global-preference message. Perhaps emphasize "need to sign the agreement" instead, and promote to warning message box styling.
  • Remove "where you have the right to view contributions" from the subtitle.

Mockups:

Screenshot 2025-03-31 at 16.50.44.png (488×1 px, 111 KB)

Screenshot 2025-03-31 at 17.01.20.png (288×1 px, 61 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Krinkle renamed this task from "No results matching the query" is vague about cause to "No results matching the query" messaging feels uncertain.Apr 1 2025, 12:03 AM

I revoked the consent on my main account, and […]:

Screenshot 2025-03-31 at 16.19.47.png (501×1 px, 133 KB)

I was also surprised to see this "your global preferences" link to test.wikipedia.org rather than remain on Meta-Wiki. Looking at the code, this appears to be due to it peeking at results and linking to one of the wikis from which it withheld results.

It is unclear how this helps the user since global preferences are a centrally stored thing. Why navigate the user to a remote wiki, with potentially different language/skin settings (i.e. not their home wiki likely), different site logo branding; rather than remain in context on Meta-Wiki. It could also be considered a minor information leak since even though they meet the criteria, they technically haven't consented yet but this already shares that there are non-zero results and at least one wiki that is among the results.