-
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
[Observability] fix slo observability compressed styles to be not compressed #193081
Changes from 26 commits
2fb8a5a
67ea6a2
cf01d44
c9d3ffe
0b6fbc0
8c45a2a
5354eb0
e590230
caa0bf2
7f0d2f3
2831847
a722e87
913f0ff
bb6a928
451d33c
c9a2d59
4cf021a
cf410d8
9c60c87
83da3f5
02f6a67
9e32829
c986f23
ad6ee2c
899b248
adc1846
bb77b0d
b21f593
00c0670
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the "Elastic License | ||
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side | ||
* Public License v 1"; you may not use this file except in compliance with, at | ||
* your election, the "Elastic License 2.0", the "GNU Affero General Public | ||
* License v3.0 only", or the "Server Side Public License, v 1". | ||
*/ | ||
|
||
import { apiHasParentApi } from '@kbn/presentation-publishing'; | ||
|
||
export interface HasCompressed { | ||
compressed: boolean; | ||
} | ||
|
||
export const apiHasCompressed = (unknownApi: unknown): unknownApi is HasCompressed => { | ||
return Boolean(unknownApi) && typeof (unknownApi as HasCompressed).compressed === 'boolean'; | ||
}; | ||
|
||
export function isCompressed(api: unknown): boolean { | ||
if (apiHasCompressed(api)) return api.compressed; | ||
return apiHasParentApi(api) ? isCompressed(api.parentApi) : true; | ||
} | ||
Heenawter marked this conversation as resolved.
Show resolved
Hide resolved
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe the range slider + time slider controls also use the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good - I'm down for consistency bb77b0d for changes |
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.
I don't think we need to export these