Fix conflict between timelion.ui.enabled yml setting and timelion feature control (#35266)

* Merge duplicate injectDefaultVars in timelion plugin definition.

* Enable timelion app in x-pack functional tests.
This commit is contained in:
Luke Elmers 2019-04-29 17:43:05 -06:00 committed by GitHub
parent e1c3903860
commit efcfc8e73e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 15 deletions

View file

@ -46,16 +46,21 @@ export default function (kibana) {
main: 'plugins/timelion/app',
},
styleSheetPaths: resolve(__dirname, 'public/index.scss'),
injectDefaultVars(server) {
return {
timelionUiEnabled: server.config().get('timelion.ui.enabled'),
};
},
hacks: [
'plugins/timelion/hacks/toggle_app_link_in_nav',
'plugins/timelion/lib/panel_registry',
'plugins/timelion/panels/timechart/timechart'
],
injectDefaultVars(server) {
return {
timelionUiEnabled: server.config().get('timelion.ui.enabled'),
uiCapabilities: {
timelion: {
save: true,
}
}
};
},
visTypes: [
'plugins/timelion/vis'
],
@ -64,15 +69,6 @@ export default function (kibana) {
'plugins/timelion/register_feature'
],
mappings: require('./mappings.json'),
injectDefaultVars() {
return {
uiCapabilities: {
timelion: {
save: true,
}
}
};
},
uiSettingDefaults: {
'timelion:showTutorial': {
name: i18n.translate('timelion.uiSettings.showTutorialLabel', {

View file

@ -191,7 +191,8 @@ export default async function ({ readConfigFile }) {
'--xpack.xpack_main.telemetry.enabled=false',
'--xpack.maps.showMapsInspectorAdapter=true',
'--xpack.security.encryptionKey="wuGNaIhoMpk5sO4UBxgr3NyW1sFcLgIf"', // server restarts should not invalidate active sessions
'--xpack.code.security.enableGitCertCheck=false' // Disable git certificate check
'--xpack.code.security.enableGitCertCheck=false', // Disable git certificate check
'--timelion.ui.enabled=true',
],
},
uiSettings: {