-
Notifications
You must be signed in to change notification settings - Fork 63
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
Improve usability of authentication client #349
Conversation
Codecov Report
@@ Coverage Diff @@
## master #349 +/- ##
============================================
+ Coverage 66.69% 70.04% +3.34%
Complexity 12 12
============================================
Files 216 234 +18
Lines 4138 4353 +215
Branches 547 560 +13
============================================
+ Hits 2760 3049 +289
+ Misses 1239 1159 -80
- Partials 139 145 +6
Continue to review full report at Codecov.
|
apiml-common/src/main/java/com/ca/mfaas/product/gateway/GatewayClient.java
Outdated
Show resolved
Hide resolved
Signed-off-by: janda06 <david.janda@broadcom.com>
changed catalog to use the lookup service various fixes for catalog startup aligned componentscan to common place for gw Signed-off-by: janda06 <david.janda@broadcom.com>
Signed-off-by: janda06 <david.janda@broadcom.com>
- Deleted gateway login url - Removed @EnableConfigurationProperties from main classes - Removed @configuration from main classes - Some refactoring - Unit tests disabled temporary
Signed-off-by: janda06 <david.janda@broadcom.com>
Signed-off-by: at670475 <andrea.tabone@broadcom.com>
739f17f
to
d1d9ab7
Compare
Signed-off-by: janda06 <david.janda@broadcom.com>
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.
Appreciate the hard work. Thank you!
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.
Well done! Thanks!
@@ -104,7 +106,7 @@ private void processInstance(Applications filteredServices, Application applicat | |||
String value = instanceInfo.getMetadata().get(API_ENABLED_METADATA_KEY); | |||
boolean apiEnabled = true; | |||
if (value != null) { | |||
apiEnabled = Boolean.valueOf(value); | |||
apiEnabled = Boolean.parseBoolean(value); | |||
} | |||
|
|||
// only add api enabled services |
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.
Only add? or add only API enabled services?
@@ -42,11 +45,17 @@ | |||
|
|||
/** | |||
* Periodically refresh the container/service caches | |||
* Depends on the GatewayClient: no refreshes happen when it's not initialized |
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'd rather explain what will happen if "it's initiated". For example "The GatewayClient initialization refreshes the container/service cache"
@@ -149,16 +158,16 @@ private void processServiceInstance(Set<String> containersUpdated, Applications | |||
} | |||
|
|||
/** | |||
* Go ahead amd retrieve this instances API doc and update the cache | |||
* Go ahead and retrieve this instances API doc and update the cache |
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.
This doesn't make much sense grammatically.
"Ensure that you retrieve the API doc of this instance, and update the cache". Also we need to make sure it's understood what instance we refer to here. What is "This instance"?
import java.net.URI; | ||
|
||
/** | ||
* GatewayInstanceInitializer takes care about starting the lookup for Gateway instance after the context is started |
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.
"GatewayInstanceInitializer starts the lookup for Gateway instance after the context is started"
"takes care" is too vague
|
||
/** | ||
* GatewayInstanceInitializer takes care about starting the lookup for Gateway instance after the context is started | ||
* Its meant to be created as a bean, as it is for example by SecurityServiceConfiguration in security-service-client-spring |
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'd rewrite this - has grammatical mistakes and is generally hard to understand
Happy Reviews!