Lucas_Werkmeister_WMDE added a comment.

  > Hm, it reports results too:
  > …
  > the status is reported as “not implemented”
  
  Note that the API won’t return such results by default, but you can ask for 
them with `status=*` (see API sandbox for details):
  
  
https://commons.wikimedia.beta.wmflabs.org/w/api.php?action=wbcheckconstraints&format=json&id=M99899&status=*
  
  Currently, this returns an internal error, “InvalidArgumentException: 
$idSerialization must match /^Q[1-9]\\d{0,9}\\z/i”, at 
`CheckResultsRenderer:76`:
  
    $typeLabel = $this->entityIdLabelFormatter->formatEntityId( new ItemId( 
$typeItemId ) );
  
  I assume that’s due to the `"One of"` constraint type of the first result 
(`"One of"` not being a valid Item ID serialization), and it would probably be 
fixed by clearing and reimporting the constraint definitions table, as 
mentioned in the previous comment.

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

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

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Addshore, Cparle, Aklapper, darthmon_wmde, Nandana, 
Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, 
Agabi10, Scott_WUaS, Jonas, abian, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to