fix: store digital-human upload text in files, slim jsonb for list
App / Format, vet, test, and build (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Avoid pulling multi-MB result payloads on uploads?view=summary over remote DB, which caused 30s client timeouts and HTTP 500. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -47,12 +47,8 @@ func respond(c *gin.Context, status int, value any, err error) {
|
||||
func (s *Service) Register(group *gin.RouterGroup) {
|
||||
r := group.Group("/uploads")
|
||||
r.GET("", func(c *gin.Context) {
|
||||
rows, e := s.List(c.Request.Context(), c.Query("kind"), c.Query("target_id"))
|
||||
if e == nil && c.Query("view") == "summary" {
|
||||
for i := range rows {
|
||||
rows[i].Result = uploadResultSummary(rows[i].Result)
|
||||
}
|
||||
}
|
||||
summary := c.Query("view") == "summary"
|
||||
rows, e := s.List(c.Request.Context(), c.Query("kind"), c.Query("target_id"), summary)
|
||||
respond(c, 200, rows, e)
|
||||
})
|
||||
r.POST("", func(c *gin.Context) {
|
||||
|
||||
Reference in New Issue
Block a user