Description
Original comment by @ycombinator:
When users have a license that does not support Watcher, and they try to navigate to a Watcher UI route, they get redirected to the Management landing page (as expected) but get a double Notifier notification about the license.
Steps to reproduce
-
Disable Reporting in
kibana.yml
by settingxpack.reporting.enabled: false
. This prevents a polling Reporting XHR call from detecting the change to Basic license, refreshing Kibana, and removing the Watcher link from the Management landing page (as Watcher is not available for the Basic license). Restart the Kibana server. -
Install a Basic (development build) license.
-
Wait for up to 30 seconds for Kibana to pick up the new license change from Elasticsearch. Alternatively, watch the Kibana server log for a message like this:
server log [22:22:15.027] [info][license][xpack] Imported license information from Elasticsearch: mode: basic | status: active | expiry date: 2030-08-29T16:59:59-07:00
-
Open Kibana in your browser and navigate to the Management landing page.
-
Make sure that there is no Watcher link shown (as Watcher is not available for the Basic license).
-
Try navigating directly to the Watch List page: http://localhost:5601/app/kibana#/management/elasticsearch/watcher/watches
Observed
The user is redirected back to the Management landing page and two Notifier messages are shown about the basic license not supporting Watcher.
Expected
The user is redirected back to the Management landing page and a single Notifier message is shown about the basic license not supporting Watcher.