Skip to content

[9.4] [Inference] Align getForFeature with useLoadConnectors logic (#264166)#264707

Merged
kibanamachine merged 1 commit intoelastic:9.4from
kibanamachine:backport/9.4/pr-264166
Apr 21, 2026
Merged

[9.4] [Inference] Align getForFeature with useLoadConnectors logic (#264166)#264707
kibanamachine merged 1 commit intoelastic:9.4from
kibanamachine:backport/9.4/pr-264166

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.4:

Questions ?

Please refer to the Backport tool documentation

…#264166)

## Summary

This applies the correct behave to the getForFeature function, which was
not yet doing this.

- When `defaultOnly` is set, only the default connector is returned (or
an empty list if the default is missing, unset, or set to the
`NO_DEFAULT_CONNECTOR` sentinel).
- When the feature has no admin SO override, the default connector is
prepended to the resolved endpoints and deduplicated.
- When an SO override exists for the feature, the default is ignored so
admin intent wins.

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 90e9aae)
@kibanamachine kibanamachine merged commit d7bad43 into elastic:9.4 Apr 21, 2026
20 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @sphilipse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants