Skip to content

Commit

Permalink
Fix conflict between timelion.ui.enabled yml setting and timelion fea…
Browse files Browse the repository at this point in the history
…ture control (#35266) (#35765)

* Merge duplicate injectDefaultVars in timelion plugin definition.

* Enable timelion app in x-pack functional tests.
  • Loading branch information
lukeelmers authored Apr 30, 2019
1 parent 0997045 commit d0a9881
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
24 changes: 10 additions & 14 deletions src/legacy/core_plugins/timelion/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,33 +46,29 @@ 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'
],
visTypes: [
'plugins/timelion/vis'
],
interpreter: ['plugins/timelion/timelion_vis_fn'],
home: [
'plugins/timelion/register_feature'
],
mappings: require('./mappings.json'),
injectDefaultVars() {
injectDefaultVars(server) {
return {
timelionUiEnabled: server.config().get('timelion.ui.enabled'),
uiCapabilities: {
timelion: {
save: true,
}
}
};
},
visTypes: [
'plugins/timelion/vis'
],
interpreter: ['plugins/timelion/timelion_vis_fn'],
home: [
'plugins/timelion/register_feature'
],
mappings: require('./mappings.json'),
uiSettingDefaults: {
'timelion:showTutorial': {
name: i18n.translate('timelion.uiSettings.showTutorialLabel', {
Expand Down
3 changes: 2 additions & 1 deletion x-pack/test/functional/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit d0a9881

Please sign in to comment.