Lucas_Werkmeister_WMDE added a comment.

  This is fairly simple to reproduce locally even without breakpoints; on your 
local repo wiki, create a new wiki page and then run the following code in the 
browser console:
  
    const params = { action: 'wbeditentity', new: 'item', data: JSON.stringify( 
{ sitelinks: { [ mw.config.get( 'wgDBname' ) ]: { site: mw.config.get( 
'wgDBname' ), title: mw.config.get( 'wgTitle' ) } } } ) };
    const api = new mw.Api();
    ( await Promise.all( [ api.postWithEditToken( params ), 
api.postWithEditToken( params ) ] ) ).map( response => response.entity.id );
  
  (Assuming the repo is configured to link to itself using its db name, 
otherwise you may need to tweak the sitelinks in the payload.)

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

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

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, M2k_dewiki, Mohammed_Sadat_WMDE, DannyS712, 
Mike_Peel, Lea_Lacroix_WMDE, Takasugi_Shinji, VIGNERON, Robby, Stashbot, 
Addshore, Nikki, Liuxinyu970226, aude, Aklapper, AnjaJentzsch, Abraham, jeblad, 
Legoktm, He7d3r, Merl, jayvdb, Denny, revi, matej_suchanek, Lydia_Pintscher, 
Beta16, daniel, hoo, Invadibot, maantietaja, Y.ssk, Muchiri124, CBogen, 
Akuckartz, Iflorez, alaa_wmde, Nandana, lucamauri, Lahi, Gq86, Ramsey-WMF, 
GoranSMilovanovic, QZanden, LawExplorer, Poyekhali, _jensen, rosalieper, 
Taiwania_Justo, Scott_WUaS, Ixocactus, Wong128hk, Wikidata-bugs, El_Grafo, 
Dinoguy1000, Steinsplitter, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to