-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Consolidate capabilities check for Stack Management #69437
Consolidate capabilities check for Stack Management #69437
Conversation
212bc6b
to
5f262de
Compare
@@ -24,6 +24,6 @@ export const capabilitiesProvider = () => ({ | |||
visualize: true, | |||
console: true, | |||
advanced_settings: true, | |||
index_patterns: true, | |||
indexPatterns: 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.
note: The NP migration for index pattern management changed the capability from index_patterns
to indexPatterns
, so this PR updates all references as appropriate.
Pinging @elastic/kibana-security (Team:Security) |
…nsolidate-capabilities-check
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 for renames in som
and features
plugins
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.
nice work!
@elasticmachine merge upstream |
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
@elasticmachine merge upstream |
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> # Conflicts: # x-pack/test/functional/apps/advanced_settings/feature_controls/advanced_settings_security.ts
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Summary
Currently, each management item secured by Feature Controls is responsible for disabling itself if its corresponding management UI Capability is disabled.
This PR removes the per-app logic in favor of a centralized approach, to reduce the chance of incorrect or missing checks.
Required by #67791
Also resolves #57377 (Flaky test runner for verification: https://kibana-ci.elastic.co/job/kibana+flaky-test-suite-runner/546/)