Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Obs AI Assistant] Fix alerts function #203695

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

viduni94
Copy link
Contributor

@viduni94 viduni94 commented Dec 10, 2024

Summary

Problem

With the merge of the PR #183756, the alerts function has stopped working in the Obs AI Assistant, because there has been a change to the query (when finding alerts)

image

Solution

Revert the change made to the query.

Checklist

  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines

@viduni94 viduni94 self-assigned this Dec 10, 2024
@viduni94 viduni94 requested a review from a team as a code owner December 10, 2024 21:33
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:Obs AI Assistant Observability AI Assistant labels Dec 10, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant)

Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@viduni94 viduni94 added release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels v8.18.0 labels Dec 10, 2024
@viduni94 viduni94 force-pushed the fix-issue-with-alerts-function branch from 0382919 to 29beae1 Compare December 10, 2024 21:34
@viduni94 viduni94 linked an issue Dec 10, 2024 that may be closed by this pull request
@viduni94 viduni94 added release_note:fix and removed release_note:skip Skip the PR/issue when compiling release notes labels Dec 10, 2024
@viduni94 viduni94 force-pushed the fix-issue-with-alerts-function branch from 29beae1 to 71b81e4 Compare December 10, 2024 21:59
@arturoliduena
Copy link
Contributor

LGTM

@@ -137,57 +137,6 @@ export default function ApiTest({ getService }: FtrProviderContext) {
]);
});

it.skip('returns a useful error if the request fails', async () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@elasticmachine
Copy link
Contributor

⏳ Build in-progress

  • Buildkite Build
  • Commit: f9c5e6d
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-203695-f9c5e6d69d63

History

cc @viduni94

@viduni94 viduni94 merged commit d9c1cd3 into elastic:main Dec 11, 2024
8 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 11, 2024
## Summary

### Problem
With the merge of the PR elastic#183756,
the alerts function has stopped working in the Obs AI Assistant, because
there has been a change to the query (when finding alerts)

### Solution
Revert the change made to the query.

### Checklist

- [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)

(cherry picked from commit d9c1cd3)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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 Dec 11, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Obs AI Assistant] Fix alerts function
(#203695)](#203695)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Viduni
Wickramarachchi","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-11T15:25:36Z","message":"[Obs
AI Assistant] Fix alerts function (#203695)\n\n## Summary\r\n\r\n###
Problem\r\nWith the merge of the PR
https://github.com/elastic/kibana/pull/183756,\r\nthe alerts function
has stopped working in the Obs AI Assistant, because\r\nthere has been a
change to the query (when finding alerts)\r\n\r\n### Solution\r\nRevert
the change made to the query.\r\n\r\n### Checklist\r\n\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"d9c1cd30af82abf12b5d569cbaa8886fbb78a5bb","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Team:Obs
AI
Assistant","ci:project-deploy-observability","backport:version","v8.18.0"],"title":"[Obs
AI Assistant] Fix alerts
function","number":203695,"url":"https://github.com/elastic/kibana/pull/203695","mergeCommit":{"message":"[Obs
AI Assistant] Fix alerts function (#203695)\n\n## Summary\r\n\r\n###
Problem\r\nWith the merge of the PR
https://github.com/elastic/kibana/pull/183756,\r\nthe alerts function
has stopped working in the Obs AI Assistant, because\r\nthere has been a
change to the query (when finding alerts)\r\n\r\n### Solution\r\nRevert
the change made to the query.\r\n\r\n### Checklist\r\n\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"d9c1cd30af82abf12b5d569cbaa8886fbb78a5bb"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203695","number":203695,"mergeCommit":{"message":"[Obs
AI Assistant] Fix alerts function (#203695)\n\n## Summary\r\n\r\n###
Problem\r\nWith the merge of the PR
https://github.com/elastic/kibana/pull/183756,\r\nthe alerts function
has stopped working in the Obs AI Assistant, because\r\nthere has been a
change to the query (when finding alerts)\r\n\r\n### Solution\r\nRevert
the change made to the query.\r\n\r\n### Checklist\r\n\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"d9c1cd30af82abf12b5d569cbaa8886fbb78a5bb"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Viduni Wickramarachchi <[email protected]>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
## Summary

### Problem
With the merge of the PR elastic#183756,
the alerts function has stopped working in the Obs AI Assistant, because
there has been a change to the query (when finding alerts)

### Solution
Revert the change made to the query.

### Checklist

- [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)
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 ci:project-deploy-observability Create an Observability project release_note:fix Team:Obs AI Assistant Observability AI Assistant v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Obs AI Assistant] Error when fetching alerts
4 participants