Page MenuHomePhabricator

Barchart no longer works in Wikidata Query Service
Closed, ResolvedPublicBUG REPORT


Steps to Reproduce:

SELECT ?year (COUNT(?work) AS ?count) {
  ?work wdt:P50 wd:Q20980928 ; wdt:P577 ?date .
  BIND(STR(YEAR(?date)) AS ?year)
GROUP BY ?year
ORDER BY ?year (doesn't work)

Actual Results:

Table rendered and a (Danish) message "Ude af stand til at vise resultatet: Bar chart"

Expected Results:

Barchart shown

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Fnielsen updated the task description. (Show Details)

Quite a number of panels in Scholia has been affected by the change/bug, e.g., "Number of publications per year", "Number of pages per year" and "Citations by year".

It does not seem to be able to handle STR and the first column now. But removing STR from BIND(STR(YEAR(?date)) AS ?year) does not help.

The query works fine, so I think the problem is in the UI. Maybe some broke due to Sesame upgrade. I'll take a look.

Change 517706 had a related patch set uploaded (by Smalyshev; owner: Smalyshev):
[wikidata/query/gui@master] Fix breakage in charts

Change 517706 merged by jenkins-bot:
[wikidata/query/gui@master] Fix breakage in charts

Mentioned in SAL (#wikimedia-operations) [2019-06-18T20:19:42Z] <smalyshev@deploy1001> Started deploy [wdqs/wdqs@0a1c946]: deploy new GUI for T226017

Mentioned in SAL (#wikimedia-operations) [2019-06-18T20:49:45Z] <smalyshev@deploy1001> Finished deploy [wdqs/wdqs@0a1c946]: deploy new GUI for T226017 (duration: 30m 03s)