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 ShowSpaces for SessionPool #313

Merged
merged 3 commits into from
Feb 4, 2024

Conversation

haoxins
Copy link
Collaborator

@haoxins haoxins commented Feb 2, 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 force-pushed the feat-add-show-space branch 5 times, most recently from 0fe03f1 to abbe765 Compare February 2, 2024 09:29
@haoxins haoxins force-pushed the feat-add-show-space branch from abbe765 to dbf83de Compare February 2, 2024 09:38
@haoxins haoxins marked this pull request as ready for review February 2, 2024 09:42
@codecov-commenter
Copy link

codecov-commenter commented Feb 2, 2024

Codecov Report

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

Comparison is base (0b7a337) 63.69% compared to head (122c690) 63.70%.

Files Patch % Lines
session_pool.go 66.66% 2 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     #313      +/-   ##
==========================================
+ Coverage   63.69%   63.70%   +0.01%     
==========================================
  Files          10       10              
  Lines        2570     2579       +9     
==========================================
+ Hits         1637     1643       +6     
- Misses        795      797       +2     
- Partials      138      139       +1     

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

session_pool.go Outdated
@@ -287,6 +287,18 @@ func (pool *SessionPool) ExecuteAndCheck(q string) (*ResultSet, error) {
return rs, nil
}

func (pool *SessionPool) ShowSpaces() ([]LabelName, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

its ambiguous to reuse the LabelName, can we redefine a struct SpaceName?

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 4, 2024 06:45
@Nicole00 Nicole00 merged commit a010d20 into vesoft-inc:master Feb 4, 2024
20 checks passed
@haoxins haoxins deleted the feat-add-show-space branch February 4, 2024 07:08
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.

3 participants