kibana/x-pack/plugins
Larry Gregory d021f71f6f
Only log deprecation warning if xpack:defaultAdminEmail is actually set (#22774)
This PR fixes the logic for logging the deprecation warning introduced with https://github.com/elastic/kibana/pull/22765. Previously Kibana would log the warning if the new `xpack.monitoring.cluster_alerts.email_notifications.email_address` setting was not defined, regardless of `xpack:defaultAdminEmail`'s setting.

Now, we will only log the deprecation warning if all of the following are true:
1) `xpack.monitoring.cluster_alerts.email_notifications.email_address` is not set.
2) `xpack:defaultAdminEmail` is set. (**<-- this is the new part**)
3) We haven't already logged the deprecation warning
2018-09-07 10:06:35 -04:00
..
__mocks__ [APM] ML integration (#19791) 2018-07-04 14:18:19 +02:00
apm [APM] Fix broken links (#22592) 2018-09-06 15:50:45 +02:00
cloud Migrate x-pack-kibana source to kibana 2018-04-24 13:48:10 -07:00
console_extensions [DOCS] Updates links to role mapping APIs (#22167) 2018-08-24 09:06:23 -07:00
dashboard_mode Move timezone settings into autoload file (#22623) 2018-09-05 08:55:39 +02:00
graph Convert usage of notify.error to toastNotifications.addDanger for string messages (#22243) 2018-08-23 08:54:11 -07:00
grokdebugger Fix misspellings (#19981) 2018-06-26 20:17:41 -07:00
index_management When an index is deleted, and it's selected in the table, then it's removed from the selection. (#22242) 2018-08-23 08:27:22 -07:00
kuery_autocomplete Extract KQL autocomplete to a plugin (#20747) 2018-07-24 12:33:15 -07:00
license_management fixing license endpoint paths for proxy (#22133) 2018-08-17 12:41:50 -04:00
logstash Convert various uses of notifier to toastNotifications. (#20420) 2018-07-06 08:33:04 -07:00
ml [ML] Anomaly Explorer Charts jest tests. (#22759) 2018-09-07 10:03:28 +02:00
monitoring Only log deprecation warning if xpack:defaultAdminEmail is actually set (#22774) 2018-09-07 10:06:35 -04:00
notifications Fix misspellings (#19981) 2018-06-26 20:17:41 -07:00
reporting Fix #22581 by introducing an artificial delay (#22601) 2018-09-05 11:10:38 -04:00
searchprofiler Prune our usage of bootstrap (#21186) 2018-07-25 15:10:56 -07:00
security Fix missing email address on account screen (#22652) 2018-09-04 10:28:39 -04:00
tilemap Fix misspellings (#19981) 2018-06-26 20:17:41 -07:00
watcher Make Watcher table width 100% of the view (#21803) 2018-08-09 05:57:38 -07:00
xpack_main [Telemetry] Add beats architecture stats to telemetry (#21227) 2018-08-27 10:16:21 -04:00