Lucas_Werkmeister_WMDE added a comment.
Restricted Application added a project: Core Platform Team.


  In T212069#4827851 <https://phabricator.wikimedia.org/T212069#4827851>, 
@Anomie wrote:
  
  > Relevant  code for this specific example: 
https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Wikibase/+/6eea7f8d5e52a528877748391e3fae965f752018/repo/includes/Api/ResultBuilder.php#1019.
 Changing that `""` to `true` should do it, although with how complicated 
Wikibase's code is I can't say for sure.
  
  That would only change `"missing"` from `""` to `true`, I think, whereas the 
example in the task description also has `entities` change from an object to an 
array. This is analogous to the change of `query`’s `titles` in MediaWiki core 
(which the JSON v2 documentation 
<https://www.mediawiki.org/wiki/Special:PermanentLink/3390083#Changes_to_JSON_output_format>
 describes as specific to that API module).
  
  However, that would be a //massive// breaking change to `wbgetentities`, even 
more so than changing `claims` to `statements`, which was previously discussed 
in T149410 <https://phabricator.wikimedia.org/T149410> – I can’t imagine any 
use of `wbgetentities` that would be unaffected by this. It //might// be 
something to consider for a hypothetical `formatversion=3` – though even then, 
I’m not convinced of its usefulness, since entity IDs are much less internal 
than `query/titles`’ page IDs, and once you have multiple entities in the 
response an array is arguably less useful than an object – but I don’t think we 
should make such a change for `formatversion=2`.

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

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

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, WMDE-leszek, alaa_wmde, Mvolz, Anomie, Aklapper, 
Yurik, darthmon_wmde, WDoranWMF, holger.knust, EvanProdromou, DannyS712, 
Nandana, Amorymeltzer, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, 
Sethakill, dg711, _jensen, rosalieper, Agabi10, Pchelolo, Wikidata-bugs, aude, 
jayvdb, Mbch331, Legoktm
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to