[
https://issues.apache.org/jira/browse/DRILL-8162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17503619#comment-17503619
]
ASF GitHub Bot commented on DRILL-8162:
---------------------------------------
estherbuchwalter commented on a change in pull request #2489:
URL: https://github.com/apache/drill/pull/2489#discussion_r822706862
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/DrillRestServer.java
##########
@@ -188,20 +198,13 @@ public WebUserConnection provide() {
}
// User is logged in, get/set the WebSessionResources attribute
- WebSessionResources webSessionResources =
- (WebSessionResources)
session.getAttribute(WebSessionResources.class.getSimpleName());
+ WebSessionResources webSessionResources = (WebSessionResources)
session.getAttribute(WebSessionResources.class.getSimpleName());
if (webSessionResources == null) {
// User is login in for the first time
final DrillbitContext drillbitContext = workManager.getContext();
final DrillConfig config = drillbitContext.getConfig();
- final UserSession drillUserSession = UserSession.Builder.newBuilder()
- .withCredentials(UserBitShared.UserCredentials.newBuilder()
- .setUserName(sessionUserPrincipal.getName())
- .build())
- .withOptionManager(drillbitContext.getOptionManager())
-
.setSupportComplexTypes(config.getBoolean(ExecConstants.CLIENT_SUPPORT_COMPLEX_TYPES))
- .build();
+ final UserSession drillUserSession =
UserSession.Builder.newBuilder().withCredentials(UserBitShared.UserCredentials.newBuilder().setUserName(sessionUserPrincipal.getName()).build()).withOptionManager(drillbitContext.getOptionManager()).setSupportComplexTypes(config.getBoolean(ExecConstants.CLIENT_SUPPORT_COMPLEX_TYPES)).build();
Review comment:
Ok, sure. I think this is from reformatting the code.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
> Add OpenAPI Specification documentation for Drill's REST API
> ------------------------------------------------------------
>
> Key: DRILL-8162
> URL: https://issues.apache.org/jira/browse/DRILL-8162
> Project: Apache Drill
> Issue Type: Improvement
> Components: Documentation
> Reporter: Esther Buchwalter
> Priority: Minor
>
> Used Swagger Core to produce an OpenAPI specification for Drill's REST API.
> Added an HTML script to produce the Swagger UI when you visit:
> {code:java}
> hostname:8047/static/swagger-ui.html{code}
> Used Swagger annotations to populate the Swagger UI with the relevant
> information.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)