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 to config the version white list #300

Merged
merged 4 commits into from
Jan 3, 2024

Conversation

Nicole00
Copy link
Contributor

@Nicole00 Nicole00 commented Jan 2, 2024

close #299

@codecov-commenter
Copy link

codecov-commenter commented Jan 2, 2024

Codecov Report

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

Comparison is base (fde0af0) 63.30% compared to head (2a5a573) 63.41%.

Files Patch % Lines
configs.go 20.00% 4 Missing ⚠️
connection_pool.go 75.00% 0 Missing and 2 partials ⚠️
connection.go 85.71% 1 Missing ⚠️
session_pool.go 50.00% 0 Missing and 1 partial ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #300      +/-   ##
==========================================
+ Coverage   63.30%   63.41%   +0.11%     
==========================================
  Files           8        8              
  Lines        2382     2392      +10     
==========================================
+ Hits         1508     1517       +9     
- Misses        748      750       +2     
+ Partials      126      125       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Nicole00 Nicole00 force-pushed the version_white_list branch from 3dc491d to f7522c1 Compare January 2, 2024 10:38
@HarrisChu
Copy link
Contributor

why need user provide the version?
user changes the client_white_list in graphd?

connection.go Outdated
@@ -30,6 +30,7 @@ type connection struct {
sslConfig *tls.Config
useHTTP2 bool
httpHeader http.Header
version string
Copy link
Contributor

Choose a reason for hiding this comment

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

please run go fmt to make aligned

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

@Nicole00
Copy link
Contributor Author

Nicole00 commented Jan 3, 2024

why need user provide the version? user changes the client_white_list in graphd?

Yeah, this version config is optional. the default value is 3.0.0, and if you set value for version, need to make sure the value is in client_white_list in nebula-graph.conf.

@Nicole00 Nicole00 merged commit ae7b5d8 into vesoft-inc:master Jan 3, 2024
19 checks passed
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.

support to config the version white list
3 participants