Skip to content

Kibana plugin status listeners should execute callback immediately when listener matches current state #4254

@simianhacker

Description

@simianhacker

When a listener is attached to a plugin's status for a color event and the plugin's current state is the same as the color event, the listener should be executed immediately.

server.plugin.elasticsearch.status.green("Kibana ready");
server.plugin.elasticsearch.status.on('green', function () {
  // Will never get called if the elasticsearch plugin never changes
  // status from green to red and back again.
});

Metadata

Metadata

Assignees

Labels

PR sentbugFixes for quality problems that affect the customer experiencev4.2.0

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions