Description
The SimilarEditors extension uses the similar-users service to find similar users, based on edit history. It adds a special page that accepts a user name or IP address as input, and displays the results, along with a QuickSurveys survey. It is accessible by checkusers.
The extension will initially be used to gather feedback from checkusers, so that the service can be improved. In the future, the service might be made accessible to a wider audience, and it might be via a completely different user interface.
Preview environment
Beta cluster link: https://en.wikipedia.beta.wmflabs.org/wiki/Special:SimilarEditors
(The service only works with English Wikipedia, so we have had to account for this in the extension: T309618)
Which code to review
(Provide links to all proposed changes and/or repositories. It should also describe changes which have not yet been merged or deployed but are planned prior to deployment. E.g. production Puppet, wmf config, or in-flight features expected to complete prior to launch date, etc.).
- MediaWiki extension: https://gerrit.wikimedia.org/r/admin/repos/mediawiki/extensions/SimilarEditors
- Service: https://gerrit.wikimedia.org/r/admin/repos/mediawiki/services/similar-users (Please note: this review request is for the extension, rather than the service. This service is already running in production and is not owned by AHT. However, the performance bottlenecks mostly originate from this, and AHT will try to work on it where possible.)
Performance assessment
Please initiate the performance assessment by answering the below:
- What work has been done to ensure the best possible performance of the feature?
- Not much has been custom-built in this extension - we've used UI components out of the box, and
- What are likely to be the weak areas (e.g. bottlenecks) of the code in terms of performance?
- This should be fairly lightweight on the MediaWiki side: just a form and a single page of results (maximum 50 - see T304525).
- Awaiting results from the similar-users service is the most likely bottleneck (which has been observed in testing)
- Explained in detail in T307023#7960838; relevant code here; improvements made in T310646: Reduce timeouts for prolific editors
- The service does not time out with the same threshold as MediaWiki on production - T307023#7963123 - is this a problem?
- There is also a delay while waiting for the QuickSurveys survey to load after form submission
- Are there potential optimisations that haven't been performed yet?
- Other than the known problems with the service (see above), none that we know of
- Please list which performance measurements are in place for the feature and/or what you've measured ad-hoc so far. If you are unsure what to measure, ask the Performance Team for advice: performance-team@wikimedia.org.
- We have been measuring ad-hoc while testing the feature as it is developed, using a test dataset with realistic data