-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into remove-injected-vars-from-maps-legacy
- Loading branch information
Showing
43 changed files
with
980 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...t/public/application/components/shared/components/wizard_steps/step_aliases_container.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
import React from 'react'; | ||
|
||
import { Forms } from '../../../../../shared_imports'; | ||
import { CommonWizardSteps } from './types'; | ||
import { StepAliases } from './step_aliases'; | ||
|
||
interface Props { | ||
esDocsBase: string; | ||
} | ||
|
||
export const StepAliasesContainer: React.FunctionComponent<Props> = ({ esDocsBase }) => { | ||
const { defaultValue, updateContent } = Forms.useContent<CommonWizardSteps>('aliases'); | ||
|
||
return ( | ||
<StepAliases defaultValue={defaultValue} onChange={updateContent} esDocsBase={esDocsBase} /> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
.../public/application/components/shared/components/wizard_steps/step_settings_container.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
import React from 'react'; | ||
|
||
import { Forms } from '../../../../../shared_imports'; | ||
import { CommonWizardSteps } from './types'; | ||
import { StepSettings } from './step_settings'; | ||
|
||
interface Props { | ||
esDocsBase: string; | ||
} | ||
|
||
export const StepSettingsContainer = React.memo(({ esDocsBase }: Props) => { | ||
const { defaultValue, updateContent } = Forms.useContent<CommonWizardSteps>('settings'); | ||
|
||
return ( | ||
<StepSettings defaultValue={defaultValue} onChange={updateContent} esDocsBase={esDocsBase} /> | ||
); | ||
}); |
13 changes: 13 additions & 0 deletions
13
...ns/index_management/public/application/components/shared/components/wizard_steps/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { Mappings, IndexSettings, Aliases } from '../../../../../../common'; | ||
|
||
export interface CommonWizardSteps { | ||
settings?: IndexSettings; | ||
mappings?: Mappings; | ||
aliases?: Aliases; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
...x_management/public/application/components/template_form/steps/step_aliases_container.tsx
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
..._management/public/application/components/template_form/steps/step_settings_container.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { loggingSystemMock, savedObjectsServiceMock } from 'src/core/server/mocks'; | ||
import { IngestManagerAppContext } from './plugin'; | ||
import { encryptedSavedObjectsMock } from '../../encrypted_saved_objects/server/mocks'; | ||
import { securityMock } from '../../security/server/mocks'; | ||
import { DatasourceServiceInterface } from './services/datasource'; | ||
|
||
export const createAppContextStartContractMock = (): IngestManagerAppContext => { | ||
return { | ||
encryptedSavedObjectsStart: encryptedSavedObjectsMock.createStart(), | ||
savedObjects: savedObjectsServiceMock.createStartContract(), | ||
security: securityMock.createSetup(), | ||
logger: loggingSystemMock.create().get(), | ||
isProductionMode: true, | ||
kibanaVersion: '8.0.0', | ||
}; | ||
}; | ||
|
||
export const createDatasourceServiceMock = () => { | ||
return { | ||
assignPackageStream: jest.fn(), | ||
buildDatasourceFromPackage: jest.fn(), | ||
bulkCreate: jest.fn(), | ||
create: jest.fn(), | ||
delete: jest.fn(), | ||
get: jest.fn(), | ||
getByIDs: jest.fn(), | ||
list: jest.fn(), | ||
update: jest.fn(), | ||
} as jest.Mocked<DatasourceServiceInterface>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.