Skip to content

[Watcher] Revert back to using .watches system index#223898

Merged
ElenaStoeva merged 4 commits intoelastic:mainfrom
ElenaStoeva:revert-204296-218853
Jun 16, 2025
Merged

[Watcher] Revert back to using .watches system index#223898
ElenaStoeva merged 4 commits intoelastic:mainfrom
ElenaStoeva:revert-204296-218853

Conversation

@ElenaStoeva
Copy link
Contributor

@ElenaStoeva ElenaStoeva commented Jun 13, 2025

Fixes #221820
Fixes #220879

Summary

This PR reverts #204296 and #218853 as these PRs caused issues in the UI due to limitations in the Query Watches API. Therefore, we are temporarily reverting back to fetching watches through the .watches system index until we have better support from the Query Watches API.

How to test:

  1. Start Es with yarn es snapshot --license=trial and Kibana with yarn start (no need to test in serverless as Watcher is not available there.
  2. Navigate to Stack Management -> Watcher and create multiple watches (the more, the better). Make sure you create watches of different types (advanced/json or threshold), watches with or without names, etc. There are different watches and use cases described in the documentation. Also, adding sample data sets is helpful so that you can get watches to execute and have values under the "Condition last met" and "Last checked" columns.
  3. After creating various watches, open the table with watches and make sure that all functionalities work correctly. For example:
  • All watches are displayed, check with >10 watches and different page sizes.
  • Sorting works for all columns.
  • Search bar works as expected and searching by partial id is supported.
  • Deleting watches updates the table correctly.
watcher.mov

Release notes:

This update resolves multiple issues in Watcher UI that were introduced in 8.18.0, 8.18.1, 9.0.0, and 9.1.0, including the table not displaying more than 10 watches, an error banner appearing unexpectedly in certain scenarios, and the search bar functionality not working as expected.

@ElenaStoeva ElenaStoeva self-assigned this Jun 13, 2025
@ElenaStoeva ElenaStoeva requested a review from a team as a code owner June 13, 2025 11:48
@ElenaStoeva ElenaStoeva added release_note:fix Feature:Watcher Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// backport:version Backport to applied version labels v9.1.0 v8.19.0 v9.0.3 v8.18.3 labels Jun 13, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-management (Team:Kibana Management)

@ElenaStoeva ElenaStoeva changed the title Revert 204296 218853 Jun 13, 2025
@ElenaStoeva ElenaStoeva changed the title [Watcher] Revert PR#204296 and PR#218853 Jun 13, 2025
Copy link
Member

@sabarasaba sabarasaba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code changes lgtm, tested locally

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
watcher 157.0KB 156.7KB -248.0B

History

cc @ElenaStoeva

@ElenaStoeva ElenaStoeva merged commit 5c0b6b0 into elastic:main Jun 16, 2025
10 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.18, 8.19, 9.0

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 16, 2025
Fixes elastic#221820
Fixes elastic#220879

## Summary

This PR reverts elastic#204296 and
elastic#218853 as these PRs caused issues
in the UI due to limitations in the Query Watches API. Therefore, we are
temporarily reverting back to fetching watches through the `.watches`
system index until we have better support from the Query Watches API.

**How to test:**
1. Start Es with `yarn es snapshot --license=trial` and Kibana with
`yarn start` (no need to test in serverless as Watcher is not available
there.
2. Navigate to Stack Management -> Watcher and create multiple watches
(the more, the better). Make sure you create watches of different types
(advanced/json or threshold), watches with or without names, etc. There
are different watches and use cases described in the
[documentation](https://www.elastic.co/docs/explore-analyze/alerts-cases/watcher).
Also, adding sample data sets is helpful so that you can get watches to
execute and have values under the "Condition last met" and "Last
checked" columns.
3. After creating various watches, open the table with watches and make
sure that all functionalities work correctly. For example:
- All watches are displayed, check with >10 watches and different page
sizes.
- Sorting works for all columns.
- Search bar works as expected and searching by partial id is supported.
- Deleting watches updates the table correctly.

https://github.com/user-attachments/assets/d0da9c24-7389-481d-8a16-a0d01bda0e80

## Release notes:
This update resolves multiple issues in Watcher UI that were introduced
in 8.18.0, 8.18.1, 9.0.0, and 9.1.0, including the table not displaying
more than 10 watches, an error banner appearing unexpectedly in certain
scenarios, and the search bar functionality not working as expected.

(cherry picked from commit 5c0b6b0)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 16, 2025
Fixes elastic#221820
Fixes elastic#220879

## Summary

This PR reverts elastic#204296 and
elastic#218853 as these PRs caused issues
in the UI due to limitations in the Query Watches API. Therefore, we are
temporarily reverting back to fetching watches through the `.watches`
system index until we have better support from the Query Watches API.

**How to test:**
1. Start Es with `yarn es snapshot --license=trial` and Kibana with
`yarn start` (no need to test in serverless as Watcher is not available
there.
2. Navigate to Stack Management -> Watcher and create multiple watches
(the more, the better). Make sure you create watches of different types
(advanced/json or threshold), watches with or without names, etc. There
are different watches and use cases described in the
[documentation](https://www.elastic.co/docs/explore-analyze/alerts-cases/watcher).
Also, adding sample data sets is helpful so that you can get watches to
execute and have values under the "Condition last met" and "Last
checked" columns.
3. After creating various watches, open the table with watches and make
sure that all functionalities work correctly. For example:
- All watches are displayed, check with >10 watches and different page
sizes.
- Sorting works for all columns.
- Search bar works as expected and searching by partial id is supported.
- Deleting watches updates the table correctly.

https://github.com/user-attachments/assets/d0da9c24-7389-481d-8a16-a0d01bda0e80

## Release notes:
This update resolves multiple issues in Watcher UI that were introduced
in 8.18.0, 8.18.1, 9.0.0, and 9.1.0, including the table not displaying
more than 10 watches, an error banner appearing unexpectedly in certain
scenarios, and the search bar functionality not working as expected.

(cherry picked from commit 5c0b6b0)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 16, 2025
Fixes elastic#221820
Fixes elastic#220879

## Summary

This PR reverts elastic#204296 and
elastic#218853 as these PRs caused issues
in the UI due to limitations in the Query Watches API. Therefore, we are
temporarily reverting back to fetching watches through the `.watches`
system index until we have better support from the Query Watches API.

**How to test:**
1. Start Es with `yarn es snapshot --license=trial` and Kibana with
`yarn start` (no need to test in serverless as Watcher is not available
there.
2. Navigate to Stack Management -> Watcher and create multiple watches
(the more, the better). Make sure you create watches of different types
(advanced/json or threshold), watches with or without names, etc. There
are different watches and use cases described in the
[documentation](https://www.elastic.co/docs/explore-analyze/alerts-cases/watcher).
Also, adding sample data sets is helpful so that you can get watches to
execute and have values under the "Condition last met" and "Last
checked" columns.
3. After creating various watches, open the table with watches and make
sure that all functionalities work correctly. For example:
- All watches are displayed, check with >10 watches and different page
sizes.
- Sorting works for all columns.
- Search bar works as expected and searching by partial id is supported.
- Deleting watches updates the table correctly.

https://github.com/user-attachments/assets/d0da9c24-7389-481d-8a16-a0d01bda0e80

## Release notes:
This update resolves multiple issues in Watcher UI that were introduced
in 8.18.0, 8.18.1, 9.0.0, and 9.1.0, including the table not displaying
more than 10 watches, an error banner appearing unexpectedly in certain
scenarios, and the search bar functionality not working as expected.

(cherry picked from commit 5c0b6b0)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.18
8.19
9.0

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jun 16, 2025
…224080)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Watcher] Revert back to using .watches system index
(#223898)](#223898)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Elena
Stoeva","email":"59341489+ElenaStoeva@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-06-16T14:26:24Z","message":"[Watcher]
Revert back to using .watches system index (#223898)\n\nFixes
https://github.com/elastic/kibana/issues/221820\nFixes
https://github.com/elastic/kibana/issues/220879\n\n## Summary\n\nThis PR
reverts #204296
and\nhttps://github.com//pull/218853 as these PRs caused
issues\nin the UI due to limitations in the Query Watches API.
Therefore, we are\ntemporarily reverting back to fetching watches
through the `.watches`\nsystem index until we have better support from
the Query Watches API.\n\n**How to test:**\n1. Start Es with `yarn es
snapshot --license=trial` and Kibana with\n`yarn start` (no need to test
in serverless as Watcher is not available\nthere.\n2. Navigate to Stack
Management -> Watcher and create multiple watches\n(the more, the
better). Make sure you create watches of different types\n(advanced/json
or threshold), watches with or without names, etc. There\nare different
watches and use cases described in
the\n[documentation](https://www.elastic.co/docs/explore-analyze/alerts-cases/watcher).\nAlso,
adding sample data sets is helpful so that you can get watches
to\nexecute and have values under the \"Condition last met\" and
\"Last\nchecked\" columns.\n3. After creating various watches, open the
table with watches and make\nsure that all functionalities work
correctly. For example:\n- All watches are displayed, check with >10
watches and different page\nsizes.\n- Sorting works for all columns.\n-
Search bar works as expected and searching by partial id is
supported.\n- Deleting watches updates the table
correctly.\n\n\nhttps://github.com/user-attachments/assets/d0da9c24-7389-481d-8a16-a0d01bda0e80\n\n##
Release notes:\nThis update resolves multiple issues in Watcher UI that
were introduced\nin 8.18.0, 8.18.1, 9.0.0, and 9.1.0, including the
table not displaying\nmore than 10 watches, an error banner appearing
unexpectedly in certain\nscenarios, and the search bar functionality not
working as
expected.","sha":"5c0b6b0fe7c08b20a6cc540b0e90b8106147b54a","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Watcher","Team:Kibana
Management","backport:version","v9.1.0","v8.19.0","v9.0.3","v8.18.3"],"title":"[Watcher]
Revert back to using .watches system
index","number":223898,"url":"https://github.com/elastic/kibana/pull/223898","mergeCommit":{"message":"[Watcher]
Revert back to using .watches system index (#223898)\n\nFixes
https://github.com/elastic/kibana/issues/221820\nFixes
https://github.com/elastic/kibana/issues/220879\n\n## Summary\n\nThis PR
reverts #204296
and\nhttps://github.com//pull/218853 as these PRs caused
issues\nin the UI due to limitations in the Query Watches API.
Therefore, we are\ntemporarily reverting back to fetching watches
through the `.watches`\nsystem index until we have better support from
the Query Watches API.\n\n**How to test:**\n1. Start Es with `yarn es
snapshot --license=trial` and Kibana with\n`yarn start` (no need to test
in serverless as Watcher is not available\nthere.\n2. Navigate to Stack
Management -> Watcher and create multiple watches\n(the more, the
better). Make sure you create watches of different types\n(advanced/json
or threshold), watches with or without names, etc. There\nare different
watches and use cases described in
the\n[documentation](https://www.elastic.co/docs/explore-analyze/alerts-cases/watcher).\nAlso,
adding sample data sets is helpful so that you can get watches
to\nexecute and have values under the \"Condition last met\" and
\"Last\nchecked\" columns.\n3. After creating various watches, open the
table with watches and make\nsure that all functionalities work
correctly. For example:\n- All watches are displayed, check with >10
watches and different page\nsizes.\n- Sorting works for all columns.\n-
Search bar works as expected and searching by partial id is
supported.\n- Deleting watches updates the table
correctly.\n\n\nhttps://github.com/user-attachments/assets/d0da9c24-7389-481d-8a16-a0d01bda0e80\n\n##
Release notes:\nThis update resolves multiple issues in Watcher UI that
were introduced\nin 8.18.0, 8.18.1, 9.0.0, and 9.1.0, including the
table not displaying\nmore than 10 watches, an error banner appearing
unexpectedly in certain\nscenarios, and the search bar functionality not
working as
expected.","sha":"5c0b6b0fe7c08b20a6cc540b0e90b8106147b54a"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","9.0","8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/223898","number":223898,"mergeCommit":{"message":"[Watcher]
Revert back to using .watches system index (#223898)\n\nFixes
https://github.com/elastic/kibana/issues/221820\nFixes
https://github.com/elastic/kibana/issues/220879\n\n## Summary\n\nThis PR
reverts #204296
and\nhttps://github.com//pull/218853 as these PRs caused
issues\nin the UI due to limitations in the Query Watches API.
Therefore, we are\ntemporarily reverting back to fetching watches
through the `.watches`\nsystem index until we have better support from
the Query Watches API.\n\n**How to test:**\n1. Start Es with `yarn es
snapshot --license=trial` and Kibana with\n`yarn start` (no need to test
in serverless as Watcher is not available\nthere.\n2. Navigate to Stack
Management -> Watcher and create multiple watches\n(the more, the
better). Make sure you create watches of different types\n(advanced/json
or threshold), watches with or without names, etc. There\nare different
watches and use cases described in
the\n[documentation](https://www.elastic.co/docs/explore-analyze/alerts-cases/watcher).\nAlso,
adding sample data sets is helpful so that you can get watches
to\nexecute and have values under the \"Condition last met\" and
\"Last\nchecked\" columns.\n3. After creating various watches, open the
table with watches and make\nsure that all functionalities work
correctly. For example:\n- All watches are displayed, check with >10
watches and different page\nsizes.\n- Sorting works for all columns.\n-
Search bar works as expected and searching by partial id is
supported.\n- Deleting watches updates the table
correctly.\n\n\nhttps://github.com/user-attachments/assets/d0da9c24-7389-481d-8a16-a0d01bda0e80\n\n##
Release notes:\nThis update resolves multiple issues in Watcher UI that
were introduced\nin 8.18.0, 8.18.1, 9.0.0, and 9.1.0, including the
table not displaying\nmore than 10 watches, an error banner appearing
unexpectedly in certain\nscenarios, and the search bar functionality not
working as
expected.","sha":"5c0b6b0fe7c08b20a6cc540b0e90b8106147b54a"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Elena Stoeva <59341489+ElenaStoeva@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Jun 16, 2025
…#224079)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Watcher] Revert back to using .watches system index
(#223898)](#223898)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Elena
Stoeva","email":"59341489+ElenaStoeva@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-06-16T14:26:24Z","message":"[Watcher]
Revert back to using .watches system index (#223898)\n\nFixes
https://github.com/elastic/kibana/issues/221820\nFixes
https://github.com/elastic/kibana/issues/220879\n\n## Summary\n\nThis PR
reverts #204296
and\nhttps://github.com//pull/218853 as these PRs caused
issues\nin the UI due to limitations in the Query Watches API.
Therefore, we are\ntemporarily reverting back to fetching watches
through the `.watches`\nsystem index until we have better support from
the Query Watches API.\n\n**How to test:**\n1. Start Es with `yarn es
snapshot --license=trial` and Kibana with\n`yarn start` (no need to test
in serverless as Watcher is not available\nthere.\n2. Navigate to Stack
Management -> Watcher and create multiple watches\n(the more, the
better). Make sure you create watches of different types\n(advanced/json
or threshold), watches with or without names, etc. There\nare different
watches and use cases described in
the\n[documentation](https://www.elastic.co/docs/explore-analyze/alerts-cases/watcher).\nAlso,
adding sample data sets is helpful so that you can get watches
to\nexecute and have values under the \"Condition last met\" and
\"Last\nchecked\" columns.\n3. After creating various watches, open the
table with watches and make\nsure that all functionalities work
correctly. For example:\n- All watches are displayed, check with >10
watches and different page\nsizes.\n- Sorting works for all columns.\n-
Search bar works as expected and searching by partial id is
supported.\n- Deleting watches updates the table
correctly.\n\n\nhttps://github.com/user-attachments/assets/d0da9c24-7389-481d-8a16-a0d01bda0e80\n\n##
Release notes:\nThis update resolves multiple issues in Watcher UI that
were introduced\nin 8.18.0, 8.18.1, 9.0.0, and 9.1.0, including the
table not displaying\nmore than 10 watches, an error banner appearing
unexpectedly in certain\nscenarios, and the search bar functionality not
working as
expected.","sha":"5c0b6b0fe7c08b20a6cc540b0e90b8106147b54a","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Watcher","Team:Kibana
Management","backport:version","v9.1.0","v8.19.0","v9.0.3","v8.18.3"],"title":"[Watcher]
Revert back to using .watches system
index","number":223898,"url":"https://github.com/elastic/kibana/pull/223898","mergeCommit":{"message":"[Watcher]
Revert back to using .watches system index (#223898)\n\nFixes
https://github.com/elastic/kibana/issues/221820\nFixes
https://github.com/elastic/kibana/issues/220879\n\n## Summary\n\nThis PR
reverts #204296
and\nhttps://github.com//pull/218853 as these PRs caused
issues\nin the UI due to limitations in the Query Watches API.
Therefore, we are\ntemporarily reverting back to fetching watches
through the `.watches`\nsystem index until we have better support from
the Query Watches API.\n\n**How to test:**\n1. Start Es with `yarn es
snapshot --license=trial` and Kibana with\n`yarn start` (no need to test
in serverless as Watcher is not available\nthere.\n2. Navigate to Stack
Management -> Watcher and create multiple watches\n(the more, the
better). Make sure you create watches of different types\n(advanced/json
or threshold), watches with or without names, etc. There\nare different
watches and use cases described in
the\n[documentation](https://www.elastic.co/docs/explore-analyze/alerts-cases/watcher).\nAlso,
adding sample data sets is helpful so that you can get watches
to\nexecute and have values under the \"Condition last met\" and
\"Last\nchecked\" columns.\n3. After creating various watches, open the
table with watches and make\nsure that all functionalities work
correctly. For example:\n- All watches are displayed, check with >10
watches and different page\nsizes.\n- Sorting works for all columns.\n-
Search bar works as expected and searching by partial id is
supported.\n- Deleting watches updates the table
correctly.\n\n\nhttps://github.com/user-attachments/assets/d0da9c24-7389-481d-8a16-a0d01bda0e80\n\n##
Release notes:\nThis update resolves multiple issues in Watcher UI that
were introduced\nin 8.18.0, 8.18.1, 9.0.0, and 9.1.0, including the
table not displaying\nmore than 10 watches, an error banner appearing
unexpectedly in certain\nscenarios, and the search bar functionality not
working as
expected.","sha":"5c0b6b0fe7c08b20a6cc540b0e90b8106147b54a"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","9.0","8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/223898","number":223898,"mergeCommit":{"message":"[Watcher]
Revert back to using .watches system index (#223898)\n\nFixes
https://github.com/elastic/kibana/issues/221820\nFixes
https://github.com/elastic/kibana/issues/220879\n\n## Summary\n\nThis PR
reverts #204296
and\nhttps://github.com//pull/218853 as these PRs caused
issues\nin the UI due to limitations in the Query Watches API.
Therefore, we are\ntemporarily reverting back to fetching watches
through the `.watches`\nsystem index until we have better support from
the Query Watches API.\n\n**How to test:**\n1. Start Es with `yarn es
snapshot --license=trial` and Kibana with\n`yarn start` (no need to test
in serverless as Watcher is not available\nthere.\n2. Navigate to Stack
Management -> Watcher and create multiple watches\n(the more, the
better). Make sure you create watches of different types\n(advanced/json
or threshold), watches with or without names, etc. There\nare different
watches and use cases described in
the\n[documentation](https://www.elastic.co/docs/explore-analyze/alerts-cases/watcher).\nAlso,
adding sample data sets is helpful so that you can get watches
to\nexecute and have values under the \"Condition last met\" and
\"Last\nchecked\" columns.\n3. After creating various watches, open the
table with watches and make\nsure that all functionalities work
correctly. For example:\n- All watches are displayed, check with >10
watches and different page\nsizes.\n- Sorting works for all columns.\n-
Search bar works as expected and searching by partial id is
supported.\n- Deleting watches updates the table
correctly.\n\n\nhttps://github.com/user-attachments/assets/d0da9c24-7389-481d-8a16-a0d01bda0e80\n\n##
Release notes:\nThis update resolves multiple issues in Watcher UI that
were introduced\nin 8.18.0, 8.18.1, 9.0.0, and 9.1.0, including the
table not displaying\nmore than 10 watches, an error banner appearing
unexpectedly in certain\nscenarios, and the search bar functionality not
working as
expected.","sha":"5c0b6b0fe7c08b20a6cc540b0e90b8106147b54a"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Elena Stoeva <59341489+ElenaStoeva@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Jun 16, 2025
…#224078)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Watcher] Revert back to using .watches system index
(#223898)](#223898)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Elena
Stoeva","email":"59341489+ElenaStoeva@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-06-16T14:26:24Z","message":"[Watcher]
Revert back to using .watches system index (#223898)\n\nFixes
https://github.com/elastic/kibana/issues/221820\nFixes
https://github.com/elastic/kibana/issues/220879\n\n## Summary\n\nThis PR
reverts #204296
and\nhttps://github.com//pull/218853 as these PRs caused
issues\nin the UI due to limitations in the Query Watches API.
Therefore, we are\ntemporarily reverting back to fetching watches
through the `.watches`\nsystem index until we have better support from
the Query Watches API.\n\n**How to test:**\n1. Start Es with `yarn es
snapshot --license=trial` and Kibana with\n`yarn start` (no need to test
in serverless as Watcher is not available\nthere.\n2. Navigate to Stack
Management -> Watcher and create multiple watches\n(the more, the
better). Make sure you create watches of different types\n(advanced/json
or threshold), watches with or without names, etc. There\nare different
watches and use cases described in
the\n[documentation](https://www.elastic.co/docs/explore-analyze/alerts-cases/watcher).\nAlso,
adding sample data sets is helpful so that you can get watches
to\nexecute and have values under the \"Condition last met\" and
\"Last\nchecked\" columns.\n3. After creating various watches, open the
table with watches and make\nsure that all functionalities work
correctly. For example:\n- All watches are displayed, check with >10
watches and different page\nsizes.\n- Sorting works for all columns.\n-
Search bar works as expected and searching by partial id is
supported.\n- Deleting watches updates the table
correctly.\n\n\nhttps://github.com/user-attachments/assets/d0da9c24-7389-481d-8a16-a0d01bda0e80\n\n##
Release notes:\nThis update resolves multiple issues in Watcher UI that
were introduced\nin 8.18.0, 8.18.1, 9.0.0, and 9.1.0, including the
table not displaying\nmore than 10 watches, an error banner appearing
unexpectedly in certain\nscenarios, and the search bar functionality not
working as
expected.","sha":"5c0b6b0fe7c08b20a6cc540b0e90b8106147b54a","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Watcher","Team:Kibana
Management","backport:version","v9.1.0","v8.19.0","v9.0.3","v8.18.3"],"title":"[Watcher]
Revert back to using .watches system
index","number":223898,"url":"https://github.com/elastic/kibana/pull/223898","mergeCommit":{"message":"[Watcher]
Revert back to using .watches system index (#223898)\n\nFixes
https://github.com/elastic/kibana/issues/221820\nFixes
https://github.com/elastic/kibana/issues/220879\n\n## Summary\n\nThis PR
reverts #204296
and\nhttps://github.com//pull/218853 as these PRs caused
issues\nin the UI due to limitations in the Query Watches API.
Therefore, we are\ntemporarily reverting back to fetching watches
through the `.watches`\nsystem index until we have better support from
the Query Watches API.\n\n**How to test:**\n1. Start Es with `yarn es
snapshot --license=trial` and Kibana with\n`yarn start` (no need to test
in serverless as Watcher is not available\nthere.\n2. Navigate to Stack
Management -> Watcher and create multiple watches\n(the more, the
better). Make sure you create watches of different types\n(advanced/json
or threshold), watches with or without names, etc. There\nare different
watches and use cases described in
the\n[documentation](https://www.elastic.co/docs/explore-analyze/alerts-cases/watcher).\nAlso,
adding sample data sets is helpful so that you can get watches
to\nexecute and have values under the \"Condition last met\" and
\"Last\nchecked\" columns.\n3. After creating various watches, open the
table with watches and make\nsure that all functionalities work
correctly. For example:\n- All watches are displayed, check with >10
watches and different page\nsizes.\n- Sorting works for all columns.\n-
Search bar works as expected and searching by partial id is
supported.\n- Deleting watches updates the table
correctly.\n\n\nhttps://github.com/user-attachments/assets/d0da9c24-7389-481d-8a16-a0d01bda0e80\n\n##
Release notes:\nThis update resolves multiple issues in Watcher UI that
were introduced\nin 8.18.0, 8.18.1, 9.0.0, and 9.1.0, including the
table not displaying\nmore than 10 watches, an error banner appearing
unexpectedly in certain\nscenarios, and the search bar functionality not
working as
expected.","sha":"5c0b6b0fe7c08b20a6cc540b0e90b8106147b54a"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","9.0","8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/223898","number":223898,"mergeCommit":{"message":"[Watcher]
Revert back to using .watches system index (#223898)\n\nFixes
https://github.com/elastic/kibana/issues/221820\nFixes
https://github.com/elastic/kibana/issues/220879\n\n## Summary\n\nThis PR
reverts #204296
and\nhttps://github.com//pull/218853 as these PRs caused
issues\nin the UI due to limitations in the Query Watches API.
Therefore, we are\ntemporarily reverting back to fetching watches
through the `.watches`\nsystem index until we have better support from
the Query Watches API.\n\n**How to test:**\n1. Start Es with `yarn es
snapshot --license=trial` and Kibana with\n`yarn start` (no need to test
in serverless as Watcher is not available\nthere.\n2. Navigate to Stack
Management -> Watcher and create multiple watches\n(the more, the
better). Make sure you create watches of different types\n(advanced/json
or threshold), watches with or without names, etc. There\nare different
watches and use cases described in
the\n[documentation](https://www.elastic.co/docs/explore-analyze/alerts-cases/watcher).\nAlso,
adding sample data sets is helpful so that you can get watches
to\nexecute and have values under the \"Condition last met\" and
\"Last\nchecked\" columns.\n3. After creating various watches, open the
table with watches and make\nsure that all functionalities work
correctly. For example:\n- All watches are displayed, check with >10
watches and different page\nsizes.\n- Sorting works for all columns.\n-
Search bar works as expected and searching by partial id is
supported.\n- Deleting watches updates the table
correctly.\n\n\nhttps://github.com/user-attachments/assets/d0da9c24-7389-481d-8a16-a0d01bda0e80\n\n##
Release notes:\nThis update resolves multiple issues in Watcher UI that
were introduced\nin 8.18.0, 8.18.1, 9.0.0, and 9.1.0, including the
table not displaying\nmore than 10 watches, an error banner appearing
unexpectedly in certain\nscenarios, and the search bar functionality not
working as
expected.","sha":"5c0b6b0fe7c08b20a6cc540b0e90b8106147b54a"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Elena Stoeva <59341489+ElenaStoeva@users.noreply.github.com>
@ElenaStoeva ElenaStoeva deleted the revert-204296-218853 branch January 31, 2026 19:52
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 Feature:Watcher release_note:fix Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// v8.18.3 v8.19.0 v9.0.3 v9.1.0

4 participants