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

fix(slo): use correct uisettings #193362

Merged
merged 5 commits into from
Sep 19, 2024
Merged

Conversation

kdelemme
Copy link
Contributor

@kdelemme kdelemme commented Sep 18, 2024

Resolves #193337

Summary

This PR fixes a bug where the kibana settings were not used when building the ES query. I've also moved the chart component from the slos page folder into the common components folder.

This should be backported to 8.14 and 8.15

backport:prev-major should backport to 8.15 and 8.x

@kdelemme kdelemme added release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-management Observability Management User Experience Team v8.16.0 labels Sep 18, 2024
@obltmachine
Copy link

🤖 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!)

@kdelemme kdelemme marked this pull request as ready for review September 18, 2024 21:03
@kdelemme kdelemme requested a review from a team as a code owner September 18, 2024 21:03
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@kdelemme kdelemme added backport backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) backport:prev-major Backport to (8.x, 8.17, 8.16) the previous major branch and other branches in development v8.14.4 labels Sep 18, 2024
@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Sep 19, 2024
Copy link
Contributor

@shahzad31 shahzad31 left a comment

Choose a reason for hiding this comment

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

On redirecting to discover, we don't add good/bad disabled filters anymore?

image

@kdelemme kdelemme self-assigned this Sep 19, 2024
@kdelemme kdelemme removed the v8.14.4 label Sep 19, 2024
@kdelemme
Copy link
Contributor Author

I did not change the showGood, showBad usage. Let me check

@kdelemme
Copy link
Contributor Author

I got them on the good bad event charts. Where did you click from?

slo_good_bad_filter.mov

@kdelemme
Copy link
Contributor Author

@kdelemme kdelemme removed request for a team and hop-dev September 19, 2024 15:21
@kdelemme kdelemme enabled auto-merge (squash) September 19, 2024 15:21
@kibana-ci
Copy link
Collaborator

kibana-ci commented Sep 19, 2024

💛 Build succeeded, but was flaky

  • Buildkite Build
  • Commit: 140a595
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-193362-140a595f3841

Failed CI Steps

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
slo 853.3KB 854.1KB +828.0B

Page load bundle

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

id before after diff
slo 24.6KB 24.7KB +134.0B

History

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

cc @kdelemme

@kdelemme kdelemme merged commit 92b2c03 into elastic:main Sep 19, 2024
24 checks passed
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 19, 2024
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.15 Backport failed because of merge conflicts
8.x

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 193362

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Sep 19, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [fix(slo): use correct uisettings
(#193362)](#193362)

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

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

<!--BACKPORT [{"author":{"name":"Kevin
Delemme","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-19T17:23:55Z","message":"fix(slo):
use correct uisettings
(#193362)","sha":"92b2c0324779711b6c95b1f90027cef210401ce9","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:skip","v9.0.0","backport:prev-minor","backport:prev-major","ci:project-deploy-observability","Team:obs-ux-management","v8.16.0"],"title":"fix(slo):
use correct
uisettings","number":193362,"url":"https://github.com/elastic/kibana/pull/193362","mergeCommit":{"message":"fix(slo):
use correct uisettings
(#193362)","sha":"92b2c0324779711b6c95b1f90027cef210401ce9"}},"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/193362","number":193362,"mergeCommit":{"message":"fix(slo):
use correct uisettings
(#193362)","sha":"92b2c0324779711b6c95b1f90027cef210401ce9"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Kevin Delemme <[email protected]>
@kdelemme
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.15

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

Questions ?

Please refer to the Backport tool documentation

kdelemme added a commit to kdelemme/kibana that referenced this pull request Sep 20, 2024
(cherry picked from commit 92b2c03)

# Conflicts:
#	x-pack/plugins/observability_solution/slo/public/components/good_bad_events_chart/good_bad_events_chart.tsx
#	x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/events_chart_panel.tsx
#	x-pack/plugins/observability_solution/slo/public/utils/slo/get_discover_link.ts
kdelemme added a commit that referenced this pull request Sep 25, 2024
# Backport

This will backport the following commits from `main` to `8.15`:
- [fix(slo): use correct uisettings
(#193362)](#193362)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Kevin
Delemme","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-19T17:23:55Z","message":"fix(slo):
use correct uisettings
(#193362)","sha":"92b2c0324779711b6c95b1f90027cef210401ce9","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:skip","v9.0.0","backport:prev-minor","backport:prev-major","ci:project-deploy-observability","Team:obs-ux-management","v8.16.0"],"number":193362,"url":"https://github.com/elastic/kibana/pull/193362","mergeCommit":{"message":"fix(slo):
use correct uisettings
(#193362)","sha":"92b2c0324779711b6c95b1f90027cef210401ce9"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193362","number":193362,"mergeCommit":{"message":"fix(slo):
use correct uisettings
(#193362)","sha":"92b2c0324779711b6c95b1f90027cef210401ce9"}},{"branch":"8.x","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/193457","number":193457,"state":"MERGED","mergeCommit":{"sha":"0125a030f9055117476c4139d425cd112a43e0dc","message":"[8.x]
fix(slo): use correct uisettings (#193362) (#193457)\n\n#
Backport\n\nThis will backport the following commits from `main` to
`8.x`:\n- [fix(slo): use correct
uisettings\n(#193362)](https://github.com/elastic/kibana/pull/193362)\n\n<!---
Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Kevin\nDelemme\",\"email\":\"[email protected]\"},\"sourceCommit\":{\"committedDate\":\"2024-09-19T17:23:55Z\",\"message\":\"fix(slo):\nuse
correct
uisettings\n(#193362)\",\"sha\":\"92b2c0324779711b6c95b1f90027cef210401ce9\",\"branchLabelMapping\":{\"^v9.0.0$\":\"main\",\"^v8.16.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"backport\",\"release_note:skip\",\"v9.0.0\",\"backport:prev-minor\",\"backport:prev-major\",\"ci:project-deploy-observability\",\"Team:obs-ux-management\",\"v8.16.0\"],\"title\":\"fix(slo):\nuse
correct\nuisettings\",\"number\":193362,\"url\":\"https://github.com/elastic/kibana/pull/193362\",\"mergeCommit\":{\"message\":\"fix(slo):\nuse
correct
uisettings\n(#193362)\",\"sha\":\"92b2c0324779711b6c95b1f90027cef210401ce9\"}},\"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/193362\",\"number\":193362,\"mergeCommit\":{\"message\":\"fix(slo):\nuse
correct
uisettings\n(#193362)\",\"sha\":\"92b2c0324779711b6c95b1f90027cef210401ce9\"}},{\"branch\":\"8.x\",\"label\":\"v8.16.0\",\"branchLabelMappingKey\":\"^v8.16.0$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"}]}]\nBACKPORT-->\n\nCo-authored-by:
Kevin Delemme <[email protected]>"}}]}] BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-major Backport to (8.x, 8.17, 8.16) the previous major branch and other branches in development backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) backport ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-management Observability Management User Experience Team v8.15.2 v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SLO] Fix leading wildcard discover link generation
6 participants