vesoft-inc / nebula-java

Client API and data importer of Nebula Graph in Java
Apache License 2.0
171 stars 121 forks source link

support to config the version white list #571

Closed Nicole00 closed 9 months ago

Nicole00 commented 9 months ago

close https://github.com/vesoft-inc/nebula-java/issues/567 close #568 close #569

the new config for version is optional, there is no confluence for old users.

For users who need to config a special version, the usage is:

NebulaPool:

NebulaPoolConfig nebulaPoolConfig = new NebulaPoolConfig();
nebulaPoolConfig.setVersion("test");

SessionPool:

SessionPoolConfig sessionPoolConfig =new SessionPoolConfig(addresses, spaceName, user, password)
                        .setVersion("test");

MetaClient:

 MetaClient client = new MetaClient(address, port);
 client.setVersion("test");

StorageClient:

StorageClient storageClient = new StorageClient(address);
storageClient.setVersion("test");
codecov-commenter commented 9 months ago

Codecov Report

Attention: 18 lines in your changes are missing coverage. Please review.

Comparison is base (86d4a76) 62.85% compared to head (85c5f10) 63.03%.

Files Patch % Lines
...ava/com/vesoft/nebula/client/meta/MetaManager.java 50.00% 6 Missing :warning:
...vesoft/nebula/client/graph/net/SyncConnection.java 64.28% 4 Missing and 1 partial :warning:
...va/com/vesoft/nebula/client/graph/SessionPool.java 50.00% 2 Missing :warning:
.../vesoft/nebula/client/graph/SessionPoolConfig.java 50.00% 2 Missing :warning:
...ebula/client/graph/net/RoundRobinLoadBalancer.java 75.00% 2 Missing :warning:
...com/vesoft/nebula/client/graph/net/NebulaPool.java 90.90% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #571 +/- ## ============================================ + Coverage 62.85% 63.03% +0.18% - Complexity 801 807 +6 ============================================ Files 72 72 Lines 3963 4004 +41 Branches 539 542 +3 ============================================ + Hits 2491 2524 +33 - Misses 1098 1106 +8 Partials 374 374 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.