Page MenuHomePhabricator

[betalabs] NPP - "Uncaught TypeError: Cannot read property 'stats' of undefined" and "Cannot read property 'pages' of undefined"
Closed, ResolvedPublic

Description

  1. In betalabs on Special:NewPagesFeed - mark all filters that you can select. Click on 'Set filters'.

The some results will be displayed.

  1. Un-check one of the filters and click 'Set filters' - the spinning icon appears on the side of 'Refresh list' button at the bottom of the result panel.

The spinning action never ends and if additional filters get un-checked, the multiple spinning icons will be displayed. Clicking on 'Refresh list' icons adds more spinning icons.

Screen Shot 2018-08-01 at 9.38.16 AM.png (457×1 px, 93 KB)

Screen Shot 2018-08-01 at 9.45.46 AM.png (85×418 px, 11 KB)

The Console display the following:

Uncaught TypeError: Cannot read property 'stats' of undefined
Uncaught TypeError: Cannot read property 'pages' of undefined

Event Timeline

Note for testing after the fix: in testwiki (wmf.15) - multiple clicks on 'Refresh list' produce multiple spinning icons.

Change 450058 had a related patch set uploaded (by Sbisson; owner: Sbisson):
[mediawiki/extensions/PageTriage@master] Only add ORES condition when there is one

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

Change 450058 merged by jenkins-bot:
[mediawiki/extensions/PageTriage@master] Only add ORES condition when there is one

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

Checked the fix in betalabs.