-
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
Don't show "You have not been authorized to create any Rule types" message while request to get rule types is in flight #145407
Conversation
💚 Build Succeeded
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
To update your PR or re-run it, just comment with: |
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.
it looks good! but it will have been nice to have some kind of test but it look like that we did not have any at the first place :(
Pinging @elastic/response-ops (Team:ResponseOps) |
Pinging @elastic/actionable-observability (Team: Actionable Observability) |
…ssage while request to get rule types is in flight (elastic#145407) (cherry picked from commit e01649e)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…es" message while request to get rule types is in flight (#145407) (#145506) # Backport This will backport the following commits from `main` to `8.6`: - [Don't show "You have not been authorized to create any Rule types" message while request to get rule types is in flight (#145407)](#145407) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Coen Warmer","email":"[email protected]"},"sourceCommit":{"committedDate":"2022-11-17T07:19:07Z","message":"Don't show \"You have not been authorized to create any Rule types\" message while request to get rule types is in flight (#145407)","sha":"e01649e7b23d9bb0b855b2ba2081ae72cc49f815","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","Team: Actionable Observability","v8.6.0","v8.7.0"],"number":145407,"url":"https://github.com/elastic/kibana/pull/145407","mergeCommit":{"message":"Don't show \"You have not been authorized to create any Rule types\" message while request to get rule types is in flight (#145407)","sha":"e01649e7b23d9bb0b855b2ba2081ae72cc49f815"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/145407","number":145407,"mergeCommit":{"message":"Don't show \"You have not been authorized to create any Rule types\" message while request to get rule types is in flight (#145407)","sha":"e01649e7b23d9bb0b855b2ba2081ae72cc49f815"}}]}] BACKPORT--> Co-authored-by: Coen Warmer <[email protected]>
Closes #145396.
Summary
This PR makes sure
/api/alerting/rule_types
is done loading before it shows the available rules. Therefore, the UI will not default anymore to the "You have not been authorized to create any Rule types" message while the request is in flight.Screen.Recording.2022-11-16.at.17.13.08.mov