-
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
[SLOs] Add/edit form show tags suggestions #181075
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
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.
Let's just introduce a response type in the slo-schema for this new API, and use that in the hooks, and it's golden ✨
const findSLOGroups = new GetSLOSuggestions(soClient); | ||
return await findSLOGroups.execute(); |
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.
const findSLOGroups = new GetSLOSuggestions(soClient); | |
return await findSLOGroups.execute(); | |
const getSLOSuggestions = new GetSLOSuggestions(soClient); | |
return await getSLOSuggestions.execute(); |
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.
oooopsssss
type Buckets = Array<{ | ||
key: string; | ||
doc_count: number; | ||
}>; | ||
|
||
interface AggsResponse { | ||
tagsAggs: { | ||
buckets: Buckets; | ||
}; | ||
} |
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 we want to introduce a type in slo-schema, so we can also import it in the hook/ui?
export interface Suggestion { | ||
label: string; | ||
value: string; | ||
count: number; | ||
} |
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.
Maybe introduce a slo-schema response for this API, and we can use it here?
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.
Done
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
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.
LGTM
Summary
Show tags as suggestions from existing SLOs