Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Add pagination to ListTaskRuns and fix query history filters (#21319)

Danny Xu7d634e335189
diff --git a/action/command/api.go b/action/command/api.go
index d45c0f10b8..14719ca178 100644
--- a/action/command/api.go
+++ b/action/command/api.go
@@ -254,10 +254,25 @@ func (c *client) listTaskRuns(ctx context.Context, r *v1pb.ListTaskRunsRequest)
return resp.Msg, nil
}
-func (c *client) listAllTaskRuns(ctx context.Context, rolloutName string) (*v1pb.ListTaskRunsResponse, error) {
- return c.listTaskRuns(ctx, &v1pb.ListTaskRunsRequest{
- Parent: rolloutName + "/stages/-/tasks/-",
- })
+// listAllTaskRuns reads every task run of the rollout, following page tokens.
+func (c *client) listAllTaskRuns(ctx context.Context, rolloutName string) ([]*v1pb.TaskRun, error) {
+ var taskRuns []*v1pb.TaskRun
+ var pageToken string
+ for {
+ resp, err := c.listTaskRuns(ctx, &v1pb.ListTaskRunsRequest{
+ Parent: rolloutName + "/stages/-/tasks/-",
+ PageSize: 1000,
+ PageToken: pageToken,
+ })
+ if err != nil {
+ return nil, err
+ }
+ taskRuns = append(taskRuns, resp.TaskRuns...)
+ if resp.NextPageToken == "" {
+ return taskRuns, nil
+ }
+ pageToken = resp.NextPageToken
+ }
}
func (c *client) batchCancelTaskRuns(ctx context.Context, r *v1pb.BatchCancelTaskRunsRequest) (*v1pb.BatchCancelTaskRunsResponse, error) {
diff --git a/action/command/rollout.go b/action/command/rollout.go
index e391e8a075..b467aefd5f 100644
--- a/action/command/rollout.go
+++ b/action/command/rollout.go
@@ -278,7 +278,7 @@ func cancelRollout(ctx context.Context, client *client, rolloutName string) erro
return errors.Wrapf(err, "failed to list task runs")
}
taskRunsToCancelByStage := map[string][]string{}
- for _, taskRun := range taskRuns.TaskRuns {
+ for _, taskRun := range taskRuns {
if taskRun.Status == v1pb.TaskRun_RUNNING || taskRun.Status == v1pb.TaskRun_PENDING {
stage := strings.Split(taskRun.Name, "/tasks")[0]
taskRunsToCancelByStage[stage] = append(taskRunsToCancelByStage[stage], taskRun.Name)
diff --git a/backend/api/mcp/gen/openapi.yaml b/backend/api/mcp/gen/openapi.yaml
index 4798b19d68..ce0217856b 100644
--- a/backend/api/mcp/gen/openapi.yaml
+++ b/backend/api/mcp/gen/openapi.yaml
@@ -15250,6 +15250,24 @@ components:
The parent, which owns this collection of taskRuns.
Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}
Use "projects/{project}/plans/{plan}/rollout/stages/-/tasks/-" to list all taskRuns from a rollout.
+ pageSize:
+ type: integer
+ title: page_size
+ format: int32
+ description: |-
+ The maximum number of task runs to return. The service may return fewer
+ than this value.
+ If unspecified, at most 1000 task runs will be returned.
+ The maximum value is 1000; values above 1000 will be coerced to 1000.
+ pageToken:
+ type: string
+ title: page_token
+ description: |-
+ A page token, received from a previous `ListTaskRuns` call.
+ Provide this to retrieve the subsequent page.
+
+ When paginating, all other parameters provided to `ListTaskRuns` must match
+ the call that provided the page token.
title: ListTaskRunsRequest
additionalProperties: false
bytebase.v1.ListTaskRunsResponse:
@@ -15261,6 +15279,12 @@ components:
$ref: '#/components/schemas/bytebase.v1.TaskRun'
title: task_runs
description: The taskRuns from the specified request.
+ nextPageToken:
+ type: string
+ title: next_page_token
+ description: |-
+ A token, which can be sent as `page_token` to retrieve the next page.
+ If this field is omitted, there are no subsequent pages.
title: ListTaskRunsResponse
additionalProperties: false
bytebase.v1.ListUsersRequest:
@@ -19317,10 +19341,10 @@ components:
Supported filter:
- project: the project full name in "projects/{id}" format, support "==" operator.
- - database: the database full name in "instances/{id}/databases/{name}" format, support "==" operator.
- - instance: the instance full name in "instances/{id}" format, support "==" operator.
+ - database: the database full name in "instances/{id}/databases/{name}" or "projects/{project}/instances/{id}/databases/{name}" format, support "==" operator.
+ - instance: the instance full name in "instances/{id}" or "projects/{project}/instances/{id}" format, support "==" operator.
- type: the type, should be "QUERY" or "EXPORT", support "==" operator.
- - statement: the SQL statement, support ".contains()" operator.
+ - statement: the SQL statement, support "==" and ".contains()" operators.
For example:
project == "projects/{project}"
@@ -19328,6 +19352,7 @@ components:
instance == "instances/{instance}"
type == "QUERY"
type == "EXPORT"
+ statement == "SELECT 1;"
statement.contains("select")
type == "QUERY" && statement.contains("select")
title: SearchQueryHistoriesRequest
diff --git a/backend/api/v1/audit_redact_inventory_test.go b/backend/api/v1/audit_redact_inventory_test.go
index ebbab9c3b5..a7a398302b 100644
--- a/backend/api/v1/audit_redact_inventory_test.go
+++ b/backend/api/v1/audit_redact_inventory_test.go
@@ -669,7 +669,9 @@ var auditRecordedFields = []string{
"bytebase.v1.ListServiceAccountsRequest.page_token",
"bytebase.v1.ListServiceAccountsRequest.parent",
"bytebase.v1.ListServiceAccountsResponse.next_page_token",
+ "bytebase.v1.ListTaskRunsRequest.page_token",
"bytebase.v1.ListTaskRunsRequest.parent",
+ "bytebase.v1.ListTaskRunsResponse.next_page_token",
"bytebase.v1.ListUsersRequest.filter",
"bytebase.v1.ListUsersRequest.page_token",
"bytebase.v1.ListUsersResponse.next_page_token",
diff --git a/backend/api/v1/rollout_service.go b/backend/api/v1/rollout_service.go
index 92fe72e08c..5c8c5f9e86 100644
--- a/backend/api/v1/rollout_service.go
+++ b/backend/api/v1/rollout_service.go
@@ -372,19 +372,46 @@ func (s *RolloutService) ListTaskRuns(ctx context.Context, req *connect.Request[
if plan == nil {
return nil, connect.NewError(connect.CodeNotFound, errors.Errorf("rollout %d not found in project %s", planID, projectID))
}
+ // An unspecified page_size means the maximum rather than the usual 10: the
+ // wildcard parent reads a whole rollout, and bytebase-action binaries
+ // inside their compatibility window read it in one unpaginated call.
+ const maxPageSize = 1000
+ requestedPageSize := int(request.PageSize)
+ if requestedPageSize <= 0 {
+ requestedPageSize = maxPageSize
+ }
+ offset, err := parseLimitAndOffset(&pageSize{
+ token: request.PageToken,
+ limit: requestedPageSize,
+ maximum: maxPageSize,
+ })
+ if err != nil {
+ return nil, err
+ }
+ limitPlusOne := offset.limit + 1
taskRuns, err := s.store.ListTaskRuns(ctx, &store.FindTaskRunMessage{
Workspace: common.GetWorkspaceIDFromContext(ctx),
ProjectID: projectID,
PlanUID: &planID,
Environment: maybeStageID,
TaskUID: maybeTaskID,
+ Limit: &limitPlusOne,
+ Offset: &offset.offset,
})
if err != nil {
return nil, connect.NewError(connect.CodeInternal, errors.Wrapf(err, "failed to list task runs"))
}
+ var nextPageToken string
+ if len(taskRuns) == limitPlusOne {
+ if nextPageToken, err = offset.getNextPageToken(); err != nil {
+ return nil, connect.NewError(connect.CodeInternal, errors.Wrapf(err, "failed to get next page token"))
+ }
+ taskRuns = taskRuns[:offset.limit]
+ }
return connect.NewResponse(&v1pb.ListTaskRunsResponse{
- TaskRuns: convertToTaskRuns(taskRuns),
+ TaskRuns: convertToTaskRuns(taskRuns),
+ NextPageToken: nextPageToken,
}), nil
}
diff --git a/backend/generated-go/v1/query_history_service.pb.go b/backend/generated-go/v1/query_history_service.pb.go
index 638a13524f..3c095df642 100644
--- a/backend/generated-go/v1/query_history_service.pb.go
+++ b/backend/generated-go/v1/query_history_service.pb.go
@@ -96,10 +96,10 @@ type SearchQueryHistoriesRequest struct {
//
// Supported filter:
// - project: the project full name in "projects/{id}" format, support "==" operator.
- // - database: the database full name in "instances/{id}/databases/{name}" format, support "==" operator.
- // - instance: the instance full name in "instances/{id}" format, support "==" operator.
+ // - database: the database full name in "instances/{id}/databases/{name}" or "projects/{project}/instances/{id}/databases/{name}" format, support "==" operator.
+ // - instance: the instance full name in "instances/{id}" or "projects/{project}/instances/{id}" format, support "==" operator.
// - type: the type, should be "QUERY" or "EXPORT", support "==" operator.
- // - statement: the SQL statement, support ".contains()" operator.
+ // - statement: the SQL statement, support "==" and ".contains()" operators.
//
// For example:
// project == "projects/{project}"
@@ -107,6 +107,7 @@ type SearchQueryHistoriesRequest struct {
// instance == "instances/{instance}"
// type == "QUERY"
// type == "EXPORT"
+ // statement == "SELECT 1;"
// statement.contains("select")
// type == "QUERY" && statement.contains("select")
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
diff --git a/backend/generated-go/v1/rollout_service.pb.go b/backend/generated-go/v1/rollout_service.pb.go
index 6ce4b03b74..cca2d9396a 100644
--- a/backend/generated-go/v1/rollout_service.pb.go
+++ b/backend/generated-go/v1/rollout_service.pb.go
@@ -919,7 +919,18 @@ type ListTaskRunsRequest struct {
// The parent, which owns this collection of taskRuns.
// Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}
// Use "projects/{project}/plans/{plan}/rollout/stages/-/tasks/-" to list all taskRuns from a rollout.
- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
+ // The maximum number of task runs to return. The service may return fewer
+ // than this value.
+ // If unspecified, at most 1000 task runs will be returned.
+ // The maximum value is 1000; values above 1000 will be coerced to 1000.
+ PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
+ // A page token, received from a previous `ListTaskRuns` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListTaskRuns` must match
+ // the call that provided the page token.
+ PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -961,10 +972,27 @@ func (x *ListTaskRunsRequest) GetParent() string {
return ""
}
+func (x *ListTaskRunsRequest) GetPageSize() int32 {
+ if x != nil {
+ return x.PageSize
+ }
+ return 0
+}
+
+func (x *ListTaskRunsRequest) GetPageToken() string {
+ if x != nil {
+ return x.PageToken
+ }
+ return ""
+}
+
type ListTaskRunsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The taskRuns from the specified request.
- TaskRuns []*TaskRun `protobuf:"bytes,1,rep,name=task_runs,json=taskRuns,proto3" json:"task_runs,omitempty"`
+ TaskRuns []*TaskRun `protobuf:"bytes,1,rep,name=task_runs,json=taskRuns,proto3" json:"task_runs,omitempty"`
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -1006,6 +1034,13 @@ func (x *ListTaskRunsResponse) GetTaskRuns() []*TaskRun {
return nil
}
+func (x *ListTaskRunsResponse) GetNextPageToken() string {
+ if x != nil {
+ return x.NextPageToken
+ }
+ return ""
+}
+
type GetTaskRunRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun}
@@ -3311,12 +3346,16 @@ const file_v1_rollout_service_proto_rawDesc = "" +
"\x06parent\x18\x01 \x01(\tB\x19\xe0A\x02\xfaA\x13\n" +
"\x11bytebase.com/PlanR\x06parent\x12\x1b\n" +
"\x06target\x18\x03 \x01(\tH\x00R\x06target\x88\x01\x01B\t\n" +
- "\a_targetJ\x04\b\x02\x10\x03\"H\n" +
+ "\a_targetJ\x04\b\x02\x10\x03\"\x84\x01\n" +
"\x13ListTaskRunsRequest\x121\n" +
"\x06parent\x18\x01 \x01(\tB\x19\xe0A\x02\xfaA\x13\n" +
- "\x11bytebase.com/TaskR\x06parent\"I\n" +
+ "\x11bytebase.com/TaskR\x06parent\x12\x1b\n" +
+ "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12\x1d\n" +
+ "\n" +
+ "page_token\x18\x03 \x01(\tR\tpageToken\"q\n" +
"\x14ListTaskRunsResponse\x121\n" +
- "\ttask_runs\x18\x01 \x03(\v2\x14.bytebase.v1.TaskRunR\btaskRuns\"E\n" +
+ "\ttask_runs\x18\x01 \x03(\v2\x14.bytebase.v1.TaskRunR\btaskRuns\x12&\n" +
+ "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"E\n" +
"\x11GetTaskRunRequest\x120\n" +
"\x04name\x18\x01 \x01(\tB\x1c\xe0A\x02\xfaA\x16\n" +
"\x14bytebase.com/TaskRunR\x04name\"L\n" +
diff --git a/backend/generated-go/v1/rollout_service.pb.gw.go b/backend/generated-go/v1/rollout_service.pb.gw.go
index 6b4f61e982..0f8d54ab15 100644
--- a/backend/generated-go/v1/rollout_service.pb.gw.go
+++ b/backend/generated-go/v1/rollout_service.pb.gw.go
@@ -172,6 +172,8 @@ func local_request_RolloutService_CreateRollout_0(ctx context.Context, marshaler
return msg, metadata, err
}
+var filter_RolloutService_ListTaskRuns_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
+
func request_RolloutService_ListTaskRuns_0(ctx context.Context, marshaler runtime.Marshaler, client RolloutServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var (
protoReq ListTaskRunsRequest
@@ -186,6 +188,12 @@ func request_RolloutService_ListTaskRuns_0(ctx context.Context, marshaler runtim
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)
}
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RolloutService_ListTaskRuns_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
if req.Body != nil {
_, _ = io.Copy(io.Discard, req.Body)
}
@@ -207,6 +215,12 @@ func local_request_RolloutService_ListTaskRuns_0(ctx context.Context, marshaler
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)
}
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RolloutService_ListTaskRuns_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
msg, err := server.ListTaskRuns(ctx, &protoReq)
return msg, metadata, err
}
diff --git a/backend/generated-go/v1/rollout_service_equal.pb.go b/backend/generated-go/v1/rollout_service_equal.pb.go
index 9edaf9b9a9..1c9a56b4b6 100644
--- a/backend/generated-go/v1/rollout_service_equal.pb.go
+++ b/backend/generated-go/v1/rollout_service_equal.pb.go
@@ -187,6 +187,12 @@ func (x *ListTaskRunsRequest) Equal(y *ListTaskRunsRequest) bool {
if x.Parent != y.Parent {
return false
}
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
return true
}
@@ -205,6 +211,9 @@ func (x *ListTaskRunsResponse) Equal(y *ListTaskRunsResponse) bool {
return false
}
}
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
return true
}
diff --git a/backend/store/query_history.go b/backend/store/query_history.go
index 0b52807af7..fa210bd150 100644
--- a/backend/store/query_history.go
+++ b/backend/store/query_history.go
@@ -56,8 +56,6 @@ type FindQueryHistoryMessage struct {
// column, so without a Project filter the rows must be scoped through the
// owning project to keep multi-workspace deployments isolated.
Workspace string
- // Instance is the instance resource name like instances/{instance}.
- Instance *string
// Database is database resource name like instances/{instance}/databases/{database}.
Database *string
Type *QueryHistoryType
@@ -149,9 +147,7 @@ func (s *Store) ListQueryHistories(ctx context.Context, find *FindQueryHistoryMe
if v := find.Workspace; v != "" {
q.And("EXISTS (SELECT 1 FROM project WHERE project.resource_id = query_history.project AND project.workspace = ?)", v)
}
- if v := find.Instance; v != nil {
- q.And("query_history.database LIKE ?", *v)
- } else if v := find.Database; v != nil {
+ if v := find.Database; v != nil {
q.And("query_history.database = ?", *v)
}
if v := find.Type; v != nil {
@@ -244,22 +240,37 @@ func GetListQueryHistoryFilter(filter string) (*qb.Query, error) {
var getFilter func(expr celast.Expr) (*qb.Query, error)
parseToSQL := func(variable, value any) (*qb.Query, error) {
+ strValue, ok := value.(string)
+ if !ok {
+ return nil, errors.Errorf("expect string, got %T, hint: filter literals should be string", value)
+ }
switch variable {
case "project":
- projectID, err := common.GetProjectID(value.(string))
+ projectID, err := common.GetProjectID(strValue)
if err != nil {
- return nil, errors.Errorf("invalid project filter %q", value)
+ return nil, errors.Errorf("invalid project filter %q", strValue)
}
return qb.Q().Space("query_history.project = ?", projectID), nil
case "database":
- return qb.Q().Space("query_history.database = ?", value.(string)), nil
+ return qb.Q().Space("query_history.database = ?", strValue), nil
case "instance":
- return qb.Q().Space("query_history.database LIKE ?", value.(string)), nil
+ projectID, instanceID, err := common.GetInstanceResourceName(strValue)
+ if err != nil {
+ return nil, errors.Errorf("invalid instance filter %q, expect instances/{instance} or projects/{project}/instances/{instance}", strValue)
+ }
+ // database holds the instance's own name plus /databases/{database},
+ // project-scoped instances included, so an instance matches every
+ // database under it by prefix.
+ instanceName := common.FormatInstance(instanceID)
+ if projectID != nil {
+ instanceName = common.FormatProjectInstance(*projectID, instanceID)
+ }
+ prefix := instanceName + "/" + common.DatabaseIDPrefix
+ return qb.Q().Space("query_history.database LIKE ? ESCAPE '\\'", escapeLikePattern(prefix)+"%"), nil
case "type":
- historyType := QueryHistoryType(value.(string))
- return qb.Q().Space("query_history.type = ?", historyType), nil
+ return qb.Q().Space("query_history.type = ?", QueryHistoryType(strValue)), nil
case "statement":
- return qb.Q().Space("query_history.statement LIKE ?", value), nil
+ return qb.Q().Space("query_history.statement = ?", strValue), nil
default:
return nil, errors.Errorf("unsupport variable %q", variable)
}
diff --git a/backend/store/query_history_filter_test.go b/backend/store/query_history_filter_test.go
index a41fc91826..886811a941 100644
--- a/backend/store/query_history_filter_test.go
+++ b/backend/store/query_history_filter_test.go
@@ -38,9 +38,16 @@ func TestGetListQueryHistoryFilter(t *testing.T) {
},
{
name: "instance filter",
- filter: `instance == "instances/test-instance/%"`,
- wantSQL: "(query_history.database LIKE $1)",
- wantArgs: []any{"instances/test-instance/%"},
+ filter: `instance == "instances/test-instance"`,
+ wantSQL: "(query_history.database LIKE $1 ESCAPE '\\')",
+ wantArgs: []any{"instances/test-instance/databases/%"},
+ wantErr: false,
+ },
+ {
+ name: "project-scoped instance filter",
+ filter: `instance == "projects/test-project/instances/test-instance"`,
+ wantSQL: "(query_history.database LIKE $1 ESCAPE '\\')",
+ wantArgs: []any{"projects/test-project/instances/test-instance/databases/%"},
wantErr: false,
},
{
@@ -53,10 +60,17 @@ func TestGetListQueryHistoryFilter(t *testing.T) {
{
name: "statement exact match",
filter: `statement == "SELECT * FROM users"`,
- wantSQL: "(query_history.statement LIKE $1)",
+ wantSQL: "(query_history.statement = $1)",
wantArgs: []any{"SELECT * FROM users"},
wantErr: false,
},
+ {
+ name: "statement exact match keeps LIKE wildcards literal",
+ filter: `statement == "SELECT _ FROM t%"`,
+ wantSQL: "(query_history.statement = $1)",
+ wantArgs: []any{"SELECT _ FROM t%"},
+ wantErr: false,
+ },
{
name: "statement contains operator",
filter: `statement.contains("SELECT")`,
@@ -130,6 +144,24 @@ func TestGetListQueryHistoryFilter(t *testing.T) {
wantErr: true,
errContains: "invalid project filter",
},
+ {
+ name: "invalid instance format",
+ filter: `instance == "test-instance"`,
+ wantErr: true,
+ errContains: "invalid instance filter",
+ },
+ {
+ name: "instance rejects a caller-supplied wildcard suffix",
+ filter: `instance == "instances/test-instance/%"`,
+ wantErr: true,
+ errContains: "invalid instance filter",
+ },
+ {
+ name: "equality with non-string value",
+ filter: `type == 1`,
+ wantErr: true,
+ errContains: "expect string",
+ },
{
name: "contains with non-string value",
filter: `statement.contains(123)`,
@@ -187,7 +219,7 @@ func TestGetListQueryHistoryFilter_EdgeCases(t *testing.T) {
name: "statement with special characters",
filter: `statement == "SELECT * FROM users WHERE name = 'test'"`,
description: "statement with quotes should be handled correctly",
- wantSQL: "(query_history.statement LIKE $1)",
+ wantSQL: "(query_history.statement = $1)",
wantArgs: []any{"SELECT * FROM users WHERE name = 'test'"},
wantErr: false,
},
@@ -216,11 +248,11 @@ func TestGetListQueryHistoryFilter_EdgeCases(t *testing.T) {
wantErr: false,
},
{
- name: "instance with wildcard",
- filter: `instance == "instances/prod-%"`,
- description: "instance filter with wildcard for LIKE query",
- wantSQL: "(query_history.database LIKE $1)",
- wantArgs: []any{"instances/prod-%"},
+ name: "instance escapes LIKE wildcards in the id",
+ filter: `instance == "instances/prod_%"`,
+ description: "the prefix match owns the only wildcard",
+ wantSQL: "(query_history.database LIKE $1 ESCAPE '\\')",
+ wantArgs: []any{`instances/prod\_\%/databases/%`},
wantErr: false,
},
{
diff --git a/backend/store/task_run.go b/backend/store/task_run.go
index 0f05ff8268..7e52c2ce60 100644
--- a/backend/store/task_run.go
+++ b/backend/store/task_run.go
@@ -45,6 +45,9 @@ type FindTaskRunMessage struct {
Environment *string
PlanUID *int64
Status *[]storepb.TaskRun_Status
+
+ Limit *int
+ Offset *int
}
// TaskRunStatusPatch is the API message for patching a task run.
@@ -119,7 +122,15 @@ func (s *Store) ListTaskRuns(ctx context.Context, find *FindTaskRunMessage) ([]*
q.Space("WHERE ?", where)
}
- q.Space("ORDER BY task_run.id ASC")
+ // (project, id) is the primary key, so the order is total for the
+ // cross-project runner lists as well as the offset-paginated API list.
+ q.Space("ORDER BY task_run.project ASC, task_run.id ASC")
+ if v := find.Limit; v != nil {
+ q.Space("LIMIT ?", *v)
+ }
+ if v := find.Offset; v != nil {
+ q.Space("OFFSET ?", *v)
+ }
query, args, err := q.ToSQL()
if err != nil {
diff --git a/backend/store/task_run_pagination_test.go b/backend/store/task_run_pagination_test.go
new file mode 100644
index 0000000000..0ed776e687
--- /dev/null
+++ b/backend/store/task_run_pagination_test.go
@@ -0,0 +1,83 @@
+package store_test
+
+import (
+ "context"
+ "fmt"
+ "testing"
+ "time"
+
+ "github.com/stretchr/testify/require"
+
+ "github.com/bytebase/bytebase/backend/common/testcontainer"
+ "github.com/bytebase/bytebase/backend/migrator"
+ "github.com/bytebase/bytebase/backend/store"
+)
+
+// TestListTaskRunsPagination pins the offset pagination behind ListTaskRuns:
+// pages are read in (project, id) order, so a project's task runs arrive
+// exactly once across pages even when another project's ids collide, and the
+// cross-project runner list keeps the same total order.
+func TestListTaskRunsPagination(t *testing.T) {
+ ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
+ defer cancel()
+
+ container := testcontainer.GetTestPgContainer(ctx, t)
+ t.Cleanup(func() { container.Close(context.Background()) })
+ db := container.GetDB()
+ require.NoError(t, migrator.MigrateSchema(ctx, db))
+
+ _, err := db.ExecContext(ctx, `
+ INSERT INTO workspace (resource_id) VALUES ('default');
+ INSERT INTO project (resource_id, workspace, name) VALUES
+ ('project-a', 'default', 'Project A'),
+ ('project-b', 'default', 'Project B');
+ INSERT INTO instance (resource_id, workspace) VALUES ('instance-a', 'default');
+ INSERT INTO plan (id, creator, project, name, description) VALUES
+ (101, '[email protected]', 'project-a', 'Plan A', ''),
+ (101, '[email protected]', 'project-b', 'Plan B', '');
+ INSERT INTO task (id, project, plan_id, instance, environment, type) VALUES
+ (101, 'project-a', 101, 'instance-a', 'prod', 'DATABASE_SCHEMA_UPDATE'),
+ (101, 'project-b', 101, 'instance-a', 'prod', 'DATABASE_SCHEMA_UPDATE');
+ INSERT INTO task_run (id, project, task_id, attempt, status) VALUES
+ (101, 'project-a', 101, 0, 'DONE'),
+ (102, 'project-a', 101, 1, 'DONE'),
+ (103, 'project-a', 101, 2, 'DONE'),
+ (101, 'project-b', 101, 0, 'DONE'),
+ (102, 'project-b', 101, 1, 'DONE');
+ `)
+ require.NoError(t, err)
+
+ pgURL := fmt.Sprintf(
+ "host=%s port=%s user=postgres password=root-password database=postgres",
+ container.GetHost(), container.GetPort(),
+ )
+ s, err := store.New(ctx, pgURL, false)
+ require.NoError(t, err)
+ t.Cleanup(func() { require.NoError(t, s.Close()) })
+
+ planUID := int64(101)
+ ids := func(taskRuns []*store.TaskRunMessage) []string {
+ var got []string
+ for _, taskRun := range taskRuns {
+ got = append(got, fmt.Sprintf("%s/%d", taskRun.ProjectID, taskRun.ID))
+ }
+ return got
+ }
+
+ // Two pages of two cover project A's three runs exactly once.
+ limit, offset := 2, 0
+ page, err := s.ListTaskRuns(ctx, &store.FindTaskRunMessage{ProjectID: "project-a", PlanUID: &planUID, Limit: &limit, Offset: &offset})
+ require.NoError(t, err)
+ require.Equal(t, []string{"project-a/101", "project-a/102"}, ids(page))
+
+ offset = 2
+ page, err = s.ListTaskRuns(ctx, &store.FindTaskRunMessage{ProjectID: "project-a", PlanUID: &planUID, Limit: &limit, Offset: &offset})
+ require.NoError(t, err)
+ require.Equal(t, []string{"project-a/103"}, ids(page))
+
+ // The unpaginated cross-project list is ordered by (project, id): id alone
+ // is not unique across projects.
+ all, err := s.ListTaskRuns(ctx, &store.FindTaskRunMessage{})
+ require.NoError(t, err)
+ require.Equal(t, []string{"project-a/101", "project-a/102", "project-a/103", "project-b/101", "project-b/102"}, ids(all))
+}
diff --git a/backend/tests/project_instance_test.go b/backend/tests/project_instance_test.go
index 4886a50dac..b3091c8d14 100644
--- a/backend/tests/project_instance_test.go
+++ b/backend/tests/project_instance_test.go
@@ -3,6 +3,7 @@ package tests
import (
"context"
"fmt"
+ "strings"
"testing"
"connectrpc.com/connect"
@@ -87,6 +88,25 @@ func TestProjectInstanceCoreBehavior(t *testing.T) {
a.NoError(err)
a.Len(query.Msg.Results, 1)
+ // The history row carries the project-scoped database name, so the
+ // `instance ==` filter must accept the project-scoped instance name
+ // (T18c-ii); the workspace form of the same ID names no instance here.
+ byInstance, err := ctl.queryHistoryServiceClient.SearchQueryHistories(ctx, connect.NewRequest(&v1pb.SearchQueryHistoriesRequest{
+ Parent: ctl.project.Name,
+ Filter: fmt.Sprintf("instance == \"%s\"", projectInstance.Name),
+ }))
+ a.NoError(err)
+ a.NotEmpty(byInstance.Msg.QueryHistories)
+ for _, history := range byInstance.Msg.QueryHistories {
+ a.True(strings.HasPrefix(history.Database, projectInstance.Name+"/databases/"), history.Database)
+ }
+ byWorkspaceForm, err := ctl.queryHistoryServiceClient.SearchQueryHistories(ctx, connect.NewRequest(&v1pb.SearchQueryHistoriesRequest{
+ Parent: ctl.project.Name,
+ Filter: fmt.Sprintf("instance == \"instances/%s\"", projectID),
+ }))
+ a.NoError(err)
+ a.Empty(byWorkspaceForm.Msg.QueryHistories)
+
for _, name := range []string{
projectInstance.Name + "/databases/missing",
workspace.Name + "/databases/missing",
diff --git a/backend/tests/query_history_test.go b/backend/tests/query_history_test.go
index f6f55de3a0..7161b99e74 100644
--- a/backend/tests/query_history_test.go
+++ b/backend/tests/query_history_test.go
@@ -111,6 +111,39 @@ func TestListQueryHistories(t *testing.T) {
a.GreaterOrEqual(len(searchResp.Msg.QueryHistories), 2)
historyName := searchResp.Msg.QueryHistories[0].Name
+ // 2c. T18c-ii: `instance ==` matches every database of the instance. It
+ // used to compare the stored database name against "instances/{id}" with
+ // LIKE and no wildcard, so it matched nothing.
+ instanceFilterResp, err := ctl.queryHistoryServiceClient.SearchQueryHistories(ctx, connect.NewRequest(&v1pb.SearchQueryHistoriesRequest{
+ Parent: ctl.project.Name,
+ Filter: fmt.Sprintf("instance == \"%s\"", instance.Name),
+ }))
+ a.NoError(err)
+ a.Len(instanceFilterResp.Msg.QueryHistories, len(searchResp.Msg.QueryHistories))
+ for _, history := range instanceFilterResp.Msg.QueryHistories {
+ a.True(strings.HasPrefix(history.Database, instance.Name+"/databases/"), history.Database)
+ }
+ _, err = ctl.queryHistoryServiceClient.SearchQueryHistories(ctx, connect.NewRequest(&v1pb.SearchQueryHistoriesRequest{
+ Parent: ctl.project.Name,
+ Filter: fmt.Sprintf("instance == \"%s/%%\"", instance.Name),
+ }))
+ a.Equal(connect.CodeInvalidArgument, connect.CodeOf(err), "a caller-supplied wildcard is not an instance name")
+
+ // `statement ==` is exact: "_" is a character, not a LIKE wildcard.
+ statementExactResp, err := ctl.queryHistoryServiceClient.SearchQueryHistories(ctx, connect.NewRequest(&v1pb.SearchQueryHistoriesRequest{
+ Parent: ctl.project.Name,
+ Filter: `statement == "SELECT 1;"`,
+ }))
+ a.NoError(err)
+ a.Len(statementExactResp.Msg.QueryHistories, 1)
+ a.Equal("SELECT 1;", statementExactResp.Msg.QueryHistories[0].Statement)
+ statementWildcardResp, err := ctl.queryHistoryServiceClient.SearchQueryHistories(ctx, connect.NewRequest(&v1pb.SearchQueryHistoriesRequest{
+ Parent: ctl.project.Name,
+ Filter: `statement == "SELECT _;"`,
+ }))
+ a.NoError(err)
+ a.Empty(statementWildcardResp.Msg.QueryHistories)
+
// 3. Create an auditor user with no project role yet.
auditorEmail := fmt.Sprintf("auditor-%[email protected]", generateRandomString("u"))
auditorPassword := "1024bytebase"
diff --git a/backend/tests/task_run_cancel_scope_test.go b/backend/tests/task_run_cancel_scope_test.go
index 4c87894f60..e63540dbed 100644
--- a/backend/tests/task_run_cancel_scope_test.go
+++ b/backend/tests/task_run_cancel_scope_test.go
@@ -108,6 +108,29 @@ func TestBatchCancelTaskRuns_RejectsTaskRunFromAnotherStage(t *testing.T) {
a.NoError(err)
}
+ // ListTaskRuns pages (T18c-ii): with page_size 1 the rollout's two runs
+ // arrive on two pages, and the token walk ends after the second.
+ var paged []string
+ pageToken := ""
+ for {
+ resp, err := ctl.rolloutServiceClient.ListTaskRuns(ctx, connect.NewRequest(&v1pb.ListTaskRunsRequest{
+ Parent: rolloutResp.Msg.Name + "/stages/-/tasks/-",
+ PageSize: 1,
+ PageToken: pageToken,
+ }))
+ a.NoError(err)
+ a.Len(resp.Msg.TaskRuns, 1)
+ paged = append(paged, resp.Msg.TaskRuns[0].Name)
+ if resp.Msg.NextPageToken == "" {
+ break
+ }
+ pageToken = resp.Msg.NextPageToken
+ }
+ a.ElementsMatch([]string{
+ onlyTaskRunInStage(ctx, a, ctl, testStage).Name,
+ onlyTaskRunInStage(ctx, a, ctl, prodStage).Name,
+ }, paged)
+
prodTaskRun := onlyTaskRunInStage(ctx, a, ctl, prodStage)
a.Equal(v1pb.TaskRun_PENDING, prodTaskRun.Status)
diff --git a/docs/design/v1-api-audit-2026-08.md b/docs/design/v1-api-audit-2026-08.md
index fb51d5b69d..dc6d66fc91 100644
--- a/docs/design/v1-api-audit-2026-08.md
+++ b/docs/design/v1-api-audit-2026-08.md
@@ -11,7 +11,7 @@ where noted. Fixed findings are removed and listed at the end.
| | Problem | Severity |
|---|---|---|
| T12 | Anonymous callers can read your LDAP config | MED |
-| T18c ii–iii | Broken filter, unpaginated list, existence-leaking error codes | MED |
+| T18c-iii | `CheckRelease` error codes leak existence | MED |
| T18c-iv | `BatchDeleteProjects` checks its permission against the workspace, not the named projects — latent, no predefined role reaches it | LOW |
---
@@ -62,24 +62,6 @@ by anything stated — and nothing in the proto says the batch form needs worksp
---
-## Lists that return the wrong rows
-
-### T18c-ii · Two smaller list bugs — MED
-
-- **The query-history `instance ==` filter always returns nothing.** It compares an instance name
- against a longer stored value using `LIKE` with no wildcard. `SearchQueryHistories` documents the
- broken form. Its sibling `database ==` is plain equality and works. Two adjacent uses of the same
- operator are also unescaped: `statement ==` passes the raw value to `LIKE`, so `%` and `_`
- over-match on the `==` path that T17's `.contains()` fix did not cover; and `FindQueryHistoryMessage.Instance`
- repeats the missing wildcard, harmlessly — no caller sets it.
- `store/query_history.go:257`, `:262`, `:152-153`
-- **`ListTaskRuns` has no pagination and no limit** — and its documented wildcard parent pulls an
- entire rollout in one call, on the table that grows fastest. Not just an unbounded store query:
- `ListTaskRunsRequest` has no `page_size` or `page_token` field to add a limit to.
- `store/task_run.go:65-191`, `rollout_service.proto:317-325`
-
----
-
## What anonymous callers can learn
### T12 · The unauthenticated surface — MED
@@ -183,6 +165,7 @@ constraints.
| T14 | [#21267](https://github.com/bytebase/bytebase/pull/21267) — filed as issue paging; the sweep it prompted found the same defect across the class, so it was fixed as a class. Counting endpoints, **17 of the 22** offset-paginated v1 list RPCs were affected; counting the store functions behind them, **14 of 17**. The three already sorting on a total order were `ListQueryHistories` and `ListSavedQueries` (both from one commit, [#21203](https://github.com/bytebase/bytebase/pull/21203), that was never swept across the other lists) and `ListPlans`, which is total only because a mandatory `WHERE plan.project = ?` pins its scope column. Every store list now names tiebreak columns that are unique under its own scope — written into the SQL, and appended after the caller's keys at the six affected lists that accept an `order_by`. The three that were already total are left untouched. Nothing enforces this statically: an earlier revision routed all seventeen through a `buildStableOrderBy` helper so an AST test could require it, but review judged that ceremony and both were removed, so a new paginated list added without a tiebreak will not fail CI. Enforcement is step 4 of `docs/pre-pr-checklist.md` plus review, with `TestPaginationStabilityAcrossProjects` and `TestIssueCommentBatchKeepsInsertionOrder` covering the behavior against a real PostgreSQL. The rules, and the five traps that produced the class — `id` alone in a `(project, id)` table, `created_at` (the *transaction* timestamp, identical across a batch insert), a nullable column, a partial unique index, and an `order_by` that replaces the default ordering rather than adding to it — are in [`backend/store/AGENTS.md`](../../backend/store/AGENTS.md#pagination-ordering). One adjacent bug fixed with it: `ListDatabases`, `ListInstances` and `ListProjects` each threw away the whole clause, tiebreak included, the moment a caller passed `order_by` — which is what broke their paging. Accepted with them: offset paging still drifts under concurrent inserts and deletes (that needs keyset pagination and a page-token change). `ListIssueComment` needed a second fix: its `resource_id` tiebreak is a random UUID, which would have scrambled the activity feed of a multi-field `UpdateIssue`, so `CreateIssueComments` now offsets each row of a batch by its ordinal to keep `created_at` unique and in insertion order. Deliberately out of scope, and worth its own change: `issue.id` is a per-project counter, so ordering a cross-project list by it is not recency — seeded with a three-year-old project and one created today, the newest issue in the new project ranked 4962nd on the default list. Making `create_time` the cross-project default is a product decision. Also left alone: issue search still discards an explicit `order_by` outright when the caller supplied query text |
| T10 | [#21252](https://github.com/bytebase/bytebase/pull/21252) + [#21258](https://github.com/bytebase/bytebase/pull/21258) — password change and MFA lifecycle move off `UpdateUser` onto their own methods, each requiring a `CredentialProof`: current password, live OTP, recovery code, or a Cloud-only emailed re-auth code. Every proof claims a T9 login-attempt slot, so no proof channel is an unbounded guessing oracle, and a factor-touching method refuses the password while a live factor exists. Accepted with it: **the stolen access token still answers until it expires (≤1h)** — credential generation and the fenced transaction were cut or deferred, password change revokes only the account's web refresh tokens (best-effort, OAuth grants untouched), and an MFA change revokes nothing. What this closes is the credential being *spent* on its own replacement, not the session. Design, and the shipped-vs-designed delta: [`reauthenticate-credential-changes.md`](reauthenticate-credential-changes.md) |
| T18b | The etag is now read wherever the caller presents it: `policy.etag` — the only place `GetIamPolicy` returns one, and so the only place a read-modify-write round-trips it — as well as the request field, with two that disagree rejected. Both handlers write through `store.SetIamPolicy`, which compares under `SELECT ... FOR UPDATE` inside the write transaction. Comparing against the handler's own earlier read would not have been enough: that is a check-then-act, and two requests reading the same policy both pass it before either writes. (An earlier revision justified this by replica cache skew, which does not exist: `store.New(ctx, pgURL, !profile.HA)` disables read caching in the only mode that runs more than one process.) The same lock closed two merges that present no etag at all and so could never be compared — `PatchWorkspaceIamPolicy` (signup, SSO provisioning, workspace-leave) and the role-grant issue approval in `backend/utils` — each of which read the policy, merged one member in, and wrote the whole thing back, so either could resurrect a member an admin had just revoked; both now merge inside the locked transaction through `store.PatchIamPolicy`. Fixed with it: workspace `SetIamPolicy` wrote to `request.Resource` while every read and check used the workspace from the token, so a request naming anything else matched no row and returned 200 having written nothing — the write now targets the workspace the reads did, which is what `GetIamPolicy` already does by ignoring the field. The audit delta and the invite emails are now derived from the policy the write actually replaced rather than the pre-validation snapshot, so they describe what happened even for an etag-less caller, and the workspace seat guard counts against that same locked policy through a `ValidateReplaced` hook rather than against a read the write does not hold. Accepted with it: an etag-less caller still gets last-write-wins, which is what AIP-154 optional-etag semantics mean and what existing API clients rely on; and the etag is still `updated_at` in milliseconds, so a write landing in the same millisecond as the one before it leaves the etag unmoved and a stale write racing that pair is accepted — too narrow to justify the wire change to a content hash, unlike the saved-query policy, which has no timestamp to derive one from. Also left as is: `validateIAMPolicy` grandfathers bindings found in the policy the handler read before the write, so an etag-less caller racing a concurrent removal re-adds that binding without the `allUsers`, role-existence, CEL and maximum-expiration checks — pre-existing, and closing it means splitting the function into a fetch half and a pure half that runs under the lock |
+| T18c-ii | **The query-history `instance ==` filter matches now.** The CEL translation compared the stored `instances/{id}/databases/{db}` against the caller's `instances/{id}` with `LIKE` and no wildcard, so the documented form returned nothing and the only form that worked was the undocumented `instances/{id}/%`. The value is now validated as an instance name — the wildcard form is `InvalidArgument`, as a malformed `project ==` already was — and translated to an escaped `instances/{id}/databases/%` prefix, so the caller never supplies the pattern — or `projects/{project}/instances/{id}/databases/%` for a project-scoped instance, whose rows carry the project-scoped name; Codex caught on the PR that the first cut only handled the workspace form, so the filter would still have matched nothing for every project-scoped instance. **`statement ==` is plain equality**, which is what `==` means and closes the `%`/`_` over-match that T17's `.contains()` fix left; the proto lists it beside `.contains()` now. Found on the way and fixed with it: every equality literal is type-checked once at the top of the switch, so `type == 1` is an error where it was a panic. `FindQueryHistoryMessage.Instance`, the second copy of the missing wildcard, is deleted rather than fixed — nothing set it. **`ListTaskRuns` is paginated**: `page_size`/`page_token` on the request, `next_page_token` on the response, `parseLimitAndOffset` in the handler and `LIMIT`/`OFFSET` in the store, ordered by `(task_run.project, task_run.id)` — the primary key, so the order is total for the cross-project runner lists as well, which sorted on `id` alone. One deliberate departure from the other lists: an unspecified `page_size` means the 1000 maximum, not 10. The wildcard parent's callers read a whole rollout in one call — the issue and plan pages, and `bytebase-action`'s `cancelRollout`, which finds the runs to cancel that way — and action binaries inside their compatibility window ([`docs/pre-pr-checklist.md`](../../docs/pre-pr-checklist.md) §6) cannot be updated with the server, so a default of 10 would have silently left every run past the tenth uncancelled. Every in-tree caller now follows the token: `listAllTaskRuns` in `frontend/src/api/taskRun.ts` behind the five frontend sites, and the action's own `listAllTaskRuns`. The two token fields join `auditRecordedFields` as ordinary recorded fields, as every other list's do. Tests: the filter SQL at the store level, both filters end to end in `TestListQueryHistories`, `TestListTaskRunsPagination` for the page and order contract at the store, and a `page_size: 1` token walk in `TestBatchCancelTaskRuns_RejectsTaskRunFromAnotherStage`. Accepted with it: a caller past 1000 task runs that ignores `next_page_token` now sees a truncated rollout where it saw everything — the bound is the point. Offset paging still drifts under concurrent inserts, as every list here does |
**`AIService.Chat` — accepted, not fixed** (2026-08-18). `Chat` requires an authenticated workspace
principal and touches no database or sheet, so the only exposure is LLM spend. On Cloud the feature
diff --git a/frontend/src/api/taskRun.ts b/frontend/src/api/taskRun.ts
new file mode 100644
index 0000000000..f45fa1e896
--- /dev/null
+++ b/frontend/src/api/taskRun.ts
@@ -0,0 +1,34 @@
+import { create } from "@bufbuild/protobuf";
+import type { CallOptions } from "@connectrpc/connect";
+import { rolloutServiceClientConnect } from "@/api";
+import {
+ ListTaskRunsRequestSchema,
+ type TaskRun,
+} from "@/types/proto-es/v1/rollout_service_pb";
+
+// The server caps a page at 1000 task runs. Ask for the cap so a rollout of
+// any realistic size is one round trip, and follow the token past it.
+const TASK_RUN_PAGE_SIZE = 1000;
+
+// Lists every task run under `parent`, typically a rollout's wildcard
+// `.../stages/-/tasks/-`, by draining the ListTaskRuns pages.
+export async function listAllTaskRuns(
+ parent: string,
+ options?: CallOptions
+): Promise<TaskRun[]> {
+ const taskRuns: TaskRun[] = [];
+ let pageToken = "";
+ do {
+ const response = await rolloutServiceClientConnect.listTaskRuns(
+ create(ListTaskRunsRequestSchema, {
+ parent,
+ pageSize: TASK_RUN_PAGE_SIZE,
+ pageToken,
+ }),
+ options
+ );
+ taskRuns.push(...response.taskRuns);
+ pageToken = response.nextPageToken;
+ } while (pageToken);
+ return taskRuns;
+}
diff --git a/frontend/src/routes/project/issue-detail/components/IssueDetailTaskRolloutActionPanel.tsx b/frontend/src/routes/project/issue-detail/components/IssueDetailTaskRolloutActionPanel.tsx
index 7ab1a8724d..73b984830a 100644
--- a/frontend/src/routes/project/issue-detail/components/IssueDetailTaskRolloutActionPanel.tsx
+++ b/frontend/src/routes/project/issue-detail/components/IssueDetailTaskRolloutActionPanel.tsx
@@ -4,6 +4,7 @@ import { Loader2 } from "lucide-react";
import { useCallback, useEffect, useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
import { rolloutServiceClientConnect } from "@/api";
+import { listAllTaskRuns } from "@/api/taskRun";
import { DatabaseTargetDisplay } from "@/components/DatabaseTargetDisplay";
import { TaskStatusIcon } from "@/components/TaskStatusIcon";
import { Button } from "@/components/ui/button";
@@ -31,7 +32,6 @@ import {
BatchCancelTaskRunsRequestSchema,
BatchRunTasksRequestSchema,
BatchSkipTasksRequestSchema,
- ListTaskRunsRequestSchema,
type Stage,
type Task,
Task_Type,
@@ -515,12 +515,10 @@ async function cancelTasks({
const cancelableRuns = new Map<string, string[]>();
for (const [stageId, stageTasks] of tasksByStage) {
const taskNames = new Set(stageTasks.map((task) => task.name));
- const response = await rolloutServiceClientConnect.listTaskRuns(
- create(ListTaskRunsRequestSchema, {
- parent: `${rolloutName}/stages/${stageId}/tasks/-`,
- })
+ const taskRuns = await listAllTaskRuns(
+ `${rolloutName}/stages/${stageId}/tasks/-`
);
- const runs = response.taskRuns
+ const runs = taskRuns
.filter((run) => {
const taskName = run.name.split("/taskRuns/")[0];
return (
diff --git a/frontend/src/routes/project/issue-detail/hooks/useIssueDetailPage.ts b/frontend/src/routes/project/issue-detail/hooks/useIssueDetailPage.ts
index 8fe9af4357..3ffcfb4162 100644
--- a/frontend/src/routes/project/issue-detail/hooks/useIssueDetailPage.ts
+++ b/frontend/src/routes/project/issue-detail/hooks/useIssueDetailPage.ts
@@ -7,6 +7,7 @@ import {
planServiceClientConnect,
rolloutServiceClientConnect,
} from "@/api";
+import { listAllTaskRuns } from "@/api/taskRun";
import { router } from "@/app/router";
import { WORKSPACE_ROUTE_403, WORKSPACE_ROUTE_404 } from "@/app/router/handles";
import { buildPermissionDeniedRouteQuery } from "@/app/router/permissionDenied";
@@ -27,7 +28,6 @@ import {
} from "@/types/proto-es/v1/plan_service_pb";
import {
GetRolloutRequestSchema,
- ListTaskRunsRequestSchema,
type Rollout,
Task_Status,
type TaskRun,
@@ -176,14 +176,9 @@ const loadIssueDetailSnapshot = async (
const taskRuns =
rollout !== undefined
- ? await rolloutServiceClientConnect
- .listTaskRuns(
- create(ListTaskRunsRequestSchema, {
- parent: `${rollout.name}/stages/-/tasks/-`,
- })
- )
- .then((response) => response.taskRuns)
- .catch(() => [])
+ ? await listAllTaskRuns(`${rollout.name}/stages/-/tasks/-`).catch(
+ () => []
+ )
: [];
return {
@@ -253,14 +248,9 @@ const refreshIssueDetailSnapshot = async (
const taskRuns =
rollout !== undefined
- ? await rolloutServiceClientConnect
- .listTaskRuns(
- create(ListTaskRunsRequestSchema, {
- parent: `${rollout.name}/stages/-/tasks/-`,
- })
- )
- .then((response) => response.taskRuns)
- .catch(() => [])
+ ? await listAllTaskRuns(`${rollout.name}/stages/-/tasks/-`).catch(
+ () => []
+ )
: [];
return {
diff --git a/frontend/src/routes/project/issue-detail/utils/refreshIssueDetailState.ts b/frontend/src/routes/project/issue-detail/utils/refreshIssueDetailState.ts
index 2a77f85bb8..71db72d9ec 100644
--- a/frontend/src/routes/project/issue-detail/utils/refreshIssueDetailState.ts
+++ b/frontend/src/routes/project/issue-detail/utils/refreshIssueDetailState.ts
@@ -4,16 +4,14 @@ import {
planServiceClientConnect,
rolloutServiceClientConnect,
} from "@/api";
+import { listAllTaskRuns } from "@/api/taskRun";
import { GetIssueRequestSchema } from "@/types/proto-es/v1/issue_service_pb";
import {
GetPlanCheckRunRequestSchema,
GetPlanRequestSchema,
type PlanCheckRun,
} from "@/types/proto-es/v1/plan_service_pb";
-import {
- GetRolloutRequestSchema,
- ListTaskRunsRequestSchema,
-} from "@/types/proto-es/v1/rollout_service_pb";
+import { GetRolloutRequestSchema } from "@/types/proto-es/v1/rollout_service_pb";
import { UNKNOWN_PLAN_NAME } from "@/types/v1/issue/plan";
import { getRolloutFromPlan } from "@/utils";
import type { IssueDetailPageState } from "../hooks/useIssueDetailPage";
@@ -75,14 +73,9 @@ export async function refreshIssueDetailState(
const nextTaskRuns =
rolloutResult !== undefined
- ? await rolloutServiceClientConnect
- .listTaskRuns(
- create(ListTaskRunsRequestSchema, {
- parent: `${rolloutResult.name}/stages/-/tasks/-`,
- })
- )
- .then((response) => response.taskRuns)
- .catch(() => [])
+ ? await listAllTaskRuns(`${rolloutResult.name}/stages/-/tasks/-`).catch(
+ () => []
+ )
: [];
page.patchState({
diff --git a/frontend/src/routes/project/plan-detail/components/PlanDetailTaskRolloutActionPanel.tsx b/frontend/src/routes/project/plan-detail/components/PlanDetailTaskRolloutActionPanel.tsx
index a39c8baf1b..751bf263ce 100644
--- a/frontend/src/routes/project/plan-detail/components/PlanDetailTaskRolloutActionPanel.tsx
+++ b/frontend/src/routes/project/plan-detail/components/PlanDetailTaskRolloutActionPanel.tsx
@@ -4,6 +4,7 @@ import { Loader2 } from "lucide-react";
import { useCallback, useEffect, useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
import { rolloutServiceClientConnect } from "@/api";
+import { listAllTaskRuns } from "@/api/taskRun";
import { TaskStatusIcon } from "@/components/TaskStatusIcon";
import { Button } from "@/components/ui/button";
import { Checkbox } from "@/components/ui/checkbox";
@@ -27,7 +28,6 @@ import {
BatchCancelTaskRunsRequestSchema,
BatchRunTasksRequestSchema,
BatchSkipTasksRequestSchema,
- ListTaskRunsRequestSchema,
Task_Type,
TaskRun_Status,
} from "@/types/proto-es/v1/rollout_service_pb";
@@ -519,12 +519,10 @@ async function cancelTasks({
const cancelableRuns = new Map<string, string[]>();
for (const [stageId, stageTasks] of tasksByStage) {
const taskNames = new Set(stageTasks.map((task) => task.name));
- const response = await rolloutServiceClientConnect.listTaskRuns(
- create(ListTaskRunsRequestSchema, {
- parent: `${rolloutName}/stages/${stageId}/tasks/-`,
- })
+ const taskRuns = await listAllTaskRuns(
+ `${rolloutName}/stages/${stageId}/tasks/-`
);
- const runs = response.taskRuns
+ const runs = taskRuns
.filter((run) => {
const taskName = run.name.split("/taskRuns/")[0];
return (
diff --git a/frontend/src/routes/project/plan-detail/shell/hooks/fetchPlanSnapshot.ts b/frontend/src/routes/project/plan-detail/shell/hooks/fetchPlanSnapshot.ts
index 43f612d21e..b8d83e8e09 100644
--- a/frontend/src/routes/project/plan-detail/shell/hooks/fetchPlanSnapshot.ts
+++ b/frontend/src/routes/project/plan-detail/shell/hooks/fetchPlanSnapshot.ts
@@ -8,6 +8,7 @@ import {
userServiceClientConnect,
} from "@/api";
import { silentContextKey } from "@/api/context-key";
+import { listAllTaskRuns } from "@/api/taskRun";
import { IssueStatus } from "@/types/proto-es/v1/common_pb";
import {
GetIssueRequestSchema,
@@ -25,7 +26,6 @@ import {
} from "@/types/proto-es/v1/project_service_pb";
import {
GetRolloutRequestSchema,
- ListTaskRunsRequestSchema,
type Rollout,
type TaskRun,
} from "@/types/proto-es/v1/rollout_service_pb";
@@ -61,14 +61,9 @@ const requestRollout = (rolloutName: string) =>
);
const requestRolloutTaskRuns = (rolloutName: string) =>
- rolloutServiceClientConnect
- .listTaskRuns(
- create(ListTaskRunsRequestSchema, {
- parent: `${rolloutName}/stages/-/tasks/-`,
- }),
- { contextValues: createContextValues().set(silentContextKey, true) }
- )
- .then((response) => response.taskRuns);
+ listAllTaskRuns(`${rolloutName}/stages/-/tasks/-`, {
+ contextValues: createContextValues().set(silentContextKey, true),
+ });
const requestRolloutState = async (rolloutName: string) => {
const [rollout, taskRuns] = await Promise.all([
diff --git a/frontend/src/types/proto-es/v1/query_history_service_pb.d.ts b/frontend/src/types/proto-es/v1/query_history_service_pb.d.ts
index 07d911c932..f89d31fdd7 100644
--- a/frontend/src/types/proto-es/v1/query_history_service_pb.d.ts
+++ b/frontend/src/types/proto-es/v1/query_history_service_pb.d.ts
@@ -49,10 +49,10 @@ export declare type SearchQueryHistoriesRequest = Message<"bytebase.v1.SearchQue
*
* Supported filter:
* - project: the project full name in "projects/{id}" format, support "==" operator.
- * - database: the database full name in "instances/{id}/databases/{name}" format, support "==" operator.
- * - instance: the instance full name in "instances/{id}" format, support "==" operator.
+ * - database: the database full name in "instances/{id}/databases/{name}" or "projects/{project}/instances/{id}/databases/{name}" format, support "==" operator.
+ * - instance: the instance full name in "instances/{id}" or "projects/{project}/instances/{id}" format, support "==" operator.
* - type: the type, should be "QUERY" or "EXPORT", support "==" operator.
- * - statement: the SQL statement, support ".contains()" operator.
+ * - statement: the SQL statement, support "==" and ".contains()" operators.
*
* For example:
* project == "projects/{project}"
@@ -60,6 +60,7 @@ export declare type SearchQueryHistoriesRequest = Message<"bytebase.v1.SearchQue
* instance == "instances/{instance}"
* type == "QUERY"
* type == "EXPORT"
+ * statement == "SELECT 1;"
* statement.contains("select")
* type == "QUERY" && statement.contains("select")
*
diff --git a/frontend/src/types/proto-es/v1/rollout_service_pb.d.ts b/frontend/src/types/proto-es/v1/rollout_service_pb.d.ts
index f0530b7913..ba1e2abe46 100644
--- a/frontend/src/types/proto-es/v1/rollout_service_pb.d.ts
+++ b/frontend/src/types/proto-es/v1/rollout_service_pb.d.ts
@@ -295,6 +295,27 @@ export declare type ListTaskRunsRequest = Message<"bytebase.v1.ListTaskRunsReque
* @generated from field: string parent = 1;
*/
parent: string;
+
+ /**
+ * The maximum number of task runs to return. The service may return fewer
+ * than this value.
+ * If unspecified, at most 1000 task runs will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from a previous `ListTaskRuns` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListTaskRuns` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
};
/**
@@ -313,6 +334,14 @@ export declare type ListTaskRunsResponse = Message<"bytebase.v1.ListTaskRunsResp
* @generated from field: repeated bytebase.v1.TaskRun task_runs = 1;
*/
taskRuns: TaskRun[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
};
/**
diff --git a/frontend/src/types/proto-es/v1/rollout_service_pb.js b/frontend/src/types/proto-es/v1/rollout_service_pb.js
index 559737736e..de786ccd26 100644
--- a/frontend/src/types/proto-es/v1/rollout_service_pb.js
+++ b/frontend/src/types/proto-es/v1/rollout_service_pb.js
@@ -16,7 +16,7 @@ import { file_v1_common } from "./common_pb";
* Describes the file v1/rollout_service.proto.
*/
export const file_v1_rollout_service = /*@__PURE__*/
- fileDesc("Chh2MS9yb2xsb3V0X3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIqwBChRCYXRjaFJ1blRhc2tzUmVxdWVzdBIqCgZwYXJlbnQYASABKAlCGuBBAvpBFAoSYnl0ZWJhc2UuY29tL1N0YWdlEg0KBXRhc2tzGAIgAygJEjEKCHJ1bl90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgAiAEBEhkKEXNraXBfcHJpb3JfYmFja3VwGAQgASgIQgsKCV9ydW5fdGltZSIXChVCYXRjaFJ1blRhc2tzUmVzcG9uc2UibAoVQmF0Y2hTa2lwVGFza3NSZXF1ZXN0EioKBnBhcmVudBgBIAEoCUIa4EEC+kEUChJieXRlYmFzZS5jb20vU3RhZ2USDQoFdGFza3MYAiADKAkSGAoGcmVhc29uGAMgASgJQgi6SAVyAxjoByIYChZCYXRjaFNraXBUYXNrc1Jlc3BvbnNlIloKGkJhdGNoQ2FuY2VsVGFza1J1bnNSZXF1ZXN0EikKBnBhcmVudBgBIAEoCUIZ4EEC+kETChFieXRlYmFzZS5jb20vVGFzaxIRCgl0YXNrX3J1bnMYAiADKAkiHQobQmF0Y2hDYW5jZWxUYXNrUnVuc1Jlc3BvbnNlIj8KEUdldFJvbGxvdXRSZXF1ZXN0EioKBG5hbWUYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1JvbGxvdXQiegoTTGlzdFJvbGxvdXRzUmVxdWVzdBIsCgZwYXJlbnQYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1Byb2plY3QSEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkSDgoGZmlsdGVyGAQgASgJIlcKFExpc3RSb2xsb3V0c1Jlc3BvbnNlEiYKCHJvbGx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amVjdHMvKi9wbGFucy8qL3JvbGxvdXQvc3RhZ2VzLyovdGFza3MvKi90YXNrUnVucy8qfTpwcmV2aWV3Um9sbGJhY2tCqQEKD2NvbS5ieXRlYmFzZS52MUITUm9sbG91dFNlcnZpY2VQcm90b1ABWjRnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL2JhY2tlbmQvZ2VuZXJhdGVkLWdvL3YxogIDQlhYqgILQnl0ZWJhc2UuVjHKAgtCeXRlYmFzZVxWMeICF0J5dGViYXNlXFYxXEdQQk1ldGFkYXRh6gIMQnl0ZWJhc2U6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common]);
+ fileDesc("Chh2MS9yb2xsb3V0X3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIqwBChRCYXRjaFJ1blRhc2tzUmVxdWVzdBIqCgZwYXJlbnQYASABKAlCGuBBAvpBFAoSYnl0ZWJhc2UuY29tL1N0YWdlEg0KBXRhc2tzGAIgAygJEjEKCHJ1bl90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgAiAEBEhkKEXNraXBfcHJpb3JfYmFja3VwGAQgASgIQgsKCV9ydW5fdGltZSIXChVCYXRjaFJ1blRhc2tzUmVzcG9uc2UibAoVQmF0Y2hTa2lwVGFza3NSZXF1ZXN0EioKBnBhcmVudBgBIAEoCUIa4EEC+kEUChJieXRlYmFzZS5jb20vU3RhZ2USDQoFdGFza3MYAiADKAkSGAoGcmVhc29uGAMgASgJQgi6SAVyAxjoByIYChZCYXRjaFNraXBUYXNrc1Jlc3BvbnNlIloKGkJhdGNoQ2FuY2VsVGFza1J1bnNSZXF1ZXN0EikKBnBhcmVudBgBIAEoCUIZ4EEC+kETChFieXRlYmFzZS5jb20vVGFzaxIRCgl0YXNrX3J1bnMYAiADKAkiHQobQmF0Y2hDYW5jZWxUYX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GFza1J1bnNSZXNwb25zZSJt2kEGcGFyZW50kOowApjqMAGg6jACgtPkkwJSOgEqIk0vdjEve3BhcmVudD1wcm9qZWN0cy8qL3BsYW5zLyovcm9sbG91dC9zdGFnZXMvKi90YXNrcy8qfS90YXNrUnVuczpiYXRjaENhbmNlbBLyAQoWUHJldmlld1Rhc2tSdW5Sb2xsYmFjaxIqLmJ5dGViYXNlLnYxLlByZXZpZXdUYXNrUnVuUm9sbGJhY2tSZXF1ZXN0GisuYnl0ZWJhc2UudjEuUHJldmlld1Rhc2tSdW5Sb2xsYmFja1Jlc3BvbnNlIn/aQQRuYW1liuowEGJiLnRhc2tSdW5zLmxpc3SQ6jABoOowAYLT5JMCVjoBKiJRL3YxL3tuYW1lPXByb2plY3RzLyovcGxhbnMvKi9yb2xsb3V0L3N0YWdlcy8qL3Rhc2tzLyovdGFza1J1bnMvKn06cHJldmlld1JvbGxiYWNrQqkBCg9jb20uYnl0ZWJhc2UudjFCE1JvbGxvdXRTZXJ2aWNlUHJvdG9QAVo0Z2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9iYWNrZW5kL2dlbmVyYXRlZC1nby92MaICA0JYWKoCC0J5dGViYXNlLlYxygILQnl0ZWJhc2VcVjHiAhdCeXRlYmFzZVxWMVxHUEJNZXRhZGF0YeoCDEJ5dGViYXNlOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common]);
/**
* Describes the message bytebase.v1.BatchRunTasksRequest.
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index f5cdbcc763..756e4ea2a7 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -12393,6 +12393,28 @@ paths:
required: true
schema:
type: string
+ - name: pageSize
+ in: query
+ description: |-
+ The maximum number of task runs to return. The service may return fewer
+ than this value.
+ If unspecified, at most 1000 task runs will be returned.
+ The maximum value is 1000; values above 1000 will be coerced to 1000.
+ schema:
+ type: integer
+ title: page_size
+ format: int32
+ - name: pageToken
+ in: query
+ description: |-
+ A page token, received from a previous `ListTaskRuns` call.
+ Provide this to retrieve the subsequent page.
+
+ When paginating, all other parameters provided to `ListTaskRuns` must match
+ the call that provided the page token.
+ schema:
+ type: string
+ title: page_token
responses:
"200":
description: Success
@@ -13337,10 +13359,10 @@ paths:
Supported filter:
- project: the project full name in "projects/{id}" format, support "==" operator.
- - database: the database full name in "instances/{id}/databases/{name}" format, support "==" operator.
- - instance: the instance full name in "instances/{id}" format, support "==" operator.
+ - database: the database full name in "instances/{id}/databases/{name}" or "projects/{project}/instances/{id}/databases/{name}" format, support "==" operator.
+ - instance: the instance full name in "instances/{id}" or "projects/{project}/instances/{id}" format, support "==" operator.
- type: the type, should be "QUERY" or "EXPORT", support "==" operator.
- - statement: the SQL statement, support ".contains()" operator.
+ - statement: the SQL statement, support "==" and ".contains()" operators.
For example:
project == "projects/{project}"
@@ -13348,6 +13370,7 @@ paths:
instance == "instances/{instance}"
type == "QUERY"
type == "EXPORT"
+ statement == "SELECT 1;"
statement.contains("select")
type == "QUERY" && statement.contains("select")
title: SearchQueryHistoriesRequest
@@ -26370,6 +26393,24 @@ components:
The parent, which owns this collection of taskRuns.
Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}
Use "projects/{project}/plans/{plan}/rollout/stages/-/tasks/-" to list all taskRuns from a rollout.
+ pageSize:
+ type: integer
+ title: page_size
+ format: int32
+ description: |-
+ The maximum number of task runs to return. The service may return fewer
+ than this value.
+ If unspecified, at most 1000 task runs will be returned.
+ The maximum value is 1000; values above 1000 will be coerced to 1000.
+ pageToken:
+ type: string
+ title: page_token
+ description: |-
+ A page token, received from a previous `ListTaskRuns` call.
+ Provide this to retrieve the subsequent page.
+
+ When paginating, all other parameters provided to `ListTaskRuns` must match
+ the call that provided the page token.
title: ListTaskRunsRequest
required:
- parent
@@ -26383,6 +26424,12 @@ components:
$ref: '#/components/schemas/bytebase.v1.TaskRun'
title: task_runs
description: The taskRuns from the specified request.
+ nextPageToken:
+ type: string
+ title: next_page_token
+ description: |-
+ A token, which can be sent as `page_token` to retrieve the next page.
+ If this field is omitted, there are no subsequent pages.
title: ListTaskRunsResponse
additionalProperties: false
bytebase.v1.ListUsersRequest:
@@ -30550,10 +30597,10 @@ components:
Supported filter:
- project: the project full name in "projects/{id}" format, support "==" operator.
- - database: the database full name in "instances/{id}/databases/{name}" format, support "==" operator.
- - instance: the instance full name in "instances/{id}" format, support "==" operator.
+ - database: the database full name in "instances/{id}/databases/{name}" or "projects/{project}/instances/{id}/databases/{name}" format, support "==" operator.
+ - instance: the instance full name in "instances/{id}" or "projects/{project}/instances/{id}" format, support "==" operator.
- type: the type, should be "QUERY" or "EXPORT", support "==" operator.
- - statement: the SQL statement, support ".contains()" operator.
+ - statement: the SQL statement, support "==" and ".contains()" operators.
For example:
project == "projects/{project}"
@@ -30561,6 +30608,7 @@ components:
instance == "instances/{instance}"
type == "QUERY"
type == "EXPORT"
+ statement == "SELECT 1;"
statement.contains("select")
type == "QUERY" && statement.contains("select")
title: SearchQueryHistoriesRequest
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 7c13261c09..cc79f55941 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -2214,6 +2214,10 @@ For example: update_time &gt;= &#34;2025-01-02T15:04:05Z07:00&#34; task_type in
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| parent | [string](#string) | | The parent, which owns this collection of taskRuns. Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task} Use &#34;projects/{project}/plans/{plan}/rollout/stages/-/tasks/-&#34; to list all taskRuns from a rollout. |
+| page_size | [int32](#int32) | | The maximum number of task runs to return. The service may return fewer than this value. If unspecified, at most 1000 task runs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
+| page_token | [string](#string) | | A page token, received from a previous `ListTaskRuns` call. Provide this to retrieve the subsequent page.
+
+When paginating, all other parameters provided to `ListTaskRuns` must match the call that provided the page token. |
@@ -2229,6 +2233,7 @@ For example: update_time &gt;= &#34;2025-01-02T15:04:05Z07:00&#34; task_type in
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| task_runs | [TaskRun](#bytebase-v1-TaskRun) | repeated | The taskRuns from the specified request. |
+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |
@@ -2943,9 +2948,9 @@ For example: creator == &#34;users/{email}&#34; |
| page_token | [string](#string) | | A page token, received from a previous `ListQueryHistory` call. Provide this to retrieve the subsequent page. |
| filter | [string](#string) | | Filter is the filter to apply on the search query history The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-Supported filter: - project: the project full name in &#34;projects/{id}&#34; format, support &#34;==&#34; operator. - database: the database full name in &#34;instances/{id}/databases/{name}&#34; format, support &#34;==&#34; operator. - instance: the instance full name in &#34;instances/{id}&#34; format, support &#34;==&#34; operator. - type: the type, should be &#34;QUERY&#34; or &#34;EXPORT&#34;, support &#34;==&#34; operator. - statement: the SQL statement, support &#34;.contains()&#34; operator.
+Supported filter: - project: the project full name in &#34;projects/{id}&#34; format, support &#34;==&#34; operator. - database: the database full name in &#34;instances/{id}/databases/{name}&#34; or &#34;projects/{project}/instances/{id}/databases/{name}&#34; format, support &#34;==&#34; operator. - instance: the instance full name in &#34;instances/{id}&#34; or &#34;projects/{project}/instances/{id}&#34; format, support &#34;==&#34; operator. - type: the type, should be &#34;QUERY&#34; or &#34;EXPORT&#34;, support &#34;==&#34; operator. - statement: the SQL statement, support &#34;==&#34; and &#34;.contains()&#34; operators.
-For example: project == &#34;projects/{project}&#34; database == &#34;instances/{instance}/databases/{database}&#34; instance == &#34;instances/{instance}&#34; type == &#34;QUERY&#34; type == &#34;EXPORT&#34; statement.contains(&#34;select&#34;) type == &#34;QUERY&#34; &amp;&amp; statement.contains(&#34;select&#34;) |
+For example: project == &#34;projects/{project}&#34; database == &#34;instances/{instance}/databases/{database}&#34; instance == &#34;instances/{instance}&#34; type == &#34;QUERY&#34; type == &#34;EXPORT&#34; statement == &#34;SELECT 1;&#34; statement.contains(&#34;select&#34;) type == &#34;QUERY&#34; &amp;&amp; statement.contains(&#34;select&#34;) |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 5ad2780b73..4a2268ce98 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -6942,6 +6942,27 @@ Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}
Use &#34;projects/{project}/plans/{plan}/rollout/stages/-/tasks/-&#34; to list all taskRuns from a rollout. </p></td>
</tr>
+ <tr>
+ <td>page_size</td>
+ <td><a href="#int32">int32</a></td>
+ <td></td>
+ <td><p>The maximum number of task runs to return. The service may return fewer
+than this value.
+If unspecified, at most 1000 task runs will be returned.
+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>
+ </tr>
+
+ <tr>
+ <td>page_token</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>A page token, received from a previous `ListTaskRuns` call.
+Provide this to retrieve the subsequent page.
+
+When paginating, all other parameters provided to `ListTaskRuns` must match
+the call that provided the page token. </p></td>
+ </tr>
+
</tbody>
</table>
@@ -6966,6 +6987,14 @@ Use &#34;projects/{project}/plans/{plan}/rollout/stages/-/tasks/-&#34; to list a
<td><p>The taskRuns from the specified request. </p></td>
</tr>
+ <tr>
+ <td>next_page_token</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.
+If this field is omitted, there are no subsequent pages. </p></td>
+ </tr>
+
</tbody>
</table>
@@ -8969,10 +8998,10 @@ The syntax and semantics of CEL are documented at https://github.com/google/cel-
Supported filter:
- project: the project full name in &#34;projects/{id}&#34; format, support &#34;==&#34; operator.
-- database: the database full name in &#34;instances/{id}/databases/{name}&#34; format, support &#34;==&#34; operator.
-- instance: the instance full name in &#34;instances/{id}&#34; format, support &#34;==&#34; operator.
+- database: the database full name in &#34;instances/{id}/databases/{name}&#34; or &#34;projects/{project}/instances/{id}/databases/{name}&#34; format, support &#34;==&#34; operator.
+- instance: the instance full name in &#34;instances/{id}&#34; or &#34;projects/{project}/instances/{id}&#34; format, support &#34;==&#34; operator.
- type: the type, should be &#34;QUERY&#34; or &#34;EXPORT&#34;, support &#34;==&#34; operator.
-- statement: the SQL statement, support &#34;.contains()&#34; operator.
+- statement: the SQL statement, support &#34;==&#34; and &#34;.contains()&#34; operators.
For example:
project == &#34;projects/{project}&#34;
@@ -8980,6 +9009,7 @@ database == &#34;instances/{instance}/databases/{database}&#34;
instance == &#34;instances/{instance}&#34;
type == &#34;QUERY&#34;
type == &#34;EXPORT&#34;
+statement == &#34;SELECT 1;&#34;
statement.contains(&#34;select&#34;)
type == &#34;QUERY&#34; &amp;&amp; statement.contains(&#34;select&#34;) </p></td>
</tr>
@@ -10894,7 +10924,7 @@ Ordered by environment deployment order. Empty when no rollout exists. </p></td>
<td><p>The lifecycle status of the linked issue.
Unspecified when no linked issue exists. </p></td>
</tr>
-
+
<tr>
<td>last_plan_editor</td>
<td><a href="#string">string</a></td>
@@ -28891,7 +28921,7 @@ If enabled, issues cannot be created when SQL review finds errors. </p></td>
<td></td>
<td><p>Once enabled, users can request and use the just-in-time access in the SQL Editor. </p></td>
</tr>
-
+
<tr>
<td>allow_last_plan_editor_approval</td>
<td><a href="#bool">bool</a></td>
diff --git a/proto/v1/v1/query_history_service.proto b/proto/v1/v1/query_history_service.proto
index d27a4f202b..19700a4c98 100644
--- a/proto/v1/v1/query_history_service.proto
+++ b/proto/v1/v1/query_history_service.proto
@@ -69,10 +69,10 @@ message SearchQueryHistoriesRequest {
//
// Supported filter:
// - project: the project full name in "projects/{id}" format, support "==" operator.
- // - database: the database full name in "instances/{id}/databases/{name}" format, support "==" operator.
- // - instance: the instance full name in "instances/{id}" format, support "==" operator.
+ // - database: the database full name in "instances/{id}/databases/{name}" or "projects/{project}/instances/{id}/databases/{name}" format, support "==" operator.
+ // - instance: the instance full name in "instances/{id}" or "projects/{project}/instances/{id}" format, support "==" operator.
// - type: the type, should be "QUERY" or "EXPORT", support "==" operator.
- // - statement: the SQL statement, support ".contains()" operator.
+ // - statement: the SQL statement, support "==" and ".contains()" operators.
//
// For example:
// project == "projects/{project}"
@@ -80,6 +80,7 @@ message SearchQueryHistoriesRequest {
// instance == "instances/{instance}"
// type == "QUERY"
// type == "EXPORT"
+ // statement == "SELECT 1;"
// statement.contains("select")
// type == "QUERY" && statement.contains("select")
string filter = 3;
diff --git a/proto/v1/v1/rollout_service.proto b/proto/v1/v1/rollout_service.proto
index c46839fffd..b58b02aac7 100644
--- a/proto/v1/v1/rollout_service.proto
+++ b/proto/v1/v1/rollout_service.proto
@@ -322,11 +322,28 @@ message ListTaskRunsRequest {
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {type: "bytebase.com/Task"}
];
+
+ // The maximum number of task runs to return. The service may return fewer
+ // than this value.
+ // If unspecified, at most 1000 task runs will be returned.
+ // The maximum value is 1000; values above 1000 will be coerced to 1000.
+ int32 page_size = 2;
+
+ // A page token, received from a previous `ListTaskRuns` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListTaskRuns` must match
+ // the call that provided the page token.
+ string page_token = 3;
}
message ListTaskRunsResponse {
// The taskRuns from the specified request.
repeated TaskRun task_runs = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
}
message GetTaskRunRequest {