You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, in the TestGrid API, there is no way to determine what dashboard (or if dashboard X) belongs to a group or not. This makes the index complicated; while the current UI displays groups and next to each other, the new index needs to do a lot of work to show a view this clean.
You'll need to change the ListDashboard response to include the new data. Unfortunately, the Resource message is used in multiple places, and we don't want to break everything else.
Consider:
Replacing the "Resource" with a new "DashboardResource" message that you can then add whatever you want to.
Returning two "Resource"s, one to the Dashboard and another to the Group.
For more info, https://protobuf.dev/ is a good place to start. We use "proto3" everywhere, not proto2. There is a go-specific tutorial that is pretty useful.
NOTE: When you've changed the proto, do not worry about running "protoc" correctly. You can regenerate the go code with this command:
bazel run //hack:update-protos
Updating the API
The API that actually emits this data is here. I leave this one more open-ended, since there are a lot of examples in config.go and config_test.go to reference.
The text was updated successfully, but these errors were encountered:
Currently, in the TestGrid API, there is no way to determine what dashboard (or if dashboard X) belongs to a group or not. This makes the index complicated; while the current UI displays groups and next to each other, the new index needs to do a lot of work to show a view this clean.
The List of Dashboards endpoint (http://testgrid-data.k8s.io/api/v1/dashboards) should also include the dashboard group, if there is one.
To do this, you'll need to
Adding a New Field
TestGrid's API is defined with this proto. The proto only defines the shape of the API data, so multiple programs can use it.
testgrid/pb/api/v1/data.proto
Line 15 in b931ffc
You'll need to change the ListDashboard response to include the new data. Unfortunately, the Resource message is used in multiple places, and we don't want to break everything else.
Consider:
For more info, https://protobuf.dev/ is a good place to start. We use "proto3" everywhere, not proto2. There is a go-specific tutorial that is pretty useful.
NOTE: When you've changed the proto, do not worry about running "protoc" correctly. You can regenerate the go code with this command:
bazel run //hack:update-protos
Updating the API
The API that actually emits this data is here. I leave this one more open-ended, since there are a lot of examples in
config.go
andconfig_test.go
to reference.The text was updated successfully, but these errors were encountered: