-
Notifications
You must be signed in to change notification settings - Fork 89
move v2 APIs into v1 APIs #273
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
base: main
Are you sure you want to change the base?
Conversation
561c3bd
to
5349c03
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request moves v2 APIs from the v1 API package to consolidate the API structure. The PR removes duplicate API definitions and updates import references to use the main API package instead of the separate v2 package.
- Import references updated from
apiv2
toapi
in zero.go - Entire v2_test.go file removed
- Generated protobuf files updated with new API methods and unified API structure
Reviewed Changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
zero.go | Updates import from apiv2 to api package and references to use unified API types |
v2_test.go | Complete removal of v2-specific test file |
protos/api/cc.go | Removes v2-specific connection helper function |
protos/api/api_grpc.pb.go | Generated file with new v2 API methods added to main API service |
protos/api/api.pb.go | Generated file with new message types and enums moved from v2 |
protos/api.v2/api.v2_grpc.pb.go | Complete removal of v2-specific gRPC service definitions |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
1efa69f
to
fda084b
Compare
fda084b
to
d40e91d
Compare
if err != nil { | ||
return nil, fmt.Errorf("invalid namespace ID: %w", err) | ||
} | ||
opts = append(opts, WithNamespace(nsID)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a namespace is specified, but a username and password are not, should this not return an error?
No description provided.