Your window into the Elastic Stack
Find a file
Viduni Wickramarachchi 6d5acfca0d
[Obs AI Assistant] Delete user instruction if text is empty (#221560)
Closes https://github.com/elastic/kibana/issues/220342

## Summary

As of today, when the user clears the user instruction, the entry is not
deleted. Instead the text is cleared from the entry. This has caused
problems in the past.

This PR implements the change where, if a user clears the user
instruction, the entry will be deleted.

Note: Entry deletion via functional tests appears to be flaky due to
issues with clearing the instruction from the editor. Therefore, to
avoid introducing a flaky test, this was covered via a unit test. Added
functional tests to cover scenarios such as creating an instruction,
editing an instruction.

### Screen recording


https://github.com/user-attachments/assets/35a530ca-5a96-4a17-a4b8-d0e4002c1120


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [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] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [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)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-27 17:12:39 -04:00
.buildkite Stateful Deployment-Agnostic FTR Config for AI Assistant (#221469) 2025-05-27 11:39:10 +02:00
.devcontainer Upgrade to Storybook 8 (#195148) 2025-03-14 15:41:03 -07:00
.github [MVP] Product Intercept Dialog (#209571) 2025-05-27 16:57:58 +02:00
api_docs [api-docs] 2025-05-27 Daily api_docs build (#221569) 2025-05-27 08:25:42 +02:00
config [AI SOC] Grant fleet (v1) access to see integrations in Search AI Lake tier (#221189) 2025-05-24 13:48:44 +02:00
dev_docs [Authz] Cleanup of access tags functionality and documentation (#220231) 2025-05-22 08:45:17 +02:00
docs [Docs] Remove outdated settings yaml file (#221630) 2025-05-27 13:17:45 -04:00
examples [Discover] Persist tabs in local storage and sync selected tab ID with URL (#217706) 2025-05-27 23:32:56 +03:00
kbn_pm [ci] Minor quick-checks updates (#215856) 2025-04-08 09:26:14 +02:00
legacy_rfcs
licenses
oas_docs [OAS] Update x-state behaviour to include availability.since (#221137) 2025-05-27 11:47:08 +02:00
packages [MVP] Product Intercept Dialog (#209571) 2025-05-27 16:57:58 +02:00
plugins
scripts [Inference] Instrument inference with OpenTelemetry (#218694) 2025-05-07 11:44:29 +02:00
src [Discover] Persist tabs in local storage and sync selected tab ID with URL (#217706) 2025-05-27 23:32:56 +03:00
typings
x-pack [Obs AI Assistant] Delete user instruction if text is empty (#221560) 2025-05-27 17:12:39 -04:00
.backportrc.json chore(NA): prepare replacement of 8.x branch with 8.19 (#218514) 2025-04-17 04:02:40 +01:00
.bazelignore
.bazeliskversion
.bazelrc
.bazelrc.common
.bazelversion
.browserslistrc
.editorconfig
.eslintignore chore(fullstory): serve the snippet as an asset (#220368) 2025-05-07 23:06:24 +02:00
.eslintrc.js [ska][x-pack] relocate platform tests [4] (#219691) 2025-05-07 19:13:04 +02:00
.gitattributes
.gitignore Remove .swn file (#217795) 2025-04-10 11:23:22 +02:00
.i18nrc.json [Discover] Support Lens fetches across tabs (#218506) 2025-05-02 13:39:25 -03:00
.node-version
.npmrc
.nvmrc
.prettierignore
.prettierrc
.puppeteerrc
.stylelintignore
.stylelintrc
.telemetryrc.json
.yarnrc
BUILD.bazel
catalog-info.yaml
CODE_OF_CONDUCT.md
CONTRIBUTING.md Docs: fix broken links in CONTRIBUTING.md (#219158) 2025-04-24 17:25:00 -06:00
FAQ.md
fleet_packages.json [main] Sync bundled packages with Package Storage (#221619) 2025-05-27 18:08:49 +03:00
github_checks_reporter.json
kibana.d.ts
LICENSE.txt
NOTICE.txt
package.json [dashboard] developer console logging to view dashboard unsaved changes (#221027) 2025-05-27 14:15:40 -06:00
preinstall_check.js
README.md
renovate.json [chore] Remove unused color libraries from renovate (#221603) 2025-05-27 16:36:45 +02:00
RISK_MATRIX.mdx
run_fleet_setup_parallel.sh
SECURITY.md
sonar-project.properties
STYLEGUIDE.mdx
tsconfig.base.json [MVP] Product Intercept Dialog (#209571) 2025-05-27 16:57:58 +02:00
tsconfig.browser.json
tsconfig.browser_bazel.json
tsconfig.json
TYPESCRIPT.md
updatecli-compose.yaml
versions.json chore(NA): update versions after v9.0.2 bump (#220254) 2025-05-07 03:23:40 +01:00
WORKSPACE.bazel
yarn.lock [MVP] Product Intercept Dialog (#209571) 2025-05-27 16:57:58 +02:00

Kibana

Kibana is your window into the Elastic Stack. Specifically, it's a browser-based analytics and search dashboard for Elasticsearch.

Getting Started

If you just want to try Kibana out, check out the Elastic Stack Getting Started Page to give it a whirl.

If you're interested in diving a bit deeper and getting a taste of Kibana's capabilities, head over to the Kibana Getting Started Page.

Using a Kibana Release

If you want to use a Kibana release in production, give it a test run, or just play around:

Building and Running Kibana, and/or Contributing Code

You might want to build Kibana locally to contribute some code, test out the latest features, or try out an open PR:

Documentation

Visit Elastic.co for the full Kibana documentation.

For information about building the documentation, see the README in elastic/docs.

Version Compatibility with Elasticsearch

Ideally, you should be running Elasticsearch and Kibana with matching version numbers. If your Elasticsearch has an older version number or a newer major number than Kibana, then Kibana will fail to run. If Elasticsearch has a newer minor or patch number than Kibana, then the Kibana Server will log a warning.

Note: The version numbers below are only examples, meant to illustrate the relationships between different types of version numbers.

Situation Example Kibana version Example ES version Outcome
Versions are the same. 7.15.1 7.15.1 💚 OK
ES patch number is newer. 7.15.0 7.15.1 ⚠️ Logged warning
ES minor number is newer. 7.14.2 7.15.0 ⚠️ Logged warning
ES major number is newer. 7.15.1 8.0.0 🚫 Fatal error
ES patch number is older. 7.15.1 7.15.0 ⚠️ Logged warning
ES minor number is older. 7.15.1 7.14.2 🚫 Fatal error
ES major number is older. 8.0.0 7.15.1 🚫 Fatal error

Questions? Problems? Suggestions?

  • If you've found a bug or want to request a feature, please create a GitHub Issue. Please check to make sure someone else hasn't already created an issue for the same topic.
  • Need help using Kibana? Ask away on our Kibana Discuss Forum and a fellow community member or Elastic engineer will be glad to help you out.