[GenAI Connectors] Resolves missing dashboard link in edit tab#221209
[GenAI Connectors] Resolves missing dashboard link in edit tab#221209stephmilovic merged 4 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/security-solution (Team: SecuritySolution) |
ymao1
left a comment
There was a problem hiding this comment.
Response Ops changes LGTM. Code review only.
x-pack/platform/plugins/shared/actions/server/lib/gen_ai_token_tracking.ts
Show resolved
Hide resolved
x-pack/platform/plugins/shared/actions/server/lib/gen_ai_token_tracking.test.ts
Outdated
Show resolved
Hide resolved
…_tracking.test.ts Co-authored-by: Angela Chuang <6295984+angorayc@users.noreply.github.com>
…ovic/kibana into genai_connector_dashboard_fixes
💛 Build succeeded, but was flaky
Failed CI Steps
Test Failures
Metrics [docs]Async chunks
Page load bundle
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
|
|
Starting backport for target branches: 8.19 https://github.com/elastic/kibana/actions/runs/15191658119 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
…ic#221209) (cherry picked from commit 5623f65) # Conflicts: # x-pack/platform/plugins/shared/triggers_actions_ui/public/plugin.ts
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
1 similar comment
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…#221209) (#221287) # Backport This will backport the following commits from `main` to `8.19`: - [[GenAI Connectors] Resolves missing dashboard link in edit tab (#221209)](#221209) <!--- Backport version: 10.0.0 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Steph Milovic","email":"stephanie.milovic@elastic.co"},"sourceCommit":{"committedDate":"2025-05-22T16:15:32Z","message":"[GenAI Connectors] Resolves missing dashboard link in edit tab (#221209)","sha":"5623f654aa8bdb11eff5c0b9f4a3c7dff2aba8c4","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team: SecuritySolution","Team:Security Generative AI","backport:version","v9.1.0","v8.19.0"],"title":"[GenAI Connectors] Resolves missing dashboard link in edit tab","number":221209,"url":"https://github.com/elastic/kibana/pull/221209","mergeCommit":{"message":"[GenAI Connectors] Resolves missing dashboard link in edit tab (#221209)","sha":"5623f654aa8bdb11eff5c0b9f4a3c7dff2aba8c4"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/221209","number":221209,"mergeCommit":{"message":"[GenAI Connectors] Resolves missing dashboard link in edit tab (#221209)","sha":"5623f654aa8bdb11eff5c0b9f4a3c7dff2aba8c4"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Summary
I was noticing some issues around the dashboard link in GenAI connectors. It was not appearing in the connector edit view. Additionally, when some connector types tried to get token telemetry off of the
getDashboardsubaction resulting in an error:Error log resolution
I resolved the error log by adding a check to skip token telemetry if the action is
getDashboardas this action never invokes a model.Missing link resolution
I noticed that this line hand changed from
dashboard.locatorto use something called theshareservice in this PR: #212968. It seems that the share plugin was not properly initialized intriger_actions_ui/public/plugin.ts, so I added it there and this fixed the issue with the dashboard link missing.To test
Response did not contain usage objectno longer appears