Page MenuHomePhabricator

WDQS UI list of examples is empty
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
The selector opens, but there are no examples:

Screenshot 2024-06-07 064049.png (1×1 px, 125 KB)

What should have happened instead?:
There should be a list of selectable examples generated from Wikidata:SPARQL query service/queries/examples/en or Commons:SPARQL query service/queries/examples/en respectively.

Other information (browser name/version, screenshots, etc.):
Microsoft Edge Version 127.0.2620.3 (Official build) dev (64-bit)
[This issue was reproduced by Nikki with an older browser.]

Commons examples were last meaningfully updated in October, so it seems unlikely to be an issue with the wikitext; but the page generated may have changed.

Event Timeline

I believe this may have broken due to T365736, in relation to the code to find the previous header. The code will need to be adapted to accommodate the new header markup.

Change #1040146 had a related patch set uploaded (by Hasan Akgün (WMDE); author: Hasan Akgün (WMDE)):

[wikidata/query/gui@master] Change selectors for query examples

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

The proposed change restores the examples, but not the section headers. I've marked the section in question in Gerrit, but here's screenshots to illustrate.

With the patched code as submitted as an override to wdqs.js:

Screenshot 2024-06-07 211236.png (1×2 px, 241 KB)

With .mw-heading instead of mw-heading:

Screenshot 2024-06-07 211407.png (1×2 px, 247 KB)

The number is 424 rather than 375 and the section header "Simple queries" shows up.

The latest patch set seems to resolve the above issue.

The fixed version should presumably be used externally only with MW 1.43+, once it is released. Which probably isn't too much of a problem, as many stick to LTS anyway.

Change #1040146 merged by jenkins-bot:

[wikidata/query/gui@master] Change selectors for query examples

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