-
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
[Discover][Alerting] Implement editing of data view, query, filters #130462
Conversation
x-pack/plugins/stack_alerts/public/alert_types/components/query_popover.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/stack_alerts/public/alert_types/components/data_view_select_popover.tsx
Show resolved
Hide resolved
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.
@@ -1,3 +1,7 @@ | |||
html { | |||
overflow: hidden; |
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.
Instead, is it possible to set the suggestionSize
on the component to s
?
I see a prop here:
suggestionsSize?: SuggestionsListSize; |
I am not sure where/how to pass in this prop, so (as a very quick-and-dirty test) I hardcoded this value to s
and get this result which I suspect addresses the original issue:
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.
Yes, it's possible, already applied.
@@ -364,7 +364,7 @@ class SearchBarUI extends Component<SearchBarProps, State> { | |||
isLoading={this.props.isLoading} | |||
fillSubmitButton={this.props.fillSubmitButton || false} | |||
prepend={ | |||
this.props.showFilterBar && this.state.query |
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.
This was removed to be able to show saved query management, without filter bar. Filter bar added manually, omitting some features. Would it be safe change?
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.
For me using the old
layout would work, question is if we need to adapt the layout here @andreadelrio ?
One thing to also keep in mind, we might soon be able to use the unified search bar here:
#128401
one think that didn't work, I got an endless spinner when trying to edit the alert rule in Stack management
@elasticmachine merge upstream |
💔 Build FailedFailed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
async chunk count
ESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @dmitriynj |
@ryankeairns However, AFAIK we don't have currently access to the way it's being rendered, so it would need to be solved in a separate PR ... or being a feature request for our alerting efforts
Ok, if this is still the case this should be solved. every time the flyout is opened it should be reset to the current state of our search. |
Closing current PR, since #131688 created. |
Summary
DataView
Checklist
Delete any items that are not applicable to this PR.