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

[Observability AI Assistant] Return errorDoc instead of error in GetApmErrorDocument function response #165588

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

CoenWarmer
Copy link
Contributor

@CoenWarmer CoenWarmer commented Sep 4, 2023

Summary

This is done as the Assistant implementation assumes error indicates a faulty response and thus renders the return as if it were an error.

@CoenWarmer CoenWarmer requested a review from a team as a code owner September 4, 2023 12:36
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Sep 4, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:APM)

@CoenWarmer CoenWarmer added the release_note:skip Skip the PR/issue when compiling release notes label Sep 4, 2023
@apmmachine
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.
  • /oblt-deploy-serverless : Deploy a serverless Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@CoenWarmer CoenWarmer added v8.10.0 v8.11.0 backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Sep 4, 2023
@CoenWarmer CoenWarmer enabled auto-merge (squash) September 4, 2023 12:37
@CoenWarmer CoenWarmer force-pushed the bug/error-key-in-apm-error-doc branch from 2eaef8f to b20a6a9 Compare September 4, 2023 12:40
@CoenWarmer CoenWarmer changed the title [Observability AI Assistant] Return errorDoc instead of error in GetApmErrorDocument function [Observability AI Assistant] Return errorDoc instead of error in GetApmErrorDocument function response Sep 4, 2023
@CoenWarmer CoenWarmer force-pushed the bug/error-key-in-apm-error-doc branch from b20a6a9 to fc33aae Compare September 4, 2023 12:47
@kibana-ci
Copy link
Collaborator

kibana-ci commented Sep 4, 2023

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Serverless Observability Examples Tests / serverless examples UI Search examples handling warnings with search source fetch "after all" hook for "able to handle shard failure warnings and prevent default notifications"
  • [job] [logs] Serverless Observability Examples Tests / serverless examples UI Search examples handling warnings with search source fetch "before all" hook for "shows shard failure warning notifications by default"

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.10

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 4, 2023
…GetApmErrorDocument function (elastic#165588)

(cherry picked from commit 046cfc8)
kibanamachine added a commit that referenced this pull request Sep 4, 2023
…or` in GetApmErrorDocument function (#165588) (#165601)

# Backport

This will backport the following commits from `main` to `8.10`:
- [[Observability AI Assistant] Return `errorDoc` instead of `error` in
GetApmErrorDocument function
(#165588)](#165588)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Coen
Warmer","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-09-04T13:49:48Z","message":"[Observability
AI Assistant] Return `errorDoc` instead of `error` in
GetApmErrorDocument function
(#165588)","sha":"046cfc854dfbcf946d775c8f204b0a2c74414cd6","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:APM","release_note:skip","backport:prev-minor","v8.10.0","v8.11.0"],"number":165588,"url":"https://github.com/elastic/kibana/pull/165588","mergeCommit":{"message":"[Observability
AI Assistant] Return `errorDoc` instead of `error` in
GetApmErrorDocument function
(#165588)","sha":"046cfc854dfbcf946d775c8f204b0a2c74414cd6"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/165588","number":165588,"mergeCommit":{"message":"[Observability
AI Assistant] Return `errorDoc` instead of `error` in
GetApmErrorDocument function
(#165588)","sha":"046cfc854dfbcf946d775c8f204b0a2c74414cd6"}}]}]
BACKPORT-->

Co-authored-by: Coen Warmer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v8.10.0 v8.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants