-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Actionable Observability] Fix alerts' blank page in case of invalid query string #145067
Changes from all commits
d032a85
726a7ec
4f84167
59007a7
f7929aa
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 |
---|---|---|
|
@@ -27,13 +27,17 @@ interface AlertSearchBarStateTransitions { | |
setStatus: (status: AlertStatus) => AlertSearchBarContainerState; | ||
} | ||
|
||
export interface AlertSearchBarWithUrlSyncProps { | ||
export interface CommonAlertSearchBarProps { | ||
appName: string; | ||
setEsQuery: (query: { bool: BoolQuery }) => void; | ||
queries?: Query[]; | ||
} | ||
|
||
export interface AlertSearchBarWithUrlSyncProps extends CommonAlertSearchBarProps { | ||
urlStorageKey: string; | ||
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. 💬 Allowing consumers to set the storage key. |
||
} | ||
|
||
export interface AlertSearchBarProps | ||
extends AlertSearchBarContainerState, | ||
AlertSearchBarStateTransitions, | ||
AlertSearchBarWithUrlSyncProps {} | ||
CommonAlertSearchBarProps {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ export const ALERTS_PAGE_ID = 'alerts-o11y'; | |
export const ALERTS_SEARCH_BAR_ID = 'alerts-search-bar-o11y'; | ||
export const ALERTS_PER_PAGE = 50; | ||
export const ALERTS_TABLE_ID = 'xpack.observability.alerts.alert.table'; | ||
export const URL_STORAGE_KEY = '_a'; | ||
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. Is there a reason to keep 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 wanted to use a more meaningful name for this storage rather than 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! 👍 |
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.
💬 Renamed it to make it easier to find the usage of this component.