mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
Reset state of pipeline flyout on close or completion (#155760)
## Summary Fixes a bug where adding a second pipeline would pop you into the last page of the previously added pipeline flyout.  ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
This commit is contained in:
parent
a3f66bdacf
commit
c0033a1b4b
1 changed files with 17 additions and 0 deletions
|
@ -66,6 +66,7 @@ import {
|
||||||
sortModels,
|
sortModels,
|
||||||
sortSourceFields,
|
sortSourceFields,
|
||||||
} from '../../../shared/ml_inference/utils';
|
} from '../../../shared/ml_inference/utils';
|
||||||
|
import { PipelinesLogic } from '../pipelines_logic';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
AddInferencePipelineFormErrors,
|
AddInferencePipelineFormErrors,
|
||||||
|
@ -227,6 +228,8 @@ export const MLInferenceLogic = kea<
|
||||||
'apiSuccess as attachApiSuccess',
|
'apiSuccess as attachApiSuccess',
|
||||||
'makeRequest as makeAttachPipelineRequest',
|
'makeRequest as makeAttachPipelineRequest',
|
||||||
],
|
],
|
||||||
|
PipelinesLogic,
|
||||||
|
['closeAddMlInferencePipelineModal as closeAddMlInferencePipelineModal'],
|
||||||
],
|
],
|
||||||
values: [
|
values: [
|
||||||
CachedFetchIndexApiLogic,
|
CachedFetchIndexApiLogic,
|
||||||
|
@ -348,6 +351,20 @@ export const MLInferenceLogic = kea<
|
||||||
selectedSourceFields: [],
|
selectedSourceFields: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
closeAddMlInferencePipelineModal: () => ({
|
||||||
|
configuration: {
|
||||||
|
...EMPTY_PIPELINE_CONFIGURATION,
|
||||||
|
},
|
||||||
|
indexName: '',
|
||||||
|
step: AddInferencePipelineSteps.Configuration,
|
||||||
|
}),
|
||||||
|
createApiSuccess: () => ({
|
||||||
|
configuration: {
|
||||||
|
...EMPTY_PIPELINE_CONFIGURATION,
|
||||||
|
},
|
||||||
|
indexName: '',
|
||||||
|
step: AddInferencePipelineSteps.Configuration,
|
||||||
|
}),
|
||||||
removeFieldFromMapping: (modal, { fieldName }) => {
|
removeFieldFromMapping: (modal, { fieldName }) => {
|
||||||
const {
|
const {
|
||||||
configuration: { fieldMappings },
|
configuration: { fieldMappings },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue