Lucie added a comment.

We figured you'd have to replace the function removeData() in the 
MediaWiki:Guidedtour-lib.js 
<https://www.wikidata.org/wiki/MediaWiki:Guidedtour-lib.js> with

        function removeData( tourName, newData ) {
                mw.loader.using( 'mediawiki.api.edit', function() {
   
                        new mw.Api()
                        .postWithEditToken( {
                                action: 'wbeditentity',
                                id: mw.config.get( 'wbEntityId' ),
                                clear: true,
                                data: JSON.stringify( newData ),
                                summary: 'Clearing data for [[Wikidata:Tours#' 
+ tourName + '|' + tourName + ']] tour'
                        } )
                        .done( function() {
                                location.href += '&data=ok';
                        } );
                });
        }

so the module mediawiki.api.edit is loaded, which is needed for 
.postWithEditToken. 
Might not be the whole solution but at least we will be able to see the tour at 
all and can see how to proceed from there.
I don't have the necessary rights to change the page on Wikidata, so if someone 
could have a look into it would be great!


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

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
<username>.

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

To: Lucie
Cc: JanZerebecki, Bene, thiemowmde, adrianheine, Snaterlicious, Aklapper, 
Lucie, Lydia_Pintscher, hoo, Wikidata-bugs, aude



_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to