Skip to content

Commit 5be3c96

Browse files
committed
feat: refactor service list and detail APIs to use serviceName:version:group identity (#1430)
- Change Service proto: remove providers/consumers/features, add methods field - Service List API: query Service resource instead of ServiceProviderMetadata, return serviceName/version/group/serviceKey (no providerAppName) - Service Detail API: return language + methods from Service resource - Provider subscriber: sync methods from ServiceProviderMetadata events into Service resource (merge/dedup across multiple providers) - Consumer subscriber: no longer writes to Service resource - Distribution API: revert to querying ServiceConsumerMetadata index - Add ByServiceConsumerServiceKey/ByServiceProviderServiceKey indexes - Frontend: update search/detail/distribution views accordingly - Add unit tests for service API and subscriber lifecycle Fixes #1430
1 parent 2757e19 commit 5be3c96

29 files changed

Lines changed: 5171 additions & 4322 deletions

api/mesh/v1alpha1/service.pb.go

Lines changed: 25 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/mesh/v1alpha1/service.proto

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,5 @@ message Service{
2121

2222
string language = 4;
2323

24-
repeated string providers = 5;
25-
26-
repeated string consumers = 6;
27-
28-
map<string, string> features = 99;
29-
}
24+
repeated string methods = 5;
25+
}

0 commit comments

Comments
 (0)