Skip to content

[Obs AI] Hide AI Insight component when there are no connectors#248542

Merged
viduni94 merged 1 commit intoelastic:mainfrom
viduni94:check-existing-connectors-ai-insight
Jan 9, 2026
Merged

[Obs AI] Hide AI Insight component when there are no connectors#248542
viduni94 merged 1 commit intoelastic:mainfrom
viduni94:check-existing-connectors-ai-insight

Conversation

@viduni94
Copy link
Copy Markdown
Contributor

@viduni94 viduni94 commented Jan 9, 2026

Closes https://github.com/elastic/obs-ai-team/issues/461

Summary

The AI Insight component was being shown when there are no connectors, resulting in an error when the component is clicked to fetch AI Insights.

This PR fixes it by hiding the component, when there are no connectors set up.

Checklist

  • Unit or functional tests were updated or added to match the most common scenarios
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines
  • Review the backport guidelines and apply applicable backport:* labels.

@viduni94 viduni94 self-assigned this Jan 9, 2026
@viduni94 viduni94 added the backport:version Backport to applied version labels label Jan 9, 2026
@viduni94 viduni94 requested a review from a team as a code owner January 9, 2026 21:05
@viduni94 viduni94 added v9.3.0 Team:obs-ai Observability AI team v9.4.0 labels Jan 9, 2026
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ai-team (Team:obs-ai)

@viduni94 viduni94 added the release_note:skip Skip the PR/issue when compiling release notes label Jan 9, 2026
@viduni94 viduni94 enabled auto-merge (squash) January 9, 2026 22:30
@viduni94 viduni94 disabled auto-merge January 9, 2026 22:47
@viduni94 viduni94 enabled auto-merge (squash) January 9, 2026 22:47
@viduni94 viduni94 merged commit e586a39 into elastic:main Jan 9, 2026
28 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 9.3

https://github.com/elastic/kibana/actions/runs/20868153248

@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #1 / ChangePasswordModal render disables submit button when passwords do not match
  • [job] [logs] Jest Tests #1 / ChangePasswordModal render when rendered for current user disables submit button when passwords do not match
  • [job] [logs] FTR Configs #119 / Cloud Security Posture POST /internal/cloud_security_posture/graph Happy flows Enrich graph with entity metadata "before all" hook for "should contain entity data when asset inventory is enabled"
  • [job] [logs] Jest Tests #1 / ES deprecations table pagination allows the number of viewable rows to change
  • [job] [logs] Jest Tests #1 / ES deprecations table pagination maintains correct row state across pagination
  • [job] [logs] Jest Tests #1 / ES deprecations table pagination updates pagination on search
  • [job] [logs] Jest Tests #1 / ES deprecations table pagination updates pagination when filters change

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
observabilityAgentBuilder 57 58 +1

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
observabilityAgentBuilder 51 52 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
observabilityAgentBuilder 15.5KB 15.8KB +215.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
observabilityAgentBuilder 6.3KB 6.4KB +68.0B
Unknown metric groups

API count

id before after diff
observabilityAgentBuilder 51 52 +1

cc @viduni94

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
9.3 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 248542

Questions ?

Please refer to the Backport tool documentation

viduni94 added a commit to viduni94/kibana that referenced this pull request Jan 10, 2026
…tic#248542)

Closes elastic/obs-ai-team#461

## Summary

The AI Insight component was being shown when there are no connectors,
resulting in an error when the component is clicked to fetch AI
Insights.

This PR fixes it by hiding the component, when there are no connectors
set up.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

(cherry picked from commit e586a39)

# Conflicts:
#	x-pack/solutions/observability/plugins/observability_agent_builder/public/components/ai_insight/ai_insight.tsx
#	x-pack/solutions/observability/plugins/observability_agent_builder/public/types.ts
@viduni94
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
9.3

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

viduni94 added a commit that referenced this pull request Jan 10, 2026
…#248542) (#248565)

# Backport

This will backport the following commits from `main` to `9.3`:
- [[Obs AI] Hide AI Insight component when there are no connectors
(#248542)](#248542)

<!--- Backport version: 10.2.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Viduni
Wickramarachchi","email":"viduni.wickramarachchi@elastic.co"},"sourceCommit":{"committedDate":"2026-01-09T23:05:01Z","message":"[Obs
AI] Hide AI Insight component when there are no connectors
(#248542)\n\nCloses
https://github.com/elastic/obs-ai-team/issues/461\n\n## Summary\n\nThe
AI Insight component was being shown when there are no
connectors,\nresulting in an error when the component is clicked to
fetch AI\nInsights.\n\nThis PR fixes it by hiding the component, when
there are no connectors\nset up.\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"e586a3927b42e5a13c3710e2162b6dba03cfb77c","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:version","v9.3.0","Team:obs-ai","v9.4.0"],"title":"[Obs
AI] Hide AI Insight component when there are no
connectors","number":248542,"url":"https://github.com/elastic/kibana/pull/248542","mergeCommit":{"message":"[Obs
AI] Hide AI Insight component when there are no connectors
(#248542)\n\nCloses
https://github.com/elastic/obs-ai-team/issues/461\n\n## Summary\n\nThe
AI Insight component was being shown when there are no
connectors,\nresulting in an error when the component is clicked to
fetch AI\nInsights.\n\nThis PR fixes it by hiding the component, when
there are no connectors\nset up.\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"e586a3927b42e5a13c3710e2162b6dba03cfb77c"}},"sourceBranch":"main","suggestedTargetBranches":["9.3"],"targetPullRequestStates":[{"branch":"9.3","label":"v9.3.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/248542","number":248542,"mergeCommit":{"message":"[Obs
AI] Hide AI Insight component when there are no connectors
(#248542)\n\nCloses
https://github.com/elastic/obs-ai-team/issues/461\n\n## Summary\n\nThe
AI Insight component was being shown when there are no
connectors,\nresulting in an error when the component is clicked to
fetch AI\nInsights.\n\nThis PR fixes it by hiding the component, when
there are no connectors\nset up.\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"e586a3927b42e5a13c3710e2162b6dba03cfb77c"}}]}]
BACKPORT-->
devamanv pushed a commit to devamanv/kibana that referenced this pull request Jan 12, 2026
…tic#248542)

Closes https://github.com/elastic/obs-ai-team/issues/461

## Summary

The AI Insight component was being shown when there are no connectors,
resulting in an error when the component is clicked to fetch AI
Insights.

This PR fixes it by hiding the component, when there are no connectors
set up.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.
mbondyra added a commit to mbondyra/kibana that referenced this pull request Jan 12, 2026
* commit 'c4304e27736c62f17af20d145770b2ae9d3fae30': (418 commits)
  skip failing suite (elastic#89079)
  [ES|QL] Update grammars (elastic#248600)
  skip failing test suite (elastic#248579)
  [ES|QL] Update function metadata (elastic#248601)
  skip failing test suite (elastic#248554)
  Fix flaky test runner serverless flag for Search solution (elastic#248559)
  [Security Solution][Attacks/Alerts][Attacks page][Table section] Remember last selected attack details tab (Summary or Alerts) (elastic#247519) (elastic#247988)
  Fix ES health check poller (elastic#248496)
  Fix collector schema ownership (elastic#241292)
  [api-docs] 2026-01-10 Daily api_docs build (elastic#248574)
  Update dependency cssstyle to v5.3.5 (main) (elastic#237637)
  Update dependency @octokit/rest to v22.0.1 (main) (elastic#243102)
  skip failing test suite (elastic#248504)
  skip failing test suite (elastic#247685)
  Remove broken ecommerce_dashboard journeys (elastic#248162)
  [Obs AI] Hide AI Insight component when there are no connectors (elastic#248542)
  skip failing suite (elastic#248433)
  [Security Solution][Attacks/Alerts][Attacks page][Table section] Hide tabs for generic attack groups (elastic#248444)
  [Agent Builder] [AI Infra] Adds product documentation tool and task evals (elastic#248370)
  [Controls Anywhere] Keep controls focused when creating + editing other panels (elastic#248021)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:obs-ai Observability AI team v9.3.0 v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants