# <?php

include_once "$IP/extensions/CirrusSearch/tests/jenkins/FullyFeaturedConfig.php";
$wgCirrusSearchExtraIndexes[ NS_FILE ] = array( 'commonswiki_file' );

$wgMWLoggerDefaultSpi['args'][0]['loggers']['CirrusSearchRequestSet'] = array(
	'handlers' => array( 'kafka' ),
	'processors' => array(),
	'calls' => array()
);

$wgMWLoggerDefaultSpi['args'][0]['handlers']['kafka'] = array(
	'factory' => '\\MediaWiki\\Logger\\Monolog\\KafkaHandler::factory',
	'args' => array(
		array( 'localhost:9092' ),
		array(
			'alias' => array(),
			'swallowExceptions' => false,
			'logExceptions' => null,
		)
	),
	'formatter' => 'avro',
);

$wgMWLoggerDefaultSpi['args'][0]['formatters']['avro'] = array(
	'class' => '\\MediaWiki\\Logger\\Monolog\\AvroFormatter',
	'args' => array(
		array(
			'CirrusSearchRequestSet' => array(
				'schema' => file_get_contents(
					"<%= scope['::service::root_dir'] %>/event-schemas/avro/mediawiki/CirrusSearchRequestSet/111448028943.avsc"
				),
				'revision' => 111448028943,
			),
		),
	),
);

# <?php

include_once "$IP/extensions/CirrusSearch/tests/jenkins/FullyFeaturedConfig.php";
$wgCirrusSearchExtraIndexes[ NS_FILE ] = array( 'commonswiki_file' );

$wgMWLoggerDefaultSpi['args'][0]['loggers']['CirrusSearchRequestSet'] = array(
	'handlers' => array( 'kafka' ),
	'processors' => array(),
	'calls' => array()
);

$wgMWLoggerDefaultSpi['args'][0]['handlers']['kafka'] = array(
	'factory' => '\\MediaWiki\\Logger\\Monolog\\KafkaHandler::factory',
	'args' => array(
		array( 'localhost:9092' ),
		array(
			'alias' => array(),
			'swallowExceptions' => false,
			'logExceptions' => null,
		)
	),
	'formatter' => 'avro',
);

$wgMWLoggerDefaultSpi['args'][0]['formatters']['avro'] = array(
	'class' => '\\MediaWiki\\Logger\\Monolog\\AvroFormatter',
	'args' => array(
		array(
			'CirrusSearchRequestSet' => array(
				'schema' => file_get_contents(
					"<%= scope['::service::root_dir'] %>/event-schemas/avro/mediawiki/CirrusSearchRequestSet/121456865906.avsc"
				),
				'revision' => 121456865906,
			),
		),
	),
);

Update CirrusSearchRequestSet schema to latest version
Update CirrusSearchRequestSet schema to latest version

Depends-On: I1f194cc318c18e7c292c5450ea011811de8df204
Change-Id: I3bbc1e809a40a408c820a43f651c0624cf9675c5
Bug: T128533
