-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
chore(slo): Improve fixtures and storybook cases #149639
Conversation
Pinging @elastic/actionable-observability (Team: Actionable Observability) |
0686fe1
to
6cd5d91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement! ✨
I had one clarification question but overall looks good 👍🏻
@@ -8,7 +8,7 @@ | |||
import React from 'react'; | |||
import { ComponentStory } from '@storybook/react'; | |||
|
|||
import { anSLO } from '../../../data/slo/slo'; | |||
import { buildSlo } from '../../../data/slo/slo'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slo/slo
Thats why I like index :D
|
||
export const buildOccurrencesObjective = ( | ||
params: Partial<SLOWithSummaryResponse['objective']> = {} | ||
): SLOWithSummaryResponse['objective'] => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I understand correctly that this is a io-ts
type? And will typescript use it as a return type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SLOWithSummaryResponse is actually a t.OutputOf<typeof some-io-ts-schema>
which becomes a proper TS type
.
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @kdelemme |
📝 Summary
Resolves #148077
This PR introduces better SLO fixtures for the frontend. I've also added more storybook cases for catching regression on more slo definition cases.
No behaviours have changed.