Page MenuHomePhabricator

[wmf.1] frwiki - Homepage SE counter changes total count of tasks
Open, MediumPublicBUG REPORT

Assigned To
None
Authored By
Etonkovidova
Mar 23 2023, 11:39 PM
Referenced Files
F36929179: image.png
Mar 27 2023, 10:00 AM
F36925064: article count .gif
Mar 23 2023, 11:43 PM
F36925057: counter_change.gif
Mar 23 2023, 11:39 PM
Tokens
"Love" token, awarded by KStoller-WMF.

Description

Steps to replicate the issue

  • On frwiki Special:Homepage select Amérique du Nord as a topic filter and Add link (Ajouter des liens entre articles Suggestions automatiséesas) as a task type
  • the SE counter will display 1 of 780 (as in the animated gif below, but the total count can be of a different value at the time when the steps would be reproduced)
  • Start navigating the SE articles (clicking on the right arrow button)

What happens?:

  • When clicking on the right arrow, the counter will display correct count first, e.g. 2 of 780, 3 of 780
  • At some point, the total count will change dramatically to a smaller number. As in the gif below, after 11th suggestion the total count changes to 25.

counter_change.gif (668×794 px, 537 KB)

Another example (the gif file) (from @KStoller-WMF):

article count .gif (507×584 px, 441 KB)

Note:

  • refreshing the page will restore the initial correct total count

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Note also the last card state is erroneous:

image.png (1×1 px, 100 KB)

Query parameters while advancing:

action=query
format=json
prop=info%7Crevisions%7Cpageimages
rvprop=ids
piprop=name%7Coriginal%7Cthumbnail
pithumbsize=332
generator=growthtasks
ggtlimit=20
ggttasktypes=link-recommendation
formatversion=2
uselang=fr
ggttopics=medicine-and-health


action=query
format=json
prop=info%7Crevisions%7Cpageimages
rvprop=ids
piprop=name%7Coriginal%7Cthumbnail
pithumbsize=332
generator=growthtasks
ggtlimit=20
ggttasktypes=link-recommendation
formatversion=2
uselang=fr
ggttopics=medicine-and-health

# jumps to 43 tasks from ~655

action=query
format=json
prop=info%7Crevisions%7Cpageimages
rvprop=ids
piprop=name%7Coriginal%7Cthumbnail
pithumbsize=332
generator=growthtasks
ggtlimit=20
ggttasktypes=link-recommendation
formatversion=2
uselang=fr
ggttopics=medicine-and-health
ggtexcludepageids=4519107%7C8013115%7C787950%7C15198541%7C65870%7C8712940%7C14328892%7C900662%7C6511199%7C191362%7C1387567%7C328105%7C10516435%7C3015713

Change 951434 had a related patch set uploaded (by Sergio Gimeno; author: Sergio Gimeno):

[mediawiki/extensions/GrowthExperiments@master] GrowthTasksApi: assert all tasks are fetched

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

Change 951899 had a related patch set uploaded (by Cyndywikime; author: Cyndywikime):

[mediawiki/extensions/GrowthExperiments@master] Ensure SE counter shows correct count of tasks.

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

I'll move this out of the current sprint, based on the Gerrit comment:

we should try to resolve T347601 first. Increasing the lookahead size will always be an option but it comes at a performance cost in queries and payload size.