-
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
[Alerting] Improve creation and editing of "Elasticsearch query" rule in Management #134763
Conversation
Added a deploy to Cloud label so I can play around with these changes. |
@elasticmachine merge upstream |
@ymao1 Great findings! Since they are also present on main branch I created 2 separate github issues:
|
/> | ||
</EuiFormRow> | ||
{createDataView ? ( | ||
<EuiPopoverFooter paddingSize="none"> |
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.
@andreadelrio Updated styles for the button in the popover:
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.
@jughosta this needs a further reduction of padding. I'd remove the padding highlighted here with a CSS override.
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.
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! Nice job
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.
Lot's of great fine-tuning since the last time I've checked 👍 While giving it another testing round I encountered a reason why we should not allow the user to create data views in the rule flyout. Users could create data views without time field which would lead to invalid rules. I therefore would suggest to not provide the functionality of adding data views in this area
One tiny nit, when I decided I don't wanna create this rule type, so returning to the selection of all rule types I'm getting an error message
@kertal I would rather keep this functionality and add a separate validation message to notify that the selected data view requires to have a timestamp. Users can currently select an existing data view in flyout on Discover page too and we don't validate that: We could also address it as a followup PR since this problem is already present on main branch.
This also present on main branch and I think is unrelated to "Elasticsearch query" work we do here. Can we create a separate issue for it? |
@elasticmachine merge upstream |
Makes sense!
Makes sense part II! Will finish my review now, was delayed by a thunderstorm while walking to my hut |
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, testes again with cloud deployment, by creating a alert rule for KQL & Lucene , and another for Query DSL. Works as expected. Thx a lot for brining this over the finishing line! 🥳
@kertal Thanks for review and testing! Created 2 more tickets based on your comments: |
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.
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.
Design changes LGTM.
💚 Build SucceededMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @jughosta |
Closes #134183
Summary
This PR brings an improved and more convenient UI for creating rules to Management page as we have it now on Discover page.
Steps to test:
Stack Management > New rule > Elasticsearch Query

"KQL or Lucene" is selected

"Query DSL" is selected

Discover > Alerts > Create search threshold rule

Checklist