Page MenuHomePhabricator

Display generic error message on Special:SimilarEditors
Closed, ResolvedPublic5 Estimated Story Points

Description

This task is spun out from T308649#8010691

If the Similarusers service returns errors other than those specified in T311535 and T311536, display a generic error message:

Something has gone wrong, we’re looking into it. If the problem persists please reach out to us here.

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)

Notes

  • The error message should be translateable
  • As part of this task, we need to figure out how to know which message the service has returned
  • We will probably need to update the service too

Event Timeline

Tchanders set the point value for this task to 5.

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

[mediawiki/services/similar-users@main] Replace calls to flask.abort with flask.jsonify

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

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

[mediawiki/extensions/SimilarEditors@master] WIP Show a generic error if the Similarusers service doesn't return good results

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

Change 816794 merged by jenkins-bot:

[mediawiki/services/similar-users@main] Replace calls to flask.abort with flask.jsonify

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

Change 817290 merged by jenkins-bot:

[mediawiki/extensions/SimilarEditors@master] Show a generic error if the Similarusers service doesn't return good results

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

The error message in the task description is:

Something has gone wrong, we’re looking into it. If the problem persists please reach out to us here.

But the error message in the software is:

Something has gone wrong, we’re looking into it.

@Tchanders @Prtksxna Is that OK?

@Tchanders We also show the error message when there are no results for a user, e.g. Special:SimilarEditors?wpTarget=B2Belgium.

Before, we showed There are no results (as per T310491).

The error message in the task description is:

Something has gone wrong, we’re looking into it. If the problem persists please reach out to us here.

But the error message in the software is:

Something has gone wrong, we’re looking into it.

@Tchanders @Prtksxna Is that OK?

Oh yes - I was thinking we should add the link for reaching out to us via WikimediaMessages. Filed as: T314287

@Tchanders We also show the error message when there are no results for a user, e.g. Special:SimilarEditors?wpTarget=B2Belgium.

Before, we showed There are no results (as per T310491).

This is a bug - will fix. Thanks @dom_walden

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

[mediawiki/extensions/SimilarEditors@master] Return empty array from client if there are no results

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

Change 819126 merged by jenkins-bot:

[mediawiki/extensions/SimilarEditors@master] Return empty array from client if there are no results

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

When we get an error (including a timeout in the service or extension or the user does not exist), we are now showing the error:

Something has gone wrong, we’re looking into it.

Empty results returns:

There are no results.

Test environment: