Page MenuHomePhabricator

Expand list of allowed domains in Query Chest to include the split Wikidata graph endpoints
Closed, ResolvedPublicFeature

Description

Feature summary (what you would like to be able to do and where):
In https://gitlab.wikimedia.org/toolforge-repos/query-chest/-/blob/main/query_chest/validation.py#L6 , adjust

allowed_domains = ['query.wikidata.org']

to include the split graphs query-main and query-scholarly.
And while we're at it, WCQS queries should probably be allowed too.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

While working on rewriting queries like this to address the graph split, we are running into character limits with the URL shortener too (actually more frequently, because the federation usually adds quite a bit in terms of characters).

Benefits (why should this be implemented?):

If we want people to share queries for the split-graph setup, there should be commensurate support for URL shortening too.