kibana/x-pack/plugins/searchprofiler
Spencer 369bef316a
[eslint] require final newline (#32265)
We have had `insert_final_newline = true` in our `.editorconfig` file since April 2015, but never validated it with eslint. I'm a little tired of extra changes showing up in PRs because some people use editors which respect the `.editorconfig` file and some don't, so I figured we might want to enable the rule in eslint so that the can be autofixed.

Votes requested please :)
2019-02-28 18:01:29 -08:00
..
public [eslint] require final newline (#32265) 2019-02-28 18:01:29 -08:00
server [eslint] require final newline (#32265) 2019-02-28 18:01:29 -08:00
index.js
README.md

Profiler

A UI for the query and aggregation profiler in Elasticsearch

Development

Assuming you've checked out x-plugins next to kibana...

  • Run yarn kbn bootstrap
  • Run yarn start to watch for and sync files on change
  • Open a new terminal to run Kibana - use yarn start to launch it in dev mode
    • Kibana will automatically restart as files are synced
    • If you need debugging output, run DEBUG=reporting yarn start instead

If you have installed this somewhere other than via x-plugins, and next to the kibana repo, you'll need to change the pathToKibana setting in gulpfile.js

Testing

To run the server tests, change into x-plugins/kibana and run:

mocha --debug --compilers js:babel/register plugins/profiler/**/__tests__/**/*.js

--kbnServer.tests_bundle.pluginId