Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Page MenuHomePhabricator

WDQS link back to WDQS from a rendered result doesn't show the SPARQL used to create the report
Closed, ResolvedPublic5 Estimated Story Points

Description

I may be wrong but it is my recollection that report URLs that render a result such as:

https://query.wikidata.org/embed.html#%23defaultView%3AMap%7B%22hide%22%3A%5B%22%3Fcoordinates%22%2C%20%22%3Fline%22%2C%20%22%3Frgb%22%5D%7D%0ASELECT%20DISTINCT%20%3Fcoordinates%20%3Fline%20%3Fitem%20%3FitemLabel%20%3FconnectLabel%20%3Fimage%20%3Fopening%20%3Frgb%0A%0AWITH%20%7B%0A%20%20SELECT%20%3Fitem%20(SAMPLE(%3Fcoordinates)%20AS%20%3Fcoordinates)%20(SAMPLE(%3Fimage)%20AS%20%3Fimage)%20(sample(%3Flat1)%20as%20%3Flat1)%20(sample(%3Flon1)%20as%20%3Flon1)%20(sample(%3Fopening)%20as%20%3Fopening)%20WHERE%20%7B%0A%20%20%20%20%3Fitem%20wdt%3AP31%20wd%3AQ14562709%20.%0A%20%20%20%20%3Fitem%20wdt%3AP625%20%3Fcoordinates%20%20.%0A%20%20%20%20%3Fitem%20p%3AP625%20%2F%20psv%3AP625%20%2F%20wikibase%3AgeoLatitude%20%3Flat1%20.%0A%20%20%20%20%3Fitem%20p%3AP625%20%2F%20psv%3AP625%20%2F%20wikibase%3AgeoLongitude%20%3Flon1%20.%0A%20%20%20%20OPTIONAL%20%7B%20%3Fitem%20wdt%3AP18%20%3Fimage%20%7D.%0A%20%20%20%20OPTIONAL%20%7B%20%3Fitem%20wdt%3AP1619%20%3Fopening%20%7D.%0A%20%20%7D%20GROUP%20BY%20%3Fitem%0A%7D%20AS%20%25stations%0A%0AWITH%20%7B%0A%20%20SELECT%20%3Fnextstation%20(sample(%3Flat2)%20as%20%3Flat2)%20(sample(%3Flon2)%20as%20%3Flon2)%20WHERE%20%7B%0A%20%20%20%20%3Fnextstation%20wdt%3AP31%20wd%3AQ14562709%20.%0A%20%20%20%20%3Fnextstation%20p%3AP625%20%2F%20psv%3AP625%20%2F%20wikibase%3AgeoLatitude%20%3Flat2%20.%0A%20%20%20%20%3Fnextstation%20p%3AP625%20%2F%20psv%3AP625%20%2F%20wikibase%3AgeoLongitude%20%3Flon2%20.%0A%20%20%7D%20GROUP%20BY%20%3Fnextstation%0A%7D%20AS%20%25nextstations%0A%0AWITH%20%7B%0A%20%20SELECT%20%3Fline%20%3Fconnect%20%3Frgb%20WHERE%20%7B%0A%20%20%20%20INCLUDE%20%25stations%20.%0A%20%20%20%20INCLUDE%20%25nextstations%20.%0A%20%20%20%20%3Fitem%20p%3AP197%20%3Fnextstationstatement%20.%0A%20%20%20%20%3Fnextstationstatement%20ps%3AP197%20%3Fnextstation%20.%0A%20%20%20%20%3Fnextstationstatement%20pq%3AP81%20%3Fconnect%20.%20%3Fconnect%20wdt%3AP361%20wd%3AQ20075%20%20.%20%0A%20%20%20%20%3Fconnect%20wdt%3AP465%20%3Frgb%20.%0A%20%20%20%20FILTER(STR(%3Fitem)%20%3C%20STR(%3Fnextstation))%20.%20%20%20%20%0A%20%20%20%20BIND(CONCAT('LINESTRING%20('%2C%20STR(%3Flon1)%2C%20'%20'%2C%20STR(%3Flat1)%2C%20'%2C'%2C%20STR(%3Flon2)%2C%20'%20'%2C%20STR(%3Flat2)%2C%20')')%20AS%20%3Fstr)%20.%0A%20%20%20%20BIND(STRDT(%3Fstr%2C%20geo%3AwktLiteral)%20AS%20%3Fline)%20%0A%20%20%7D%0A%7D%20AS%20%25lines%20%0A%20%0AWHERE%20%7B%0A%20%20%7B%20INCLUDE%20%25stations%20%7D%20%20UNION%20%7B%20INCLUDE%20%25lines%20%20%7D%20.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D

used to have a Wikidata Query Service link in the bottom left corner of the results which, if followed, took one back to the WDQS report interface and showed the SPARQL used to create the report.

Currently that link takes the user back to a blank WDQS interface.

So.
Click on Wikidata Query Service link in the bottom left corner of a rendered results page...
Expected: I get to see the SPARQL
Actual: I get a blank WDQS screen

Event Timeline

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

Change 507380 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[wikidata/query/gui@master] Don’t use _ as unused variable name

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

Change 507380 merged by jenkins-bot:
[wikidata/query/gui@master] Don’t use _ as unused variable name

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

Change 507382 had a related patch set uploaded (by WDQSGuiBuilder; owner: WDQSGuiBuilder):
[wikidata/query/gui-deploy@production] Merging from da512410d6f368cd8ba50c0482d9d818858a508c:

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

Mentioned in SAL (#wikimedia-operations) [2019-04-30T19:35:36Z] <smalyshev@deploy1001> Started deploy [wdqs/wdqs@4360316]: Redeploy GUI for fixes T222133, T222129, T222181, T222182

Mentioned in SAL (#wikimedia-operations) [2019-04-30T19:44:53Z] <smalyshev@deploy1001> Finished deploy [wdqs/wdqs@4360316]: Redeploy GUI for fixes T222133, T222129, T222181, T222182 (duration: 09m 17s)