[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-31 Thread Addshore
Addshore closed this task as "Resolved".

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE, Addshore
Cc: William_Avery, Lucas_Werkmeister_WMDE, Aklapper, Invadibot, maantietaja, 
Akuckartz, Iflorez, alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, 
Jayprakash12345, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wong128hk, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-31 Thread Addshore
Addshore closed subtask T288820: Test that Wikibase/Wikidata namespaces declare 
their content model as Resolved.

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE, Addshore
Cc: William_Avery, Lucas_Werkmeister_WMDE, Aklapper, Invadibot, maantietaja, 
Akuckartz, Iflorez, alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, 
Jayprakash12345, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wong128hk, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-13 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.


  In T288724#7278329 , 
@Lucas_Werkmeister_WMDE wrote:
  
  > Hm, this might not actually be a new issue… on English Wikipedia (still on 
wmf.17) there’s only one namespace with `defaultcontentmodel` too:
  >
  >   $ curl -s 
'https://en.wikipedia.org/w/api.php?action=query=siteinfo=namespaces=2=json'
 | jq '.query.namespaces | .[] | select(has("defaultcontentmodel")) | { id, 
canonical, defaultcontentmodel }'
  >   {
  > "id": 2302,
  > "canonical": "Gadget definition",
  > "defaultcontentmodel": "GadgetDefinition"
  >   }
  >
  > And I seem to get the same result locally (namespace `0` having content 
model `null`) going back as far as wmf/1.37.0-wmf.1 (though I changed the 
MediaWiki core checkout for this, not extensions, so it’s just a quick check).
  
  Side note: I think this was a conflation of two issues – the fact that 
namespace 0 on English Wikipedia doesn’t declare the wikitext content model 
(and other special namespaces like Module don’t declare anything either) is 
strange, but apparently not a recent regression, and unrelated to this issue. 路

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: William_Avery, Lucas_Werkmeister_WMDE, Aklapper, Invadibot, maantietaja, 
Akuckartz, Iflorez, alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, 
Jayprakash12345, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wong128hk, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-13 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE moved this task from Doing to Test (Verification) on the 
Wikidata-Campsite (Wikidata-Campsite-Iteration-∞) board.
Lucas_Werkmeister_WMDE added a comment.


  I’ve created two follow-up tasks, I think this can be resolved now.

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

WORKBOARD
  https://phabricator.wikimedia.org/project/board/3539/

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: William_Avery, Lucas_Werkmeister_WMDE, Aklapper, Invadibot, maantietaja, 
Akuckartz, Iflorez, alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, 
Jayprakash12345, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wong128hk, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread Maintenance_bot
Maintenance_bot removed a project: Patch-For-Review.

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE, Maintenance_bot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Invadibot, maantietaja, Akuckartz, 
Iflorez, alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wong128hk, 
Wikidata-bugs, aude, Lydia_Pintscher, Mbch331, Biggs657, Lalamarie69, 
Juan90264, Alter-paule, Beast1978, Un1tY, Hook696, Kent7301, joker88john, 
CucyNoiD, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Lewizho99, 
Maathavan
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread ReleaseTaggerBot
ReleaseTaggerBot added a project: MW-1.37-notes (1.37.0-wmf.19; 2021-08-16).

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE, ReleaseTaggerBot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Biggs657, Invadibot, Lalamarie69, 
maantietaja, Juan90264, Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, 
Iflorez, Kent7301, alaa_wmde, joker88john, CucyNoiD, Nandana, Gaboe420, 
Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, 
Jayprakash12345, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, 
rosalieper, Scott_WUaS, Wong128hk, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE moved this task from Peer Review to Doing on the 
Wikidata-Campsite (Wikidata-Campsite-Iteration-∞) board.
Lucas_Werkmeister_WMDE added a comment.


  Should be fixed for now, I’ll leave the task open because we probably want 
tests for this, or to look into it further.

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

WORKBOARD
  https://phabricator.wikimedia.org/project/board/3539/

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Biggs657, Invadibot, Lalamarie69, 
maantietaja, Juan90264, Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, 
Iflorez, Kent7301, alaa_wmde, joker88john, CucyNoiD, Nandana, Gaboe420, 
Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, 
Jayprakash12345, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, 
rosalieper, Scott_WUaS, Wong128hk, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread Stashbot
Stashbot added a comment.


  Mentioned in SAL (#wikimedia-operations) [2021-08-12T09:31:15Z] 
 Synchronized 
php-1.37.0-wmf.18/extensions/Wikibase/: Backport: [[gerrit:711714|Revert 
"Inject NamespaceInfo into EntitySourceDefinitionsConfigParser" (T288724 
)]] (2/2) (duration: 01m 12s)

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE, Stashbot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Biggs657, Invadibot, Lalamarie69, 
maantietaja, Juan90264, Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, 
Iflorez, Kent7301, alaa_wmde, joker88john, CucyNoiD, Nandana, Gaboe420, 
Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, 
Jayprakash12345, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, 
rosalieper, Scott_WUaS, Wong128hk, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread Stashbot
Stashbot added a comment.


  Mentioned in SAL (#wikimedia-operations) [2021-08-12T09:29:51Z] 
 Synchronized 
php-1.37.0-wmf.18/extensions/Wikibase/data-access/: Backport: 
[[gerrit:711714|Revert "Inject NamespaceInfo into 
EntitySourceDefinitionsConfigParser" (T288724 
)]] (1/2) (duration: 01m 08s)

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE, Stashbot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Biggs657, Invadibot, Lalamarie69, 
maantietaja, Juan90264, Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, 
Iflorez, Kent7301, alaa_wmde, joker88john, CucyNoiD, Nandana, Gaboe420, 
Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, 
Jayprakash12345, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, 
rosalieper, Scott_WUaS, Wong128hk, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread gerritbot
gerritbot added a comment.


  Change 711714 **merged** by jenkins-bot:
  
  [mediawiki/extensions/Wikibase@wmf/1.37.0-wmf.18] Revert \"Inject 
NamespaceInfo into EntitySourceDefinitionsConfigParser\"
  
  https://gerrit.wikimedia.org/r/711714

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE, gerritbot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Biggs657, Invadibot, Lalamarie69, 
maantietaja, Juan90264, Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, 
Iflorez, Kent7301, alaa_wmde, joker88john, CucyNoiD, Nandana, Gaboe420, 
Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, 
Jayprakash12345, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, 
rosalieper, Scott_WUaS, Wong128hk, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread gerritbot
gerritbot added a comment.


  Change 712113 **merged** by jenkins-bot:
  
  [mediawiki/extensions/Wikibase@master] Revert \"Inject NamespaceInfo into 
EntitySourceDefinitionsConfigParser\"
  
  https://gerrit.wikimedia.org/r/712113

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE, gerritbot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Biggs657, Invadibot, Lalamarie69, 
maantietaja, Juan90264, Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, 
Iflorez, Kent7301, alaa_wmde, joker88john, CucyNoiD, Nandana, Gaboe420, 
Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, 
Jayprakash12345, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, 
rosalieper, Scott_WUaS, Wong128hk, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread gerritbot
gerritbot added a comment.


  Change 711714 had a related patch set uploaded (by Lucas Werkmeister (WMDE); 
author: Lucas Werkmeister (WMDE)):
  
  [mediawiki/extensions/Wikibase@wmf/1.37.0-wmf.18] Revert \"Inject 
NamespaceInfo into EntitySourceDefinitionsConfigParser\"
  
  https://gerrit.wikimedia.org/r/711714

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE, gerritbot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Biggs657, Invadibot, Lalamarie69, 
maantietaja, Juan90264, Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, 
Iflorez, Kent7301, alaa_wmde, joker88john, CucyNoiD, Nandana, Gaboe420, 
Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, 
Jayprakash12345, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, 
rosalieper, Scott_WUaS, Wong128hk, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread gerritbot
gerritbot added a project: Patch-For-Review.

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE, gerritbot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Biggs657, Invadibot, Lalamarie69, 
maantietaja, Juan90264, Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, 
Iflorez, Kent7301, alaa_wmde, joker88john, CucyNoiD, Nandana, Gaboe420, 
Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, 
Jayprakash12345, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, 
rosalieper, Scott_WUaS, Wong128hk, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread gerritbot
gerritbot added a comment.


  Change 712113 had a related patch set uploaded (by Lucas Werkmeister (WMDE); 
author: Lucas Werkmeister (WMDE)):
  
  [mediawiki/extensions/Wikibase@master] Revert \"Inject NamespaceInfo into 
EntitySourceDefinitionsConfigParser\"
  
  https://gerrit.wikimedia.org/r/712113

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE, gerritbot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Invadibot, maantietaja, Akuckartz, 
Iflorez, alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wong128hk, 
Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.


  `git bisect` says it’s my fault, broke with 
71c66843ad3f20893cb805e141e94ae2794527c7 
.

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Invadibot, maantietaja, Akuckartz, 
Iflorez, alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wong128hk, 
Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.


  It is a regression in wmf.18 after all, I reset mwdebug2001 to wmf.17 and 
Wikidata gave the `wikibase-item` content model again:
  
lucaswerkmeister-wmde@mwdebug2001:~$ sudo -u mwdeploy sed -i 
'/\bwikidatawiki\b/ s/18/17/' /srv/mediawiki/wikiversions.{json,php}
lucaswerkmeister-wmde@mwdebug2001:~$ mwscript shell.php wikidatawiki
>>> 
MediaWiki\MediaWikiServices::getInstance()->getNamespaceInfo()->getNamespaceContentModel(
 0 )
=> "wikibase-item"
lucaswerkmeister-wmde@mwdebug2001:~$ scap pull
lucaswerkmeister-wmde@mwdebug2001:~$ mwscript shell.php wikidatawiki
>>> 
MediaWiki\MediaWikiServices::getInstance()->getNamespaceInfo()->getNamespaceContentModel(
 0 )
=> null

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Invadibot, maantietaja, Akuckartz, 
Iflorez, alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wong128hk, 
Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.


  Hm, this might not actually be a new issue… on English Wikipedia (still on 
wmf.17) there’s only one namespace with `defaultcontentmodel` too:
  
$ curl -s 
'https://en.wikipedia.org/w/api.php?action=query=siteinfo=namespaces=2=json'
 | jq '.query.namespaces | .[] | select(has("defaultcontentmodel")) | { id, 
canonical, defaultcontentmodel }'
{
  "id": 2302,
  "canonical": "Gadget definition",
  "defaultcontentmodel": "GadgetDefinition"
}
  
  And I seem to get the same result locally (namespace `0` having content model 
`null`) going back as far as wmf/1.37.0-wmf.1 (though I changed the MediaWiki 
core checkout for this, not extensions, so it’s just a quick check).

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Invadibot, maantietaja, Akuckartz, 
Iflorez, alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wong128hk, 
Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE claimed this task.
Lucas_Werkmeister_WMDE added a project: Wikidata-Campsite 
(Wikidata-Campsite-Iteration-∞).

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Invadibot, maantietaja, Akuckartz, 
Iflorez, alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wong128hk, 
Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.


  I can reproduce locally that 
`MediaWikiServices::getInstance()->getNamespaceInfo()->getNamespaceContentModel()`
 returns `null` for most namespace IDs, including 0 (wikitext on my wiki) and 
120 (items on my wiki), but not 640 (EntitySchema).

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Invadibot, maantietaja, Akuckartz, 
Nandana, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, 
_jensen, rosalieper, Scott_WUaS, Wong128hk, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.


  Workaround for Pywikibot:
  
site._entity_namespaces['item'] = site.namespaces[0]
  
  
  
>>> import pywikibot
>>> site = pywikibot.Site("wikidata", "wikidata")
>>> item = pywikibot.ItemPage(site, "Q42")
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/luwe/git/pywikibot/core/pywikibot/page/__init__.py", line 
3900, in __init__
ns = site.item_namespace
  File "/home/luwe/git/pywikibot/core/pywikibot/site/_datasite.py", line 
91, in item_namespace
self._item_namespace = self.get_namespace_for_entity_type('item')
  File "/home/luwe/git/pywikibot/core/pywikibot/site/_datasite.py", line 
78, in get_namespace_for_entity_type
raise EntityTypeUnknownError(
pywikibot.exceptions.EntityTypeUnknownError: DataSite("wikidata", 
"wikidata") does not support entity type "item"
>>> site._entity_namespaces['item'] = site.namespaces[0]
>>> item = pywikibot.ItemPage(site, "Q42")
  
  (You’ll probably need a similar line with 120 instead of 0 for the property 
namespace, and possibly another one for lexemes.)

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Invadibot, maantietaja, Akuckartz, 
Nandana, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, 
_jensen, rosalieper, Scott_WUaS, Wong128hk, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T288724: defaultcontentmodel missing from most namespaces in Wikidata namespaces siteinfo (breaks pywikibot)

2021-08-12 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE created this task.
Lucas_Werkmeister_WMDE added projects: Wikidata, Regression.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  Most namespaces on Wikidata are no longer declaring the `defaultcontentmodel` 
in action=query+meta=siteinfo+siprop=namespaces, e.g. the main (Item) namespace:
  
$ curl -s 
'https://www.wikidata.org/w/api.php?action=query=siteinfo=namespaces=2=json'
 | jq '.query.namespaces["0"]'
{
  "id": 0,
  "case": "first-letter",
  "name": "",
  "subpages": false,
  "content": true,
  "nonincludable": false
}
  
  In fact, only four namespaces still declare it:
  
$ curl -s 
'https://www.wikidata.org/w/api.php?action=query=siteinfo=namespaces=2=json'
 | jq '.query.namespaces | .[] | select(has("defaultcontentmodel")) | { id, 
canonical, defaultcontentmodel }'
{
  "id": 640,
  "canonical": "EntitySchema",
  "defaultcontentmodel": "EntitySchema"
}
{
  "id": 641,
  "canonical": "EntitySchema talk",
  "defaultcontentmodel": "wikitext"
}
{
  "id": 2302,
  "canonical": "Gadget definition",
  "defaultcontentmodel": "GadgetDefinition"
}
{
  "id": 2600,
  "canonical": "Topic",
  "defaultcontentmodel": "flow-board"
}
  
  One outcome of this is that Pywikibot refuses to operate on Wikidata, since 
it thinks the Item entity type isn’t supported:
  
>>> import pywikibot
>>> site = pywikibot.Site("wikidata", "wikidata")
>>> item = pywikibot.ItemPage(site, "Q42")
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/luwe/git/pywikibot/core/pywikibot/page/__init__.py", line 
3900, in __init__
ns = site.item_namespace
  File "/home/luwe/git/pywikibot/core/pywikibot/site/_datasite.py", line 
91, in item_namespace
self._item_namespace = self.get_namespace_for_entity_type('item')
  File "/home/luwe/git/pywikibot/core/pywikibot/site/_datasite.py", line 
78, in get_namespace_for_entity_type
raise EntityTypeUnknownError(
pywikibot.exceptions.EntityTypeUnknownError: DataSite("wikidata", 
"wikidata") does not support entity type "item"

TASK DETAIL
  https://phabricator.wikimedia.org/T288724

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Invadibot, maantietaja, Akuckartz, 
Nandana, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, 
_jensen, rosalieper, Scott_WUaS, Wong128hk, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org