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

chore(slo): Improve fixtures and storybook cases #149639

Merged
merged 5 commits into from
Jan 30, 2023
Merged

Conversation

kdelemme
Copy link
Contributor

📝 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.

Screenshot
image

@kdelemme kdelemme self-assigned this Jan 26, 2023
@kdelemme kdelemme added release_note:skip Skip the PR/issue when compiling release notes Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" v8.7.0 labels Jan 26, 2023
@kdelemme kdelemme requested review from CoenWarmer and a team January 26, 2023 21:34
@kdelemme kdelemme marked this pull request as ready for review January 27, 2023 14:11
@elasticmachine
Copy link
Contributor

Pinging @elastic/actionable-observability (Team: Actionable Observability)

Copy link
Member

@maryam-saeidi maryam-saeidi left a 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';
Copy link
Member

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'] => {
Copy link
Member

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?

Copy link
Contributor Author

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.

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

cc @kdelemme

@kdelemme kdelemme merged commit a16806d into main Jan 30, 2023
@kdelemme kdelemme deleted the chore/slo-fixtures branch January 30, 2023 14:43
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jan 30, 2023
kqualters-elastic pushed a commit to kqualters-elastic/kibana that referenced this pull request Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SLO] Introduce SLO models in FE with good fixtures
6 participants