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

[SLO] Reset UI for updating outdated SLOs #172883

Merged
merged 15 commits into from
Dec 12, 2023

Conversation

simianhacker
Copy link
Member

@simianhacker simianhacker commented Dec 7, 2023

Summary

This PR is a follow up to #172224, it adds a UI for resetting the SLO definitions from the previous model. Once #179473 is merged I will rebase this against main and convert it from a "draft" PR to "ready to review".

image

image

image

Testing

  1. Start by loading main
  2. Ingest some data
  3. Create some SLOs
  4. Change Kibana from main to this PR
  5. Visit the SLO page, you should see a banner similar to the screen shot above.
  6. Do your best to break this

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

@simianhacker simianhacker added Feature:SLO v8.12.0 v8.13.0 backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:enhancement labels Dec 7, 2023
Copy link
Contributor

@kdelemme kdelemme left a comment

Choose a reason for hiding this comment

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

Code LGTM, a few nits/typos.
Going to test now

@simianhacker simianhacker changed the title Slo reset UI [SLO] Reset UI for updating outdated SLOs Dec 11, 2023
@simianhacker simianhacker marked this pull request as ready for review December 12, 2023 14:51
@simianhacker simianhacker requested a review from a team as a code owner December 12, 2023 14:51
@botelastic botelastic bot added the Team:obs-ux-management Observability Management User Experience Team label Dec 12, 2023
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@kdelemme kdelemme left a comment

Choose a reason for hiding this comment

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

Let's 🚢 it!!

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.

LGTM !!

simianhacker and others added 3 commits December 12, 2023 09:23
Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
Copy link
Contributor

@dominiqueclarke dominiqueclarke left a comment

Choose a reason for hiding this comment

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

LGTM!

@simianhacker simianhacker enabled auto-merge (squash) December 12, 2023 16:31
@simianhacker simianhacker merged commit c2003d9 into elastic:main Dec 12, 2023
38 checks passed
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #85 / Serverless Common UI - Examples search examples Partial results example "before all" hook for "should update a progress bar"

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
observability 567 573 +6

Async chunks

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

id before after diff
observability 1.1MB 1.1MB +8.7KB

Page load bundle

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

id before after diff
observability 102.6KB 102.7KB +100.0B

History

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

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

This PR is a follow up to elastic#172224, it adds a UI for resetting the SLO
definitions from the previous model. Once elastic#179473 is merged I will
rebase this against `main` and convert it from a "draft" PR to "ready to
review".

![image](https://github.com/elastic/kibana/assets/41702/daf0591c-272f-40c2-9831-658d7b9b1378)

![image](https://github.com/elastic/kibana/assets/41702/d385396d-d840-4574-942a-b8e51ce66066)

![image](https://github.com/elastic/kibana/assets/41702/729df2a0-61e6-41b3-aaa5-8501e7aa7797)

### Testing

1. Start by loading `main`
2. Ingest some data
3. Create some SLOs
4. Change Kibana from `main` to this PR
5. Visit the SLO page, you should see a banner similar to the screen
shot above.
6. Do your best to break this

---------

Co-authored-by: shahzad31 <shahzad31comp@gmail.com>
Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
(cherry picked from commit c2003d9)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.12

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 13, 2023
# Backport

This will backport the following commits from `main` to `8.12`:
- [[SLO] Reset UI for updating outdated SLOs
(#172883)](#172883)

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

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

<!--BACKPORT [{"author":{"name":"Chris
Cowan","email":"chris@elastic.co"},"sourceCommit":{"committedDate":"2023-12-12T19:36:20Z","message":"[SLO]
Reset UI for updating outdated SLOs (#172883)\n\n## Summary\r\n\r\nThis
PR is a follow up to #172224, it adds a UI for resetting the
SLO\r\ndefinitions from the previous model. Once #179473 is merged I
will\r\nrebase this against `main` and convert it from a \"draft\" PR to
\"ready
to\r\nreview\".\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/41702/daf0591c-272f-40c2-9831-658d7b9b1378)\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/41702/d385396d-d840-4574-942a-b8e51ce66066)\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/41702/729df2a0-61e6-41b3-aaa5-8501e7aa7797)\r\n\r\n\r\n###
Testing\r\n\r\n1. Start by loading `main`\r\n2. Ingest some data\r\n3.
Create some SLOs\r\n4. Change Kibana from `main` to this PR\r\n5. Visit
the SLO page, you should see a banner similar to the screen\r\nshot
above.\r\n6. Do your best to break
this\r\n\r\n---------\r\n\r\nCo-authored-by: shahzad31
<shahzad31comp@gmail.com>\r\nCo-authored-by: Dominique Clarke
<doclarke71@gmail.com>","sha":"c2003d9f83f6d437ec9ce46943a402b38c07ece5","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","backport:prev-minor","Feature:SLO","v8.12.0","Team:obs-ux-management","v8.13.0"],"number":172883,"url":"https://github.com/elastic/kibana/pull/172883","mergeCommit":{"message":"[SLO]
Reset UI for updating outdated SLOs (#172883)\n\n## Summary\r\n\r\nThis
PR is a follow up to #172224, it adds a UI for resetting the
SLO\r\ndefinitions from the previous model. Once #179473 is merged I
will\r\nrebase this against `main` and convert it from a \"draft\" PR to
\"ready
to\r\nreview\".\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/41702/daf0591c-272f-40c2-9831-658d7b9b1378)\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/41702/d385396d-d840-4574-942a-b8e51ce66066)\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/41702/729df2a0-61e6-41b3-aaa5-8501e7aa7797)\r\n\r\n\r\n###
Testing\r\n\r\n1. Start by loading `main`\r\n2. Ingest some data\r\n3.
Create some SLOs\r\n4. Change Kibana from `main` to this PR\r\n5. Visit
the SLO page, you should see a banner similar to the screen\r\nshot
above.\r\n6. Do your best to break
this\r\n\r\n---------\r\n\r\nCo-authored-by: shahzad31
<shahzad31comp@gmail.com>\r\nCo-authored-by: Dominique Clarke
<doclarke71@gmail.com>","sha":"c2003d9f83f6d437ec9ce46943a402b38c07ece5"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/172883","number":172883,"mergeCommit":{"message":"[SLO]
Reset UI for updating outdated SLOs (#172883)\n\n## Summary\r\n\r\nThis
PR is a follow up to #172224, it adds a UI for resetting the
SLO\r\ndefinitions from the previous model. Once #179473 is merged I
will\r\nrebase this against `main` and convert it from a \"draft\" PR to
\"ready
to\r\nreview\".\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/41702/daf0591c-272f-40c2-9831-658d7b9b1378)\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/41702/d385396d-d840-4574-942a-b8e51ce66066)\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/41702/729df2a0-61e6-41b3-aaa5-8501e7aa7797)\r\n\r\n\r\n###
Testing\r\n\r\n1. Start by loading `main`\r\n2. Ingest some data\r\n3.
Create some SLOs\r\n4. Change Kibana from `main` to this PR\r\n5. Visit
the SLO page, you should see a banner similar to the screen\r\nshot
above.\r\n6. Do your best to break
this\r\n\r\n---------\r\n\r\nCo-authored-by: shahzad31
<shahzad31comp@gmail.com>\r\nCo-authored-by: Dominique Clarke
<doclarke71@gmail.com>","sha":"c2003d9f83f6d437ec9ce46943a402b38c07ece5"}}]}]
BACKPORT-->

Co-authored-by: Chris Cowan <chris@elastic.co>
Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
@simianhacker simianhacker deleted the slo-reset-ui branch April 17, 2024 15:38
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) Feature:SLO release_note:enhancement Team:obs-ux-management Observability Management User Experience Team v8.12.0 v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants