Skip to content

Commit

Permalink
Add imports for SavedObjectRegistryProvider.register, fixing Timelion (
Browse files Browse the repository at this point in the history
…#12844)

* Add imports for SavedObjectRegistryProvider.register, fixing timelion

* Undoing accidental change
  • Loading branch information
kobelb authored and spalger committed Jul 13, 2017
1 parent 58ef02c commit 8f34633
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { SavedObjectRegistryProvider } from 'ui/saved_objects/saved_object_registry';
import './saved_dashboards';

SavedObjectRegistryProvider.register((savedDashboards) => {
return savedDashboards;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { SavedObjectRegistryProvider } from 'ui/saved_objects/saved_object_registry';
import './saved_searches';


SavedObjectRegistryProvider.register((savedSearches) => {
return savedSearches;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { SavedObjectRegistryProvider } from 'ui/saved_objects/saved_object_registry';
import './saved_visualizations';

SavedObjectRegistryProvider.register((savedVisualizations) => {
return savedVisualizations;
Expand Down
5 changes: 4 additions & 1 deletion src/core_plugins/timelion/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ export default function (kibana) {
esShardTimeout: config.get('elasticsearch.shardTimeout'),
esApiVersion: config.get('elasticsearch.apiVersion')
};
}
},
uses: [
'savedObjectTypes',
]
},
hacks: [
'plugins/timelion/lib/panel_registry',
Expand Down
4 changes: 1 addition & 3 deletions src/core_plugins/timelion/public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ const app = require('ui/modules').get('apps/timelion', []);
require('plugins/timelion/services/saved_sheets');
require('plugins/timelion/services/_saved_sheet');

require('plugins/kibana/visualize/saved_visualizations/saved_visualizations');
require('plugins/kibana/discover/saved_searches/saved_searches');
require('./vis');

SavedObjectRegistryProvider.register(require('plugins/timelion/services/saved_sheet_register'));
Expand Down Expand Up @@ -61,7 +59,6 @@ app.controller('timelion', function (
kbnUrl,
Notifier,
Private,
savedVisualizations,
timefilter
) {

Expand All @@ -78,6 +75,7 @@ app.controller('timelion', function (
location: 'Timelion'
});

const savedVisualizations = Private(SavedObjectRegistryProvider).byLoaderPropertiesName.visualizations;
const timezone = Private(require('plugins/timelion/services/timezone'))();
const docTitle = Private(DocTitleProvider);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import './saved_sheets';

export default function savedSearchObjectFn(savedSheets) {
return savedSheets;
}

0 comments on commit 8f34633

Please sign in to comment.