Skip to content

Convert remaining license methods to isAllowed #55908

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

Merged
merged 6 commits into from
Apr 30, 2020

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Apr 29, 2020

This commit converts the remaining isXXXAllowed methods to instead of
use isAllowed with a Feature value. There are a couple other methods
that are static, as well as some licensed features that check the
license directly, but those will be dealt with in other followups.

This commit converts the remaining isXXXAllowed methods to instead of
use isAllowed with a Feature value. There are a couple other methods
that are static, as well as some licensed features that check the
license directly, but those will be dealt with in other followups.
@rjernst rjernst added >refactoring :Security/License License functionality for commercial features v8.0.0 v7.8.0 labels Apr 29, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security (:Security/License)

@elasticmachine elasticmachine added the Team:Security Meta label for security team label Apr 29, 2020
@rjernst rjernst requested a review from tvernum April 29, 2020 04:09

MACHINE_LEARNING(OperationMode.PLATINUM, true),

TRANSFORM(OperationMode.MISSING, true),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love the use of MISSING here - I think it will confuse future readers and those who are trying to add Basic licensed features, but I think the solution is to remove MISSING entirely in a separate PR. I don't think we need to retain it as an operation mode.

@rjernst rjernst merged commit 316a2f1 into elastic:master Apr 30, 2020
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Apr 30, 2020
This commit converts the remaining isXXXAllowed methods to instead of
use isAllowed with a Feature value. There are a couple other methods
that are static, as well as some licensed features that check the
license directly, but those will be dealt with in other followups.
rjernst added a commit that referenced this pull request Apr 30, 2020
This commit converts the remaining isXXXAllowed methods to instead of
use isAllowed with a Feature value. There are a couple other methods
that are static, as well as some licensed features that check the
license directly, but those will be dealt with in other followups.
@rjernst rjernst deleted the refactor_license11 branch August 25, 2020 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport pending >refactoring :Security/License License functionality for commercial features Team:Security Meta label for security team v7.8.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants