Page MenuHomePhabricator

Graph tag doesn't work in interface messages (ru.wikipedia, Page information action)
Closed, DuplicatePublicBUG REPORT

Assigned To
None
Authored By
Iniquity
Dec 22 2020, 6:25 PM
Referenced Files
F33970348: image.png
Dec 22 2020, 8:07 PM
F33970350: image.png
Dec 22 2020, 8:07 PM
F33969786: image.png
Dec 22 2020, 6:25 PM
F33969782: image.png
Dec 22 2020, 6:25 PM

Description

In connection with T259207 statistics on graphs in Russian Wikipedia stopped working, how can we fix it?
https://ru.wikipedia.org/w/index.php?title=Википедия:КУЛ_должен_быть_очищен/IX&action=info&uselang=ru
It was added here: https://ru.wikipedia.org/wiki/MediaWiki:Pageinfo-header

Steps to Reproduce:

  1. Go to ruwiki
  2. Open any popular page (https://ru.wikipedia.org/wiki/Заглавная_страница for example)
  3. Open info about this page with uselang=ru (https://ru.wikipedia.org/w/index.php?title=Заглавная_страница&action=info&uselang=ru)

Actual Results:
The graphs at the top are not displayed

image.png (513×898 px, 34 KB)

Expected Results:
The graphs at the top are displayed

image.png (348×989 px, 29 KB)

Event Timeline

Yup, this is an inescapable consequence of client-side-only rendering. For now we should switch off the graphs from the info page.

Hmm, no, it's rendering for me? It's all client-side already.

It looks like Шаблон:График просмотров is inserting a graph callback, which isn't supported any more; I believe the template is maintained at https://www.mediawiki.org/wiki/Template_talk:Graph:PageViews where people might have more ideas, sorry.

@Yurik hi :) can you help with this issue?

This needs to be fixed in the template on-wiki, which isn't managed on Phabricator, sorry!

Krinkle renamed this task from The graphs on a 'info' special page are no longer displayed to Pageview graph on "Page information" action broken.May 18 2021, 11:00 PM
Krinkle renamed this task from Pageview graph on "Page information" action broken to Graph tag doesn't work in interface messages (ru.wikipedia, Page information action).
Krinkle triaged this task as High priority.
Krinkle added projects: PageViewInfo, Regression.
Krinkle removed projects: Regression, PageViewInfo.

Depending on when this broke this could be caused by:

  • Graphoid disablement. Thus relying on client JS which perhaps never worked in the Graph extension for interfaces messages on special pages and other page actions.
  • Or, the extension was changed, or the core code for adding interface messages to OutputPage, such that the ParserOutput module gets lost.
  • Or, breaking changes in the skin, such as the current mw-content-body mess, could have caused this to stop working.