-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
build,ui: add support for protobuf WKTs #14396
Conversation
Reviewed 1 of 1 files at r1, 1 of 1 files at r2, 58 of 58 files at r3, 1 of 1 files at r5, 60 of 60 files at r6. build/protobuf.mk, line 51 at r3 (raw file):
Is that weird M necessary after $(MAPPINGS)? Just looks off to me, assuming this all works finen pkg/server/status/status.proto, line 40 at r3 (raw file):
Why did these change? pkg/ui/src/containers/events.spec.tsx, line 42 at r3 (raw file):
well this was a bizarre choice pkg/ui/src/containers/metricsDataProvider.spec.tsx, line 45 at r3 (raw file):
sick pkg/ui/src/util/api.spec.ts, line 377 at r3 (raw file):
Couldn't at least the slice part be made into a common method?
Or is there a subtle difference between these? Comments from Reviewable |
LGTM mostly, but you are right that the buffer slicing is annoying and i'm wondering if it shouldn't be extracted to a common method. There may be no good way to get the "encode().finish()" bit due to the various types involved, but the slicing can almost certainly be extracted and does involve some difficult-to-grok parameters. |
Extracted! Review status: all files reviewed at latest revision, 5 unresolved discussions, all commit checks successful. build/protobuf.mk, line 51 at r3 (raw file): Previously, mrtracy (Matt Tracy) wrote…
Yeah, it's necessary. Note that it was there before this change as well. pkg/server/status/status.proto, line 40 at r3 (raw file): Previously, mrtracy (Matt Tracy) wrote…
Because pkg/ui/src/containers/events.spec.tsx, line 42 at r3 (raw file): Previously, mrtracy (Matt Tracy) wrote…
Yup! pkg/ui/src/containers/metricsDataProvider.spec.tsx, line 45 at r3 (raw file): Previously, mrtracy (Matt Tracy) wrote…
🎊 pkg/ui/src/util/api.spec.ts, line 377 at r3 (raw file): Previously, mrtracy (Matt Tracy) wrote…
No, you're absolutely right. Pulled out a util function. Comments from Reviewable |
Reviewed 1 of 59 files at r4, 14 of 14 files at r7. pkg/ui/src/components/graphs.tsx, line 361 at r7 (raw file):
why this syntax instead of Comments from Reviewable |
- Address warnings in server/status/status.proto - Remove overzealous `any`s Closes #6616
See individual commits.
This change is