Align Automatic Migrations connector resolution with Assistant and Agent Builder#259840
Open
logeekal wants to merge 2 commits intoelastic:mainfrom
Open
Align Automatic Migrations connector resolution with Assistant and Agent Builder#259840logeekal wants to merge 2 commits intoelastic:mainfrom
logeekal wants to merge 2 commits intoelastic:mainfrom
Conversation
…ent Builder Switch SIEM Migrations from the old loadAllActions connector loading path (which returns preconfigured YAML keys as IDs) to the inference plugin's connector resolution (which returns inference_id-based connector IDs), fixing "Saved object not found" errors with preconfigured inference connectors. Made-with: Cursor
sphilipse
approved these changes
Mar 26, 2026
Contributor
⏳ Build in-progress, with failures
Failed CI StepsTest Failures
History |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Aligns Automatic Migrations (SIEM Migrations) with the same connector resolution scheme used by Assistant and Agent Builder.
After #258530, Automatic Migrations was still using the old connector loading path (
loadAllActionsfrom triggers-actions-ui), which returns preconfigured connector YAML keys (e.g.,Anthropic-Claude-Opus-4-6) as connector IDs. This meant theconnectorIdpassed tonaturalLanguageToEsqlwas amodel_id(old scheme) instead of theinference_id, resulting in aSaved object [action/.anthropic-claude-4.6-opus-chat_completion] not founderror.This PR switches Automatic Migrations to use the inference plugin's connector resolution (same as Assistant and Agent Builder), which returns
inference_id-based connector IDs.Changes
useAIConnectors/loadAiConnectorswithuseLoadConnectors/loadConnectorsForFeaturefrom@kbn/inference-connectors(scoped tofeatureId: 'siem_migrations')actionsClient.get()withinferenceClient.getConnectorById()in rules and dashboards start routes@kbn/inference-connectors: ExtractedloadConnectorsForFeatureas a reusable stateless function fromuseLoadConnectorsTest plan
--
Made with Cursor