Page MenuHomePhabricator

Display some errors returned from Similarusers on Special:SimilarEditors
Closed, ResolvedPublic3 Estimated Story Points

Description

This task is spun out from T308649#8010691

Sometimes the service returns the following errors:

  • "User <username> does not appear to have an account in English Wikipedia."
  • "User <username> is a bot and therefore out of scope."
  • "User <username> does not appear to have an account (or edits in scope) in English Wikipedia."

When this happens, display the message to the user.

Mockup (don't use the text from the mockup):

Screen Shot 2022-06-03 at 10.36.54 AM.png (850×1 px, 67 KB)

Event Timeline

Tchanders set the point value for this task to 3.Jul 18 2022, 5:20 PM

Change 819651 had a related patch set uploaded (by Tchanders; author: Tchanders):

[mediawiki/services/similar-users@main] Return error types for errors encountered by check_user_text

https://gerrit.wikimedia.org/r/819651

Change 819652 had a related patch set uploaded (by Tchanders; author: Tchanders):

[mediawiki/extensions/SimilarEditors@master] Display error messages when a bad target user is entered

https://gerrit.wikimedia.org/r/819652

Change 819651 merged by jenkins-bot:

[mediawiki/services/similar-users@main] Return error types for errors encountered by check_user_text

https://gerrit.wikimedia.org/r/819651

Change 819652 merged by jenkins-bot:

[mediawiki/extensions/SimilarEditors@master] Display error messages when a bad target user is entered

https://gerrit.wikimedia.org/r/819652

dom_walden subscribed.

I used mitmproxy (and setting $wgHTTPProxy in LocalSettings.php) to simulate different error conditions being returned by the similar-users service.

  • "User <username> does not appear to have an account in English Wikipedia."

user-no-account.png (291×792 px, 19 KB)

  • "User <username> is a bot and therefore out of scope."

user-bot.png (285×774 px, 17 KB)

  • "User <username> does not appear to have an account (or edits in scope) in English Wikipedia."

user-no-edits.png (294×788 px, 20 KB)

I also retested other error conditions (no results, timeouts, etc.) and successful requests in case of regression.

Test environment: