Page MenuHomePhabricator

Support other wikis than Wikidata
Closed, ResolvedPublic

Description

The same way that Listeria works anywhere, what would it take to have Integraality work anywhere.

The current assumption are:

  • The computing part, property_statistics.py, does not make any assumption
  • in pages_processor.py:
    • for the weekly update, get_all_pages only scans Wikidata for template usage
    • for on-demand update: process_one_page assumes the Page is from Wikidata
    • for looking-glass feature: make_stats_object_for_page_title assumes the page is from Wikidata

Since we pass around pywikibot.Page object, once that Page is from another project, the rest (read/write to it) will follow

  1. Generic
    1. extend process_one_page and make_stats_object_for_page_title to support other projects
  2. On-demand updates & looking-glass feature
    1. add parameter to update and queries endpoints
    2. [on-wiki] add project parameter to template
  3. weekly-update:
    1. scan every project (?!?)

Event Timeline

I think the use-case is reasonable − had not really thought about it. It is also fairly easy to do.

1.A and 2.A are straightforward. 2B is as well.

I’m really not too sure how to solve the periodic update issue. I would not exactly be keen to support potentially every wiki out there to see if there is {{Property dashboard}} on it!

I guess the easiest would be to have a list of potential wikis to scan.

Some potential ideas:

  • Hardcoded list (wikis need to ask to be added)
  • Store the list as Sitelinks to a Wikidata item about the template (?)

Mentioned in SAL (#wikimedia-cloud) [2020-02-05T12:40:37Z] <wm-bot> <jeanfred> Deploy latest from Git master: 8977958 (T243780)

Mentioned in SAL (#wikimedia-cloud) [2020-02-16T16:49:44Z] <JeanFred> "Deploy latest from Git master: 0fcb522 (T243780), 4cb6a5a (T243780, T239067)"

Mentioned in SAL (#wikimedia-cloud) [2020-02-16T16:49:44Z] <JeanFred> "Deploy latest from Git master: 0fcb522 (T243780), 4cb6a5a (T243780, T239067)"

JeanFred claimed this task.

Periodic upgrades also work, closing as resolved.