Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
[pluginApi] expose support flags
Browse files Browse the repository at this point in the history
With elastic#5871 we removed support for configuration-based autoloading and moved to require-based autoloading. This change is difficult for plugin authors to make in a backwards compatible way so I thought
it would make sense to start helping plugin authors know which features are/are not available to them with a simple collection of "supports" flags. For now it just shows that `autoload: false`, so that
plugins can expose an alternate main file which includes the autoloads they require
  • Loading branch information
spalger committed Jan 19, 2016
1 parent d2b4297 commit 172e0f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/plugins/PluginApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ module.exports = class PluginApi {
this.rootDir = kibana.rootDir;
this.package = require(join(pluginPath, 'package.json'));
this.Plugin = Plugin.scoped(kibana, pluginPath, this.package);

this.support = {
autoload: false
};
}

get uiExports() {
Expand Down

0 comments on commit 172e0f3

Please sign in to comment.