Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix CI #6

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
*/

import _ from 'lodash';
import { SavedObjectsClientProvider } from 'ui/saved_objects';
import { npStart } from 'ui/new_platform';

export function ArgValueSuggestionsProvider(Private, indexPatterns) {

const savedObjectsClient = Private(SavedObjectsClientProvider);
export function ArgValueSuggestionsProvider() {
const { indexPatterns } = npStart.plugins.data;
const { client: savedObjectsClient } = npStart.core.savedObjects;

async function getIndexPattern(functionArgs) {
const indexPatternArg = functionArgs.find(argument => {
Expand Down
7 changes: 3 additions & 4 deletions src/legacy/ui/public/saved_objects/saved_object.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import { InvalidJSONProperty, SavedObjectNotFound, expandShorthand } from '../..

import { SearchSource } from '../courier';
import { findObjectByTitle } from './find_object_by_title';
import { SavedObjectsClientProvider } from './saved_objects_client_provider';
import { migrateLegacyQuery } from '../utils/migrate_legacy_query';
import { npStart } from 'ui/new_platform';
import { i18n } from '@kbn/i18n';
Expand Down Expand Up @@ -66,9 +65,9 @@ function isErrorNonFatal(error) {
return error.message === OVERWRITE_REJECTED || error.message === SAVE_DUPLICATE_REJECTED;
}

export function SavedObjectProvider(Promise, Private, confirmModalPromise, indexPatterns) {
const savedObjectsClient = Private(SavedObjectsClientProvider);

export function SavedObjectProvider(Promise, Private, confirmModalPromise) {
const { indexPatterns } = npStart.plugins.data;
const { client: savedObjectsClient } = npStart.core.savedObjects;
/**
* The SavedObject class is a base class for saved objects loaded from the server and
* provides additional functionality besides loading/saving/deleting/etc.
Expand Down