https://bugzilla.wikimedia.org/show_bug.cgi?id=73385

            Bug ID: 73385
           Summary: Read default wiki list from sitematrix
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: parsoid-t...@wikimedia.org
          Reporter: canan...@wikimedia.org
                CC: elitr...@gmail.com, jforres...@wikimedia.org,
                    ssas...@wikimedia.org
       Web browser: ---
   Mobile Platform: ---

https://en.wikipedia.org/w/api.php?action=sitematrix&format=json
is WMF-specific, but it contains a complete mapping of dbnames to urls for all
WMF sites.

We should either have a parsoid localsettings option to read this at server
startup (optional, non wmf installs won't want it), or else write a simple tool
to generate our default list of wikis (languages at least) statically by
querying this. (And then something to notify us when our list is out of date?)

This will help ensure that we follow the creation of new wikis promptly
(instead of requiring patches like https://gerrit.wikimedia.org/r/172995 ).

Currently parsoid only is configured with the 'public' wikis in the sitematrix,
and the deploy:conf/wmf/localsettings.js contains definitions of the private
wikis.  Once we add the 'parsoidConfig.fetchWMF=true' option to localsettings,
we can probably remove this distinction.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to