Page MenuHomePhabricator

Migrate Siteinfo to use formatversion=2
Closed, ResolvedPublicDesign

Description

Currently, the Siteinfo class uses formatversion=1.
This causes several issues:

  • Boolean fields are returned as empty strings ("") or is missing instead of proper Booleans.
  • Nested structures (namespaces, magicwords) need manual post-processing.
  • '*' fields

The goal of this task is to migrate Siteinfo to formatversion=2 so that:

  • All boolean values are returned by the API as True/False.
  • _post_process fixes structure, no longer converts booleans.
  • A backwards-compatible variant (siteinfo) remains for old scripts.
  • A new site_info property provides raw formatversion=2 data

Details

Related Changes in Gerrit:

Related Objects

StatusSubtypeAssignedTask
OpenFeatureNone
ResolvedDesignXqt

Event Timeline

Xqt triaged this task as Medium priority.Sep 11 2025, 9:15 AM
Xqt changed the subtype of this task from "Task" to "Design".

Change #1187941 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] IMPR: Retrieve siteinfo with formatversion 2

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

Change #1187941 merged by jenkins-bot:

[pywikibot/core@master] IMPR: Retrieve siteinfo with formatversion 2

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