Conversation
Codecov Report
@@ Coverage Diff @@
## master #1845 +/- ##
============================================
- Coverage 66.93% 66.92% -0.02%
- Complexity 444 731 +287
============================================
Files 446 446
Lines 37966 37948 -18
Branches 5410 5410
============================================
- Hits 25413 25397 -16
+ Misses 9957 9956 -1
+ Partials 2596 2595 -1
Continue to review full report at Codecov.
|
| // Close the connection as soon as the error message is sent. | ||
| ctx.writeAndFlush(new DefaultFullHttpResponse(HTTP_1_1, UNAUTHORIZED)) | ||
| .addListener(ChannelFutureListener.CLOSE); | ||
| .addListener(ChannelFutureListener.CLOSE); |
There was a problem hiding this comment.
maybe we should keep the origin align?
There was a problem hiding this comment.
but the current style check specify that the code indented in multiples of 4,so we need to decide which style to use
There was a problem hiding this comment.
but the current style check specify that the code indented in multiples of 4,so we need to decide which style to use
yep, we'll discuss this issue in the developer group, ensure the rule
| Charset.forName("UTF-8")); | ||
| StandardCharsets.UTF_8); |
There was a problem hiding this comment.
we use the hugegraph-style in the wiki (not java original style)
align the param with the highly priority
| import static io.netty.handler.codec.http.HttpHeaderNames.CONNECTION; | ||
| import static io.netty.handler.codec.http.HttpHeaderNames.UPGRADE; | ||
| import static io.netty.handler.codec.http.HttpResponseStatus.UNAUTHORIZED; | ||
| import static io.netty.handler.codec.http.HttpVersion.HTTP_1_1; | ||
| import static org.apache.tinkerpop.gremlin.groovy.jsr223.dsl.credential.CredentialGraphTokens.PROPERTY_PASSWORD; | ||
| import static org.apache.tinkerpop.gremlin.groovy.jsr223.dsl.credential.CredentialGraphTokens.PROPERTY_USERNAME; |
There was a problem hiding this comment.
so as these import rules, u could refer the style file in root dir to improve them
| System.out.println(notEmptyPrompt); | ||
| LOG.info(notEmptyPrompt); |
There was a problem hiding this comment.
seems it don't print in the log file (print on the console is right?) @javeme
There was a problem hiding this comment.
yes we need System.out sometimes like when using the console
| ThreadFactory threadFactory) { | ||
| super(corePoolSize, maxPoolSize, 0L, TimeUnit.MILLISECONDS, | ||
| new LinkedBlockingQueue<Runnable>(), threadFactory); | ||
| new LinkedBlockingQueue<>(), threadFactory); |
|
Open a new vote in #1848. we could discuss there. |
| static { | ||
| MetricsUtil.registerGauge(RestServer.class, "batch-write-threads", | ||
| () -> batchWriteThreads.intValue()); | ||
| BATCH_WRITE_THREADS::intValue); |
| } | ||
|
|
||
| public static class RolePerm { | ||
| class RolePerm { |
There was a problem hiding this comment.
prefer to keep public static class
| } | ||
|
|
||
| public static class RequiredPerm { | ||
| class RequiredPerm { |
There was a problem hiding this comment.
prefer to keep public static class
|
|
||
| private static final Set<String> PROTECT_METHODS = ImmutableSet.of( | ||
| "instance"); | ||
| "instance"); |
| return verifySchemaPermission(HugePermission.READ, () -> { | ||
| return this.hugegraph.propertyKey(key); | ||
| }); | ||
| return verifySchemaPermission(HugePermission.READ, () -> this.hugegraph.propertyKey(key)); |
There was a problem hiding this comment.
prefer to keep origin style for debug and readability
| System.out.println(notEmptyPrompt); | ||
| LOG.info(notEmptyPrompt); |
There was a problem hiding this comment.
yes we need System.out sometimes like when using the console
rt