-
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
[Custom threshold] Add group by filters to the custom threshold view in app URL #177016
[Custom threshold] Add group by filters to the custom threshold view in app URL #177016
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
/ci |
/ci |
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
@@ -37,12 +37,12 @@ export const legacyExperimentalFieldMap = { | |||
}, | |||
[ALERT_GROUP_FIELD]: { | |||
type: 'keyword', | |||
array: false, | |||
array: true, |
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.
@ymao1 Is it safe to fix this field mapping? array: false was wrong and it should have been true.
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
[groupFieldName || group.field]: { | ||
value: group.value, | ||
}, | ||
match_phrase: { |
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.
@maryam-saeidi why do we need match_phrase
instead of term
?
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.
Filters use match_phrase
by default, so I used them here, too.
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.
@maryam-saeidi Do you know what this notification is about? It appears when removing filter in case of using ad-hoc dataview while creating rule.
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
I checked locally and the same happens in case I create an ad-hoc data view directly in Discover, not sure what exactly it means. (I asked this question in Slack) |
…in app URL (elastic#177016) Resolves elastic#173713 ## Summary This PR adds group by filters to the view in the app URL for the custom threshold rule: ![image](https://github.com/elastic/kibana/assets/12370520/c84eecfc-b196-4268-acdd-57bae86ac4c4) I also moved some types to the common folder and adjusted them to match the reality. ## 🧪 How to test - Create a custom threshold rule with group by - One with persisted data view - One with an ad-hoc data view - Check the view in app link in the alerts table, you should also see the group filters there. - Check the view in app URL from the actions, it should also include the group filters.
Resolves #173713
Summary
This PR adds group by filters to the view in the app URL for the custom threshold rule:
I also moved some types to the common folder and adjusted them to match the reality.
🧪 How to test