Page MenuHomePhabricator

Get rid of wgEchoConfig hack for qunit tests
Closed, ResolvedPublic


		// Provide info for the Overlay

		if ( $user->isLoggedIn() ) {
			$vars['wgEchoConfig'] = $wgEchoConfig;
		} elseif (
			$outputPage->getTitle()->equals( SpecialPage::getTitleFor( 'JavaScriptTest', 'qunit' ) ) ||
			// Also if running from /plain or /export
			$outputPage->getTitle()->isSubpageOf( SpecialPage::getTitleFor( 'JavaScriptTest', 'qunit' ) )
		) {
			// For testing purposes
			$vars['wgEchoConfig'] = array(
				'eventlogging' => array(
					'EchoInteraction' => array(),

We should not need to do this on the PHP side.

Event Timeline

Legoktm raised the priority of this task from to Needs Triage.
Legoktm updated the task description. (Show Details)
Legoktm added subscribers: Legoktm, Mooeypoo.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald Transcript
Krinkle added a subscriber: Krinkle.

(For the record, still there anno 2017)

Change 448101 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/extensions/Echo@master] Remove $wgEchoEventLoggingSchemas qunit hack

Change 448101 merged by jenkins-bot:
[mediawiki/extensions/Echo@master] Remove $wgEchoEventLoggingSchemas qunit hack

Krinkle assigned this task to Legoktm.
Krinkle removed a project: Patch-For-Review.