-
Notifications
You must be signed in to change notification settings - Fork 210
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
License Caching and Add license enforcement to all APIs #3919
License Caching and Add license enforcement to all APIs #3919
Conversation
Signed-off-by: jan shahid shaik <[email protected]>
Signed-off-by: jan shahid shaik <[email protected]>
Signed-off-by: jan shahid shaik <[email protected]>
Signed-off-by: jan shahid shaik <[email protected]>
Signed-off-by: jan shahid shaik <[email protected]>
Signed-off-by: jan shahid shaik <[email protected]>
Signed-off-by: jan shahid shaik <[email protected]>
"/_status" -> | ||
{true, Req, State3}; | ||
_ -> | ||
case chef_license_worker:get_license() of |
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.
can we handle this case statement as a function, something like
_ ->
check_license(chef_license_worker:get_license(), Req, State3)
And:
check_license({valid_license..... }, Req, State ) ->
{ true, Req, State} ;
check_license({commercial_grace_period...
... etc
Makes it a little easier to test, and avoids deeply nesting the contents of service_available
which makes it easier to parse.
Signed-off-by: jan shahid shaik <[email protected]>
Signed-off-by: jan shahid shaik <[email protected]>
Quality Gate passedIssues Measures |
Quality Gate passedIssues Measures |
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
Description
[Please describe what this change achieves]
Implementation of license cache and changes in web machine to add license enforcement to all APIs
https://progresssoftware.atlassian.net/browse/CHEF-15863
https://progresssoftware.atlassian.net/browse/CHEF-12649
Issues Resolved
[List any existing issues this PR resolves, or any Discourse or
StackOverflow discussions that are relevant]
Check List