-
Notifications
You must be signed in to change notification settings - Fork 225
feat: migrate registry/polaris #1017
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
22aa1dd to
1e49020
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 PR migrates the Polaris registry example from the compatibility layer (compatibility/polaris/registry/) to the modern API pattern in registry/polaris/, aligning it with other registry examples like Nacos and Zookeeper.
Changes:
- Migrated Polaris registry implementation to use modern Dubbo-go v3 API with
dubbo.NewInstance()pattern instead of legacy config-based approach - Added comprehensive integration tests for Polaris registry functionality
- Updated documentation to reflect the new location and modern usage patterns
Reviewed changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| start_integrate_test.sh | Added registry/polaris to integration test suite |
| registry/polaris/proto/greet.proto | Added protobuf service definition for Greet service |
| registry/polaris/proto/greet.pb.go | Generated protobuf code from greet.proto |
| registry/polaris/proto/greet.triple.go | Generated Triple protocol code for Greet service |
| registry/polaris/go-server/cmd/server.go | Server implementation using modern API with registry.WithPolaris() |
| registry/polaris/go-client/cmd/client.go | Client implementation using modern API with registry.WithPolaris() |
| registry/polaris/README.md | English documentation for running the example |
| registry/polaris/README-zh.md | Chinese documentation for running the example |
| integrate_test/registry/polaris/tests/integration/registry_test.go | Integration test validating Polaris registry functionality |
| integrate_test/registry/polaris/tests/integration/main_test.go | Test setup and client initialization for integration tests |
| compatibility/polaris/registry/* | Removed legacy config-based implementation files |
| registry/README.md | Added link to Polaris registry example |
| README.md, README_CN.md | Removed references to old compatibility/polaris/registry path |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
@marsevilspirit plz take a look. |
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.
add a language switch btn and rename README-zh to README_CN
中文 | [English](README.md)
Alanxtl
left a comment
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.
lgtm
Summary
Migrate compatibility/polaris/registry/ to registry/polaris/ using the modern API pattern.
Changes
Move from compatibility/polaris/registry/ to registry/polaris/
Add related integrate test.
#958