Skip to content
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

[8.6] [Actionable observability] Validate alert search bar query parameters (#145369) #145702

Merged
merged 1 commit into from
Nov 18, 2022

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.6:

Questions ?

Please refer to the Backport tool documentation

…elastic#145369)

Fixes elastic#144911, elastic#143640

## 📝 Summary

- Validate alert search bar query params using io-ts
- Make sure that we only enter one history for changes related to the
alert search bar
- Make sure to not save tab changes on the rule details page in the
history
- Use `DatePickerContextProvider` only for `overview` page to fix 143640

## 🧪 How to test
- In the alerts page URL, you should not see
`rangeFrom=now-15m&rangeTo=now` query parameters anymore
- Changing the alerts' page URL to an invalid one should not break the
page anymore
     - Example: `_a=(kuery:%27%27,rangeFrom:now-15m,rangeTo:12)`
- By changing alert search bar information, you should not see new
records added to the history
- Same for rule details page (either changing tab or alert search bar
parameters)

(cherry picked from commit 42a1062)
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
observability 432 435 +3

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
observability 491.4KB 495.7KB +4.3KB
Unknown metric groups

ESLint disabled in files

id before after diff
osquery 1 2 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 59 65 +6
osquery 108 113 +5
securitySolution 441 447 +6
total +19

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 67 73 +6
osquery 109 115 +6
securitySolution 518 524 +6
total +20

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @maryam-saeidi

@kibanamachine kibanamachine merged commit 57318d2 into elastic:8.6 Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants