Page MenuHomePhabricator

Special:NewPagesFeed incorrectly states "No Categories" when categories exist
Closed, ResolvedPublic

Description

I have recently created some articles using AWB. I have made most of them with one revision. See this as an example. As you can see, the first revision has categories. However, in the New Pages Feed it says that there are no categories. See screenshot below as an example.

Event Timeline

Aklapper renamed this task from "No Categories" in NPP feed to Incorrectly states "No Categories" in Special:NewPagesFeed though added in AWB.Oct 8 2016, 1:10 PM

Guess this isn't specifically an AWB bug, but can leave it tagged for now...

There's clearly categories in the text, and some extra from the tags added

I can reproduce this locally by making a normal edit through the UI, without AWB.

It looks like the "No categories" label is always one edit behind: if I remove all categories from a page, it'll keep saying there are categories, but if I then make a small edit to the page it'll update and say there are no categories.

Reedy renamed this task from Incorrectly states "No Categories" in Special:NewPagesFeed though added in AWB to Special:NewPagesFeed incorrectly states "No Categories" when categories exist.Oct 11 2016, 7:26 PM
Reedy removed a project: AutoWikiBrowser.

As per @Catrope and my testing

    • 'No categories' label appears one edit behind
  • 'No citation' label gets updated immediately

Confirmed with @Catrope that the reason for the issue is understood. I moved the ticket to Collab-Team-Q2-Oct-Dec-2016 Workboard

Change 315454 had a related patch set uploaded (by Catrope):
Use ParserOutput instead of DB to check for categories

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

Pending update on test.wikipedia.org for reviewing the patch.

According to new pages feed on test.wikimedia.beta.wmflabs.org, it didn't work. I wasn't sure whether it was the most recent patch, but @RobLa-WMF suggested that I should still put the comment here.

I believe that the patch didn't work. See

And this.

Change 315454 merged by jenkins-bot:
Use ParserOutput instead of DB to check for categories

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

Checked in betalabs - when Categories are added to the page and the change is saved, Special:NewPagesFeed will display updated info for the page - removing 'No categories' label.