eranroz added a comment.

  In T259211#6347466 <https://phabricator.wikimedia.org/T259211#6347466>, 
@Ladsgroup wrote:
  
  > but in the mean time you can still mark `jquery.wikibase.linkitem` as the 
dependency instead and use the global variable but I don't recommend it.
  
  This by itself won't work as the dependencies aren't defined correctly
  
    mw.loader.load('jquery.wikibase.linkitem')
    Exception in module-execute in module jquery.wikibase.linkitem: 
load.php:2:530
    TypeError: "repoConfig is null"
  
  
  
  In T259211#6347466 <https://phabricator.wikimedia.org/T259211#6347466>, 
@Ladsgroup wrote:
  
  > Hey,
  > Technically it's intentional. RepoApi is a bad module. It's confusing 
(which repo? Commons is also a repo) and doesn't bring much value (you can use 
`mw.Api` instead in WMF, as the URL to wikidata.org likely won't change) and 
having an extra module brings its own cost.
  > ...
  > I highly recommend not using this module anymore. Also according to stable 
interface policy 
<https://www.wikidata.org/wiki/Wikidata:Stable_Interface_Policy>, javascript 
code is unstable and prone to change with prior notice
  
  I don't find RepoApi as bad module - it is just convenient JS wrapper for PHP 
api  and aligns with how MW core is doing with mediawiki.api.  From client side 
(client in the meaning of browser, not in the meaning of Wikibase client) it is 
really useful as you can find it in entityChangers or any other client side  
Wikidata code. When there are multiple consumers for API module, it is better 
to split it from the UI module IMO.

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

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

To: eranroz
Cc: Lydia_Pintscher, 0x010C, vlsergey, Krinkle, Lucas_Werkmeister_WMDE, 
Ladsgroup, Aklapper, eranroz, Akuckartz, darthmon_wmde, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to