Skip to content

Commit

Permalink
remove hiding query template config for ml search req processors
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]>
  • Loading branch information
ohltyler committed Nov 11, 2024
1 parent b9d03f0 commit 96b01c9
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,17 +487,7 @@ export function MLProcessorInputs(props: MLProcessorInputsProps) {
<EuiSpacer size="s" />
<ConfigFieldList
configId={props.config.id}
configFields={
// For ML search request processors, we don't expose the optional query_template field, since we have a dedicated
// UI for configuring that. See override_query_modal.tsx for details.
props.context === PROCESSOR_CONTEXT.SEARCH_REQUEST
? [
...(props.config.optionalFields?.filter(
(optionalField) => optionalField.id !== 'query_template'
) || []),
]
: props.config.optionalFields || []
}
configFields={props.config.optionalFields || []}
baseConfigPath={props.baseConfigPath}
/>
</EuiAccordion>
Expand Down

0 comments on commit 96b01c9

Please sign in to comment.