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

Add some schema helper methods for SessionPool #312

Merged
merged 11 commits into from Feb 2, 2024

Conversation

haoxins
Copy link
Collaborator

@haoxins haoxins commented Feb 1, 2024

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number:

#311

Description:

How do you solve it?

Special notes for your reviewer, ex. impact of this fix, design document, etc:

@haoxins haoxins marked this pull request as ready for review February 1, 2024 13:03
@codecov-commenter
Copy link

codecov-commenter commented Feb 1, 2024

Codecov Report

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

Comparison is base (5d9b457) 63.17% compared to head (bb03a04) 63.69%.

Files Patch % Lines
session_pool.go 60.31% 17 Missing and 8 partials ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #312      +/-   ##
==========================================
+ Coverage   63.17%   63.69%   +0.51%     
==========================================
  Files           9       10       +1     
  Lines        2466     2570     +104     
==========================================
+ Hits         1558     1637      +79     
- Misses        778      795      +17     
- Partials      130      138       +8     

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

label.go Outdated
type LabelFieldSchema struct {
Field string
Type string
Null bool
Copy link
Contributor

Choose a reason for hiding this comment

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

IsNull is better for bool var name?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I change it to Nullable

Default string `nebula:"Default"`
Comment string `nebula:"Comment"`
}

Copy link
Contributor

Choose a reason for hiding this comment

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

we can define LabelName here to represent the result of show tags/show edges.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

session_pool.go Outdated Show resolved Hide resolved
@@ -0,0 +1,78 @@
package nebula_go
Copy link
Contributor

Choose a reason for hiding this comment

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

please add copyright for new files.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@haoxins haoxins requested a review from Nicole00 February 2, 2024 05:45
Copy link
Contributor

@Nicole00 Nicole00 left a comment

Choose a reason for hiding this comment

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

Great work! Thanks for your contribution again!

@Nicole00 Nicole00 merged commit 0b7a337 into vesoft-inc:master Feb 2, 2024
20 checks passed
@haoxins haoxins deleted the session_pool_helpers branch February 2, 2024 08:11
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.

None yet

3 participants