-
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
[RAM] Hide Logs tab in Rules page to unauthorized users, deduplicate rule types requests #171417
[RAM] Hide Logs tab in Rules page to unauthorized users, deduplicate rule types requests #171417
Conversation
Remove old useLoadRuleTypes hook usages Closes elastic#155394
e2d03a6
to
70a5d32
Compare
70a5d32
to
16760f4
Compare
Pinging @elastic/response-ops (Team:ResponseOps) |
…o/kibana into 158256-actions-role-sees-rules
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
// resolve(__dirname, './uptime'), | ||
// resolve(__dirname, './ml'), |
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.
Accidental 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.
Uh, thanks for spotting this!
queryKey: ['loadRuleTypes'], | ||
queryFn, | ||
onError: onErrorFn, | ||
refetchOnWindowFocus: false, | ||
staleTime: 60 * 1000, |
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.
Let's leave a comment here as to why we need to modify the stale time
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.
Obx UX Changes 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.
LGTM
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
Page load bundle
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Closes #158256, #155394
Summary
Actions and Connectors
but no rule types #158256)useLoadRuleTypes
hook usages to the newuseLoadRuleTypesQuery
hook