File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
components/public-api-server/pkg/apiv1 Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 5
5
package apiv1
6
6
7
7
import (
8
+ "github.com/gitpod-io/gitpod/common-go/log"
8
9
db "github.com/gitpod-io/gitpod/components/gitpod-db/go"
9
10
v1 "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1"
10
11
)
@@ -53,5 +54,8 @@ func pageFromResults[T any](results []T, p *v1.Pagination) []T {
53
54
end = size
54
55
}
55
56
57
+ log .Info ("start-end" , start , end )
58
+ log .Info ("results" , results )
59
+
56
60
return results [start :end ]
57
61
}
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ func (s *ProjectsService) ListProjects(ctx context.Context, req *connect.Request
118
118
if err != nil {
119
119
return nil , proxy .ConvertError (err )
120
120
}
121
+ log .Info ("user projects" , projects )
121
122
}
122
123
123
124
if teamID != "" {
@@ -130,13 +131,15 @@ func (s *ProjectsService) ListProjects(ctx context.Context, req *connect.Request
130
131
if err != nil {
131
132
return nil , proxy .ConvertError (err )
132
133
}
134
+ log .Info ("team projects" , projects )
133
135
}
134
136
135
137
// We're extracting a particular page of results from the full set of results.
136
138
// This is wasteful, but necessary, until we either:
137
139
// * Add new APIs to server which support pagination
138
140
// * Port the query logic to Public API
139
141
results := pageFromResults (projects , req .Msg .GetPagination ())
142
+ log .Info ("results" , results )
140
143
141
144
return connect .NewResponse (& v1.ListProjectsResponse {
142
145
Projects : projectsToAPIResponse (results ),
You can’t perform that action at this time.
0 commit comments