Lucas_Werkmeister_WMDE added a comment.

  Still can’t reproduce it when I try to make two concurrent `wblremoveform` 
requests locally – one succeeds and the other returns a proper “not found” 
error, without crashing:
  
    ( async function() {
      const api = new mw.Api();
      const lexemeId = ( await api.postWithEditToken( {
        action: 'wbeditentity',
        new: 'lexeme',
        data: JSON.stringify( {
          lexicalCategory: 'Q11',
          language: 'Q11',
          lemmas: {
            en: { language: 'en', value: `T326768 ${new Date().toISOString()}` 
},
          },
          forms: [ {
            add: '',
            representations: {
              en: { language: 'en', value: `T326768 ${new 
Date().toISOString()}` },
            },
            grammaticalFeatures: [],
          } ],
        } ),
        summary: 'T326768',
      } ) ).entity.id;
      const deleteForm = () => api.postWithEditToken( {
        action: 'wblremoveform',
        id: `${lexemeId}-F1`,
      } );
      await Promise.all( [ deleteForm(), deleteForm() ] );
    } )();
  
  (You might need to change the language and lexical category to a different 
item ID than Q11 depending on what your local wiki looks like.)

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

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

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, ItamarWMDE, Michael, Aklapper, jeena, 
Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, Akuckartz, darthmon_wmde, 
Rosalie_WMDE, Nandana, Lahi, Gq86, GoranSMilovanovic, Mahir256, QZanden, 
LawExplorer, _jensen, rosalieper, Scott_WUaS, Verdy_p, Wikidata-bugs, aude, 
Jdforrester-WMF, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to