-
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
[Search] refactor: unify license check utils #197675
[Search] refactor: unify license check utils #197675
Conversation
Introduced helpers for all the license checks and moved them to common utils so that they can be used outside of the licensing logic file. (we may even want to move these to a package in the future). Additionally I updated the logic to utilize the built-in License class utils instead of checking for specific license levels ourselves. This should improve the reliability in the case where we ever change license types etc.
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
History
|
@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.
code review only
Starting backport for target branches: 8.x |
(cherry picked from commit 5a138e3)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [[Search] refactor: unify license check utils (#197675)](#197675) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Rodney Norris","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-13T12:19:23Z","message":"[Search] refactor: unify license check utils (#197675)","sha":"5a138e392ff794561dc9a18d9a631be181543dca","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","backport:prev-minor","v8.17.0"],"title":"[Search] refactor: unify license check utils","number":197675,"url":"https://github.com/elastic/kibana/pull/197675","mergeCommit":{"message":"[Search] refactor: unify license check utils (#197675)","sha":"5a138e392ff794561dc9a18d9a631be181543dca"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197675","number":197675,"mergeCommit":{"message":"[Search] refactor: unify license check utils (#197675)","sha":"5a138e392ff794561dc9a18d9a631be181543dca"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Rodney Norris <[email protected]>
Summary
Introduced helpers for all the license checks and moved them to common utils so that they can be used outside of the licensing logic file. (we may even want to move these to a package in the future).
Additionally I updated the logic to utilize the built-in License class utils instead of checking for specific license levels ourselves. This should improve the reliability in the case where we ever change license types etc.
Checklist