Skip to content
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

support entitlement api on adapter side #35

Merged
merged 6 commits into from
Apr 23, 2021

Conversation

vzakharchenko
Copy link
Owner

No description provided.

@@ -26,6 +29,8 @@ async function get(region, key) {
return defaultCache.get(key);
} if (region === 'resource') {
return resourceCache.get(key);
} if (region === 'rpt') {
return rptCache.get(key);
Copy link

Choose a reason for hiding this comment

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

Avoid too many return statements within this function.


async function put(region, key, value) {
async function put(region, key, value, ttl) {
Copy link

Choose a reason for hiding this comment

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

Function put has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.

@coveralls
Copy link

coveralls commented Apr 23, 2021

Coverage Status

Coverage decreased (-0.5%) to 88.889% when pulling 1a34778 on keycloak_entitlement_api into 661c83e on master.

@codeclimate
Copy link

codeclimate bot commented Apr 23, 2021

Code Climate has analyzed commit 1a34778 and detected 0 issues on this pull request.

View more on Code Climate.

@vzakharchenko vzakharchenko merged commit aff14f4 into master Apr 23, 2021
@vzakharchenko vzakharchenko deleted the keycloak_entitlement_api branch April 23, 2021 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants