-
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
Remove circular dependency between features and security #100206
Conversation
describe(`with a ${licenseType} license`, () => { | ||
it(`returns the ${featureConfig.id} feature augmented with appropriate sub feature privileges`, () => { | ||
const privileges = []; | ||
for (const featurePrivilege of featurePrivilegeIterator( |
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.
Is there a reason featurePrivilegeIterator
cannot belong to features
plugin?
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.
🤔 I can't think of a reason why it can't belong to the features
plugin. It's only required by the security
plugin today, but it's also not coupled to anything else within security
. If you'd prefer to make this part of the features
plugin contract, then I can move this out of security
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.
Yeah, let's move, IMO it belongs to features
plugin domain.
@elasticmachine merge upstream |
…legrego/issue-87388
|
||
export function* subFeaturePrivilegeIterator( | ||
export type SubFeaturePrivilegeIterator = ( |
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.
Nit: you added a TSDoc comment for FeaturePrivilegeIterator
, but missed it for SubFeaturePrivilegeIterator
here.
💚 Build SucceededMetrics [docs]Public APIs missing exports
Unknown metric groupsAPI count
References to deprecated APIs
History
To update your PR or re-run it, just comment with: |
) Co-authored-by: Kibana Machine <[email protected]>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…100341) Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Larry Gregory <[email protected]>
) Co-authored-by: Kibana Machine <[email protected]>
Summary
Moves the
feature_privileges_iterator
out of the security plugin and into the feature plugin.Resolves #87388