Page MenuHomePhabricator

Tours are broken
Closed, ResolvedPublic


The tours are broken currently as described at

Related Objects


Event Timeline

Lydia_Pintscher raised the priority of this task from to High.
Lydia_Pintscher updated the task description. (Show Details)
Lydia_Pintscher moved this task from incoming to ready to go on the Wikidata board.
Lydia_Pintscher set Security to None.

@Lucie Is this something you could look into?

We figured you'd have to replace the function removeData() in the 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!

Bene* fixed them. I had a look on it and they seem to work properly again now.