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

[EPM] Packages list tabs #60167

Merged
merged 8 commits into from
Mar 17, 2020
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix import paths (again)
jen-huang committed Mar 16, 2020
commit fd29a139b9ca6e2cf37d8364fe32ac11a599ebed
2 changes: 1 addition & 1 deletion x-pack/plugins/ingest_manager/common/types/models/agent.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { SavedObjectAttributes } from 'kibana/public';
import { SavedObjectAttributes } from 'src/core/public';
import { AGENT_TYPE_EPHEMERAL, AGENT_TYPE_PERMANENT, AGENT_TYPE_TEMPORARY } from '../../constants';

export type AgentType =
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { SavedObjectAttributes } from 'kibana/public';
import { SavedObjectAttributes } from 'src/core/public';
import {
Datasource,
DatasourcePackage,
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { SavedObjectAttributes } from 'kibana/public';
import { SavedObjectAttributes } from 'src/core/public';

export interface EnrollmentAPIKey {
id: string;
2 changes: 1 addition & 1 deletion x-pack/plugins/ingest_manager/common/types/models/epm.ts
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@

// Follow pattern from https://github.com/elastic/kibana/pull/52447
// TODO: Update when https://github.com/elastic/kibana/issues/53021 is closed
import { SavedObject, SavedObjectAttributes, SavedObjectReference } from 'kibana/public';
import { SavedObject, SavedObjectAttributes, SavedObjectReference } from 'src/core/public';

export enum InstallationStatus {
installed = 'installed',
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { ChromeBreadcrumb } from 'kibana/public';
import { ChromeBreadcrumb } from 'src/core/public';
import { useCore } from './use_core';

export function useBreadcrumbs(newBreadcrumbs: ChromeBreadcrumb[]) {
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
*/

import React, { useContext } from 'react';
import { CoreStart } from 'kibana/public';
import { CoreStart } from 'src/core/public';

export const CoreContext = React.createContext<CoreStart | null>(null);

Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { HttpFetchQuery } from 'kibana/public';
import { HttpFetchQuery } from 'src/core/public';
import { useRequest, sendRequest } from './use_request';
import { agentConfigRouteService } from '../../services';
import {
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { HttpFetchQuery } from 'kibana/public';
import { HttpFetchQuery } from 'src/core/public';
import { useRequest, sendRequest } from './use_request';
import { epmRouteService } from '../../services';
import {
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { HttpSetup } from 'kibana/public';
import { HttpSetup } from 'src/core/public';
import {
SendRequestConfig,
SendRequestResponse,
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ import { useObservable } from 'react-use';
import { HashRouter as Router, Redirect, Switch, Route, RouteProps } from 'react-router-dom';
import { FormattedMessage } from '@kbn/i18n/react';
import { EuiErrorBoundary } from '@elastic/eui';
import { CoreStart, AppMountParameters } from 'kibana/public';
import { CoreStart, AppMountParameters } from 'src/core/public';
import { EuiThemeProvider } from '../../../../../legacy/common/eui_styled_components';
import {
IngestManagerSetupDeps,
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@

import createContainer from 'constate';
import React, { useCallback, useState } from 'react';
import { NotificationsStart } from 'kibana/public';
import { NotificationsStart } from 'src/core/public';
import { useLinks } from '.';
import { toMountPoint } from '../../../../../../../../../src/plugins/kibana_react/public';
import { PackageInfo } from '../../../types';
2 changes: 1 addition & 1 deletion x-pack/plugins/ingest_manager/public/index.ts
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { PluginInitializerContext } from 'kibana/public';
import { PluginInitializerContext } from 'src/core/public';
import { IngestManagerPlugin } from './plugin';

export const plugin = (initializerContext: PluginInitializerContext) => {
2 changes: 1 addition & 1 deletion x-pack/plugins/ingest_manager/public/plugin.ts
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ import {
Plugin,
PluginInitializerContext,
CoreStart,
} from 'kibana/public';
} from 'src/core/public';
import { i18n } from '@kbn/i18n';
import { DEFAULT_APP_CATEGORIES } from '../../../../src/core/utils';
import { DataPublicPluginSetup, DataPublicPluginStart } from '../../../../src/plugins/data/public';
2 changes: 1 addition & 1 deletion x-pack/plugins/ingest_manager/server/index.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import { schema, TypeOf } from '@kbn/config-schema';
import { PluginInitializerContext } from 'kibana/server';
import { PluginInitializerContext } from 'src/core/server';
import { IngestManagerPlugin } from './plugin';

export const config = {
2 changes: 1 addition & 1 deletion x-pack/plugins/ingest_manager/server/plugin.ts
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ import {
Plugin,
PluginInitializerContext,
SavedObjectsServiceStart,
} from 'kibana/server';
} from 'src/core/server';
import { LicensingPluginSetup } from '../../licensing/server';
import { EncryptedSavedObjectsPluginStart } from '../../encrypted_saved_objects/server';
import { SecurityPluginSetup } from '../../security/server';
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { RequestHandler, KibanaRequest } from 'kibana/server';
import { RequestHandler, KibanaRequest } from 'src/core/server';
import { TypeOf } from '@kbn/config-schema';
import {
GetAgentsResponse,
2 changes: 1 addition & 1 deletion x-pack/plugins/ingest_manager/server/routes/agent/index.ts
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { IRouter } from 'kibana/server';
import { IRouter } from 'src/core/server';
import { PLUGIN_ID, AGENT_API_ROUTES } from '../../constants';
import {
GetAgentsRequestSchema,
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import { TypeOf } from '@kbn/config-schema';
import { RequestHandler } from 'kibana/server';
import { RequestHandler } from 'src/core/server';
import bluebird from 'bluebird';
import { appContextService, agentConfigService, datasourceService } from '../../services';
import { listAgents } from '../../services/agents';
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { IRouter } from 'kibana/server';
import { IRouter } from 'src/core/server';
import { PLUGIN_ID, AGENT_CONFIG_API_ROUTES } from '../../constants';
import {
GetAgentConfigsRequestSchema,
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import { TypeOf } from '@kbn/config-schema';
import { RequestHandler } from 'kibana/server';
import { RequestHandler } from 'src/core/server';
import { appContextService, datasourceService } from '../../services';
import { ensureInstalledPackage } from '../../services/epm/packages';
import {
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { IRouter } from 'kibana/server';
import { IRouter } from 'src/core/server';
import { PLUGIN_ID, DATASOURCE_API_ROUTES } from '../../constants';
import {
GetDatasourcesRequestSchema,
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { RequestHandler } from 'kibana/server';
import { RequestHandler } from 'src/core/server';
import { TypeOf } from '@kbn/config-schema';
import {
GetEnrollmentAPIKeysRequestSchema,
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { IRouter } from 'kibana/server';
import { IRouter } from 'src/core/server';
import { PLUGIN_ID, ENROLLMENT_API_KEY_ROUTES } from '../../constants';
import {
GetEnrollmentAPIKeysRequestSchema,
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import { TypeOf } from '@kbn/config-schema';
import { RequestHandler, CustomHttpResponseOptions } from 'kibana/server';
import { RequestHandler, CustomHttpResponseOptions } from 'src/core/server';
import {
GetPackagesRequestSchema,
GetFileRequestSchema,
2 changes: 1 addition & 1 deletion x-pack/plugins/ingest_manager/server/routes/epm/index.ts
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { IRouter } from 'kibana/server';
import { IRouter } from 'src/core/server';
import { PLUGIN_ID, EPM_API_ROUTES } from '../../constants';
import {
getCategoriesHandler,
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import url from 'url';
import { IRouter, BasePath, HttpServerInfo, KibanaRequest } from 'kibana/server';
import { IRouter, BasePath, HttpServerInfo, KibanaRequest } from 'src/core/server';
import { INSTALL_SCRIPT_API_ROUTES } from '../../constants';
import { getScript } from '../../services/install_script';
import { InstallScriptRequestSchema } from '../../types';
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import { TypeOf } from '@kbn/config-schema';
import { RequestHandler } from 'kibana/server';
import { RequestHandler } from 'src/core/server';
import { outputService, agentConfigService } from '../../services';
import { CreateFleetSetupRequestSchema, CreateFleetSetupResponse } from '../../types';
import { setup } from '../../services/setup';
2 changes: 1 addition & 1 deletion x-pack/plugins/ingest_manager/server/routes/setup/index.ts
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { IRouter } from 'kibana/server';
import { IRouter } from 'src/core/server';
import { PLUGIN_ID, FLEET_SETUP_API_ROUTES, SETUP_API_ROUTE } from '../../constants';
import { GetFleetSetupRequestSchema, CreateFleetSetupRequestSchema } from '../../types';
import {
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import { uniq } from 'lodash';
import { SavedObjectsClientContract } from 'kibana/server';
import { SavedObjectsClientContract } from 'src/core/server';
import { AuthenticatedUser } from '../../../security/server';
import { DEFAULT_AGENT_CONFIG, AGENT_CONFIG_SAVED_OBJECT_TYPE } from '../constants';
import {
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { SavedObjectsClientContract } from 'kibana/server';
import { SavedObjectsClientContract } from 'src/core/server';
import { generateEnrollmentAPIKey, deleteEnrollmentApiKeyForConfigId } from './api_keys';
import { updateAgentsForConfigId, unenrollForConfigId } from './agents';

Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { SavedObjectsClientContract } from 'kibana/server';
import { SavedObjectsClientContract } from 'src/core/server';
import { Agent, AgentSOAttributes } from '../../types';
import { AGENT_SAVED_OBJECT_TYPE } from '../../constants';

Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { SavedObjectsClientContract, SavedObjectsBulkCreateObject } from 'kibana/server';
import { SavedObjectsClientContract, SavedObjectsBulkCreateObject } from 'src/core/server';
import uuid from 'uuid';
import {
Agent,
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
*/

import Boom from 'boom';
import { SavedObjectsClientContract } from 'kibana/server';
import { SavedObjectsClientContract } from 'src/core/server';
import {
AGENT_SAVED_OBJECT_TYPE,
AGENT_EVENT_SAVED_OBJECT_TYPE,
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
*/

import Boom from 'boom';
import { SavedObjectsClientContract } from 'kibana/server';
import { SavedObjectsClientContract } from 'src/core/server';
import { AgentType, Agent, AgentSOAttributes } from '../../types';
import { savedObjectToAgent } from './saved_objects';
import { AGENT_SAVED_OBJECT_TYPE } from '../../constants';
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { SavedObjectsClientContract } from 'kibana/server';
import { SavedObjectsClientContract } from 'src/core/server';
import { AGENT_EVENT_SAVED_OBJECT_TYPE } from '../../constants';
import { AgentEventSOAttributes, AgentEvent } from '../../types';

Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { SavedObject } from 'kibana/server';
import { SavedObject } from 'src/core/server';
import { Agent, AgentSOAttributes } from '../../types';

export function savedObjectToAgent(so: SavedObject<AgentSOAttributes>): Agent {
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { SavedObjectsClientContract } from 'kibana/server';
import { SavedObjectsClientContract } from 'src/core/server';
import { listAgents } from './crud';
import { AGENT_EVENT_SAVED_OBJECT_TYPE } from '../../constants';
import { AgentStatus, Agent } from '../../types';
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { SavedObjectsClientContract } from 'kibana/server';
import { SavedObjectsClientContract } from 'src/core/server';
import { AgentSOAttributes } from '../../types';
import { AGENT_SAVED_OBJECT_TYPE } from '../../constants';

Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { SavedObjectsClientContract } from 'kibana/server';
import { SavedObjectsClientContract } from 'src/core/server';
import { listAgents } from './crud';
import { AGENT_SAVED_OBJECT_TYPE } from '../../constants';
import { unenrollAgents } from './unenroll';
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
*/

import uuid from 'uuid';
import { SavedObjectsClientContract, SavedObject } from 'kibana/server';
import { SavedObjectsClientContract, SavedObject } from 'src/core/server';
import { EnrollmentAPIKey, EnrollmentAPIKeySOAttributes } from '../../types';
import { ENROLLMENT_API_KEYS_SAVED_OBJECT_TYPE } from '../../constants';
import { createAPIKey, invalidateAPIKey } from './security';
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { SavedObjectsClientContract, SavedObject, KibanaRequest } from 'kibana/server';
import { SavedObjectsClientContract, SavedObject, KibanaRequest } from 'src/core/server';
import { ENROLLMENT_API_KEYS_SAVED_OBJECT_TYPE } from '../../constants';
import { EnrollmentAPIKeySOAttributes, EnrollmentAPIKey } from '../../types';
import { createAPIKey } from './security';
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { KibanaRequest, FakeRequest, SavedObjectsClientContract } from 'kibana/server';
import { KibanaRequest, FakeRequest, SavedObjectsClientContract } from 'src/core/server';
import { CallESAsCurrentUser } from '../../types';
import { appContextService } from '../app_context';
import { outputService } from '../output';
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
*/
import { BehaviorSubject, Observable } from 'rxjs';
import { first } from 'rxjs/operators';
import { SavedObjectsServiceStart } from 'kibana/server';
import { SavedObjectsServiceStart } from 'src/core/server';
import { EncryptedSavedObjectsPluginStart } from '../../../encrypted_saved_objects/server';
import { SecurityPluginSetup } from '../../../security/server';
import { IngestManagerConfigType } from '../../common';
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { SavedObjectsClientContract } from 'kibana/server';
import { SavedObjectsClientContract } from 'src/core/server';
import { AuthenticatedUser } from '../../../security/server';
import { DeleteDatasourcesResponse, packageToConfigDatasource } from '../../common';
import { DATASOURCE_SAVED_OBJECT_TYPE } from '../constants';
Loading