-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ML] Transforms: Support to set destination ingest pipeline. #123911
Conversation
e1a2e7c
to
153cc5f
Compare
Pinging @elastic/ml-ui (:ml) |
} | ||
)} | ||
placeholder={i18n.translate( | ||
'xpack.transform.stepDetailsForm.destinationIngestPipelinComboBoxPlaceholder', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spotted the deliberate typo! Pipelin
!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha, fixed in d2250c1.
@@ -219,6 +219,10 @@ export const getCreateTransformRequestBody = ( | |||
: {}), | |||
dest: { | |||
index: transformDetailsState.destinationIndex, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
label={i18n.translate( | ||
'xpack.transform.stepDetailsForm.destinationIngestPipelineLabel', | ||
{ | ||
defaultMessage: 'Destination ingest pipeline', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, if I add a pipeline, hit Next, and then Previous, the pipeline is being forgotten. It also isn't being saved in the config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, some minor suggestions
@@ -46,6 +46,7 @@ import type { GetTransformsStatsResponseSchema } from '../../../common/api_schem | |||
import { TransformId } from '../../../common/types/transform'; | |||
import { API_BASE_PATH } from '../../../common/constants'; | |||
import { EsIndex } from '../../../common/types/es_index'; | |||
import { EsIngestPipeline } from '../../../common/types/es_ingest_pipeline'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
import { EsIngestPipeline } from '../../../common/types/es_ingest_pipeline'; | |
import type { EsIngestPipeline } from '../../../common/types/es_ingest_pipeline'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 4a93e66.
@@ -54,6 +59,26 @@ export const EditTransformFlyoutForm: FC<EditTransformFlyoutFormProps> = ({ | |||
[indexPatternId, indexPatternsClient] | |||
); | |||
|
|||
// fetch pipeline names once for form validation | |||
useEffect(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
useEffect(() => { | |
useEffect(function fetchPipelinesOnMount() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 4a93e66.
💚 Build SucceededMetrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @walterra |
Tested latest changes (with adding pipeline, navigating next and then previous, and cloning the transform) and LGTM. |
Summary
Part of #102594.
Checklist