Jump to content

User:Phuedx/Metrics Platform/Getting Started/Hacking On Metrics Platform

From Wikitech
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

EventLogging

The Metrics Platform MediaWiki integration lives in the EventLogging MediaWiki extension (herein "EventLogging") since EventLogging is the de-facto Event Platform Client for MediaWiki. So if you want to hack on the Metrics Platform MediaWiki integration, then you need a working EventLogging installation, which you can get by following the instructions at mw:MediaWiki-Docker/Configuration_recipes/EventLogging#Event_Platform.

JS

PHP

Create mediawiki/extensions/EventLogging/composer.local.json with the following contents:

{
  "repositories": [
    {
	  "type": "path",
	  "@comment": "Either an absolute path or a path relative to the mediawiki/composer.json file.",
	  "url": "/path/to/metrics-platform",
	  "options": {
	    "symlink": false
      }
	}
  ],
  "require": {
    "wikimedia/metrics-platform": "dev-master"
  }
}

Run composer update in the mediawiki directory.

JS

PHP

Java

https://www.youtube.com/watch?v=tMZx4zrrngc is a short video explaining how to set up IntelliJ IDEA so that you can start hacking on the Java MPC.

Swift