Page MenuHomePhabricator

Page Previews API returns empty summaries for certain requests on Wikivoyage
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What should have happened instead?:

You should see the picture and the text.

Event Timeline

Cannot reproduce, Firefox 94 on Linux. Are there clearer steps to reproduce? Any specific links, so we could look at the API calls themselves?

Screenshot from 2021-11-07 18-52-08.png (974×1 px, 783 KB)

Cannot reproduce, Firefox 94 on Linux. Are there clearer steps to reproduce? Any specific links, so we could look at the API calls themselves?

https://en.wikivoyage.org/wiki/UNESCO_World_Heritage_List

Снимок экрана от 2021-11-07 21-37-44.png (317×740 px, 88 KB)

Снимок экрана от 2021-11-07 21-38-13.png (459×594 px, 121 KB)

Снимок экрана от 2021-11-07 21-38-32.png (491×489 px, 235 KB)

https://en.wikivoyage.org/wiki/Kamphaeng_Phet
Снимок экрана от 2021-11-07 21-39-37.png (401×706 px, 218 KB)

Снимок экрана от 2021-11-07 21-39-25.png (467×791 px, 315 KB)

Jdlrobson renamed this task from Page Previews does not show text at the English Wikivoyage (and possibly elsewhere) to Page Previews API returns empty summaries for certain requests on Wikivoyage.Nov 8 2021, 2:48 PM

Reproduced on other language's Wikivoyage, for example Chinese Wikivoyage: empty text preview for "香港", "北京" and "上海" in this article.

Change 769692 had a related patch set uploaded (by Vadim Kovalenko; author: Vadim Kovalenko):

[mediawiki/services/mobileapps@master] Page Previews API returns empty summaries for certain requests on Wikivoyage

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

Change 769692 merged by jenkins-bot:

[mediawiki/services/mobileapps@master] Page Previews API returns empty summaries for certain requests on Wikivoyage

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

As per the above comment, while investigating this via the V1 REST API, I noticed that if you remove Wikivoyage's Pagebanner template from the article and then re-add it, the extract field in the summary call re-populates permanently.

Change 774436 had a related patch set uploaded (by Vadim Kovalenko; author: Vadim Kovalenko):

[mediawiki/services/mobileapps@master] Page Previews API returns empty summaries for certain requests on Wikivoyage

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

@Brycehughes could you specify which exactly article did you test? I suspect that this might be a cache issue but not sure. I also found another article with exactly the same problem ( go to https://en.wikivoyage.org/wiki/Auschwitz-Birkenau, hover Oświęcim), so I put additional fixes in the follow-up patch above.
cc: @Arlolra , @MSantos

@vadim-kovalenko the article I tested was France. This seems to be fixed for a number of pages now, but still seems to be broken on many, such as Barcelona and Tokyo.

@Brycehughes cases with Barcelona and Tokyo also have been fixed in the patch above, I've just checked them. Once this patch goes to the beta cluster it will be more convenient to test other cases where this issue might happen.

@vadim-kovalenko got it, thanks. I'll keep an eye on this ticket then.

@vadim-kovalenko Since https://gerrit.wikimedia.org/r/769692 some previews stopped working on itwiki. You can check it by hovering
Siniša Mihajlović or Héctor Puricelli on https://it.wikipedia.org/wiki/Wikipedia:Officina#Anteprima_a_volte_non_disponibile (and many others on Serie A 2021-2022). Reproduced it with a local copy of mediawiki-services-mobileapps.
It looks like your latest patch (https://gerrit.wikimedia.org/r/774436) fixed it, though.

@Titore Thank you for your attention to this problem. I will take into consideration your case while working on the patch which is currently in progress.

Change 774436 merged by jenkins-bot:

[mediawiki/services/mobileapps@master] Page Previews API returns empty summaries for certain requests on Wikivoyage

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