[Ingest Pipelines] add "keep" option to remove processor#225638
Conversation
|
Pinging @elastic/kibana-management (Team:Kibana Management) |
sabarasaba
left a comment
There was a problem hiding this comment.
Tested locally with test documents and UI works well! I left few comments, let me know what you think
...ublic/application/components/pipeline_editor/components/processor_form/processors/remove.tsx
Outdated
Show resolved
Hide resolved
...ublic/application/components/pipeline_editor/components/processor_form/processors/remove.tsx
Outdated
Show resolved
Hide resolved
...ublic/application/components/pipeline_editor/components/processor_form/processors/remove.tsx
Outdated
Show resolved
Hide resolved
florent-leborgne
left a comment
There was a problem hiding this comment.
Hey @damian-polewski. Leaving a few suggestions that hopefully make sense. In general:
- Try to use active voice whenever possible
- Do not add help text unless there is something specific to say or hint.
Another comment that's not purely text related is the way to switch between remove and keep modes. I don't know if it's very clear. Perhaps that's an established pattern in processor forms like this? If it is, then please disregard this comment:
My own recommendation would be to have radio buttons before the field, where:
- the first and default option selected is "Define fields to remove"
- the second is "Define fields to keep".
Or see my comments inline to try to make this new option clearer with just wording tweaks.
Last and connected to this: The docs page indicates that "fields" is required but it seems that it's rather fields OR keep that is required, looking at the exemples.
This might be good to note in the docs.

...ublic/application/components/pipeline_editor/components/processor_form/processors/remove.tsx
Outdated
Show resolved
Hide resolved
...ublic/application/components/pipeline_editor/components/processor_form/processors/remove.tsx
Outdated
Show resolved
Hide resolved
...ublic/application/components/pipeline_editor/components/processor_form/processors/remove.tsx
Outdated
Show resolved
Hide resolved
...ublic/application/components/pipeline_editor/components/processor_form/processors/remove.tsx
Outdated
Show resolved
Hide resolved
...ublic/application/components/pipeline_editor/components/processor_form/processors/remove.tsx
Outdated
Show resolved
Hide resolved
|
@sabarasaba @florent-leborgne Thank you for your feedback! I made changes according to your suggestions! @florent-leborgne regarding your other questions:
|
| helpText: i18n.translate( | ||
| 'xpack.ingestPipelines.pipelineEditor.removeForm.fieldNameHelpText', | ||
| { | ||
| defaultMessage: 'You can use plain text or template snippets.', |
There was a problem hiding this comment.
If we're not going to show an example of what a template snippet looks like, we could link to the docs
florent-leborgne
left a comment
There was a problem hiding this comment.
Updated copy LGTM, thanks!
💚 Build Succeeded
Metrics [docs]Async chunks
History
|
) Adds elastic#223117 ## Summary This PR introduces support for `keep` option in the [Remove processor](https://www.elastic.co/docs/reference/enrich-processor/remove-processor).
Adds #223117
Summary
This PR introduces support for
keepoption in the Remove processor.Updated field
New toggle has been added that allows user to switch from using
fieldtokeepoption and change the processor behavior.fieldkeepUpdated description
Description of the processor has been adjusted to reflect used option.
Demo
Screen.Recording.2025-06-27.at.16.02.05.mov
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesbackport:*labels.Release note
The remove processor in the ingest pipelines now supports "keep" option.