Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: rename has_pipeline to has_rollout in Plan filter (#18665)
Danny Xu1e87e75ead8f
diff --git a/backend/api/mcp/gen/openapi.yaml b/backend/api/mcp/gen/openapi.yamlindex 9456bddf8b..f32531d7a0 100644--- a/backend/api/mcp/gen/openapi.yaml+++ b/backend/api/mcp/gen/openapi.yaml@@ -11629,7 +11629,7 @@ components:Supported filters:- creator: the plan creator full name in "users/{email or id}" format, support "==" operator.- create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.- - has_rollout: the plan has rollout or not, support "==" operator, the value should be "true" or "false".+ - has_rollout: whether the plan has rollout, support "==" operator, the value should be "true" or "false".- has_issue: the plan has issue or not, support "==" operator, the value should be "true" or "false".- title: the plan title, support "==" operator for exact match and ".matches()" operator for case-insensitive substring match.- spec_type: the plan spec config type, support "==" operator, the value should be "create_database_config", "change_database_config", or "export_data_config".@@ -11637,7 +11637,7 @@ components:For example:creator == "users/[email protected]" && create_time >= "2025-01-02T15:04:05Z07:00"- has_pipeline == false && has_issue == true+ has_rollout == false && has_issue == truetitle == "My Plan"title.matches("database migration")spec_type == "change_database_config"@@ -11905,13 +11905,11 @@ components:The syntax and semantics of CEL are documented at https://github.com/google/cel-specSupported filters:- - creator: the rollout creator full name in "users/{email or id}" format, support "==" operator.- update_time: rollout update time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.- - task_type: the task type, support "==" and "in" operators, check the Task.Type enum for the values.+ - task_type: the task type, support "in" operator, check the Task.Type enum for the values.For example:- creator == "users/[email protected]" && update_time >= "2025-01-02T15:04:05Z07:00"- task_type == "DATABASE_MIGRATE"+ update_time >= "2025-01-02T15:04:05Z07:00"task_type in ["DATABASE_MIGRATE", "DATABASE_EXPORT"]title: ListRolloutsRequestadditionalProperties: falsediff --git a/backend/generated-go/v1/plan_service.pb.go b/backend/generated-go/v1/plan_service.pb.goindex ef1c812f20..0abfae75df 100644--- a/backend/generated-go/v1/plan_service.pb.go+++ b/backend/generated-go/v1/plan_service.pb.go@@ -201,7 +201,7 @@ type ListPlansRequest struct {// Supported filters:// - creator: the plan creator full name in "users/{email or id}" format, support "==" operator.// - create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.- // - has_rollout: the plan has rollout or not, support "==" operator, the value should be "true" or "false".+ // - has_rollout: whether the plan has rollout, support "==" operator, the value should be "true" or "false".// - has_issue: the plan has issue or not, support "==" operator, the value should be "true" or "false".// - title: the plan title, support "==" operator for exact match and ".matches()" operator for case-insensitive substring match.// - spec_type: the plan spec config type, support "==" operator, the value should be "create_database_config", "change_database_config", or "export_data_config".@@ -209,7 +209,7 @@ type ListPlansRequest struct {//// For example:// creator == "users/[email protected]" && create_time >= "2025-01-02T15:04:05Z07:00"- // has_pipeline == false && has_issue == true+ // has_rollout == false && has_issue == true// title == "My Plan"// title.matches("database migration")// spec_type == "change_database_config"diff --git a/backend/generated-go/v1/rollout_service.pb.go b/backend/generated-go/v1/rollout_service.pb.goindex 671380f06a..4d31e83dfc 100644--- a/backend/generated-go/v1/rollout_service.pb.go+++ b/backend/generated-go/v1/rollout_service.pb.go@@ -830,13 +830,11 @@ type ListRolloutsRequest struct {// The syntax and semantics of CEL are documented at https://github.com/google/cel-spec//// Supported filters:- // - creator: the rollout creator full name in "users/{email or id}" format, support "==" operator.// - update_time: rollout update time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.- // - task_type: the task type, support "==" and "in" operators, check the Task.Type enum for the values.+ // - task_type: the task type, support "in" operator, check the Task.Type enum for the values.//// For example:- // creator == "users/[email protected]" && update_time >= "2025-01-02T15:04:05Z07:00"- // task_type == "DATABASE_MIGRATE"+ // update_time >= "2025-01-02T15:04:05Z07:00"// task_type in ["DATABASE_MIGRATE", "DATABASE_EXPORT"]Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`unknownFields protoimpl.UnknownFieldsdiff --git a/backend/store/plan.go b/backend/store/plan.goindex 3782105a87..355f96fb22 100644--- a/backend/store/plan.go+++ b/backend/store/plan.go@@ -330,12 +330,12 @@ func GetListPlanFilter(filter string) (*qb.Query, error) {return nil, errors.New("invalid empty creator identifier")}return qb.Q().Space("plan.creator = ?", creatorEmail), nil- case "has_pipeline":- hasPipeline, ok := value.(bool)+ case "has_rollout":+ hasRollout, ok := value.(bool)if !ok {- return nil, errors.Errorf(`"has_pipeline" should be bool`)+ return nil, errors.Errorf(`"has_rollout" should be bool`)}- if !hasPipeline {+ if !hasRollout {return qb.Q().Space("(plan.config->>'hasRollout' IS NULL OR plan.config->>'hasRollout' = ?)", "false"), nil}return qb.Q().Space("plan.config->>'hasRollout' = ?", "true"), nildiff --git a/backend/store/plan_filter_test.go b/backend/store/plan_filter_test.goindex 147260158b..237ef63a5d 100644--- a/backend/store/plan_filter_test.go+++ b/backend/store/plan_filter_test.go@@ -25,15 +25,15 @@ func TestGetListPlanFilter(t *testing.T) {wantErr: false,},{- name: "has_pipeline filter - true",- filter: `has_pipeline == true`,+ name: "has_rollout filter - true",+ filter: `has_rollout == true`,wantSQL: "(plan.config->>'hasRollout' = $1)",wantArgs: []any{"true"},wantErr: false,},{- name: "has_pipeline filter - false",- filter: `has_pipeline == false`,+ name: "has_rollout filter - false",+ filter: `has_rollout == false`,wantSQL: "((plan.config->>'hasRollout' IS NULL OR plan.config->>'hasRollout' = $1))",wantArgs: []any{"false"},wantErr: false,@@ -122,15 +122,15 @@ func TestGetListPlanFilter(t *testing.T) {wantErr: false,},{- name: "AND condition with has_pipeline and has_issue",- filter: `has_pipeline == true && has_issue == true`,+ name: "AND condition with has_rollout and has_issue",+ filter: `has_rollout == true && has_issue == true`,wantSQL: "((plan.config->>'hasRollout' = $1 AND issue.id IS NOT NULL))",wantArgs: []any{"true"},wantErr: false,},{name: "complex AND condition",- filter: `title == "Test Plan" && state == "STATE_ACTIVE" && has_pipeline == true`,+ filter: `title == "Test Plan" && state == "STATE_ACTIVE" && has_rollout == true`,wantSQL: "(((plan.name = $1 AND plan.deleted = $2) AND plan.config->>'hasRollout' = $3))",wantArgs: []any{"Test Plan", false, "true"},wantErr: false,@@ -167,10 +167,10 @@ func TestGetListPlanFilter(t *testing.T) {errContains: "invalid spec_type value",},{- name: "has_pipeline with non-bool value",- filter: `has_pipeline == "true"`,+ name: "has_rollout with non-bool value",+ filter: `has_rollout == "true"`,wantErr: true,- errContains: `"has_pipeline" should be bool`,+ errContains: `"has_rollout" should be bool`,},{name: "has_issue with non-bool value",diff --git a/backend/store/pipeline.go b/backend/store/rollout_filter.gosimilarity index 79%rename from backend/store/pipeline.gorename to backend/store/rollout_filter.goindex 27eae5dc1f..3954d2eb25 100644--- a/backend/store/pipeline.go+++ b/backend/store/rollout_filter.go@@ -1,7 +1,6 @@package storeimport (- "strings""time""github.com/google/cel-go/cel"@@ -46,29 +45,6 @@ func GetListRolloutFilter(filter string) (*qb.Query, error) {q.And("?", qq)}return qb.Q().Space("(?)", q), nil- case celoperators.Equals:- variable, value := getVariableAndValueFromExpr(expr)- switch variable {- case "creator":- creatorEmail := strings.TrimPrefix(value.(string), "users/")- if creatorEmail == "" {- return nil, errors.New("invalid empty creator identifier")- }- return qb.Q().Space("plan.creator = ?", creatorEmail), nil- case "task_type":- taskType, ok := value.(string)- if !ok {- return nil, errors.Errorf("task_type value must be a string")- }- if _, ok := v1pb.Task_Type_value[taskType]; !ok {- return nil, errors.Errorf("invalid task_type value: %s", taskType)- }- v1TaskType := v1pb.Task_Type(v1pb.Task_Type_value[taskType])- storeTaskType := convertV1ToStoreTaskType(v1TaskType)- return qb.Q().Space("EXISTS (SELECT 1 FROM task WHERE task.plan_id = plan.id AND task.type = ?)", storeTaskType.String()), nil- default:- return nil, errors.Errorf("unsupported variable %q", variable)- }case celoperators.In:variable, value := getVariableAndValueFromExpr(expr)switch variable {@@ -110,7 +86,6 @@ func GetListRolloutFilter(filter string) (*qb.Query, error) {if err != nil {return nil, errors.Errorf("failed to parse time %v, error: %v", value, err)}- // Use the same subquery as in ListPipelines SELECT to compute updated_atupdatedAtSubquery := `COALESCE((SELECT MAX(task_run.updated_at) FROM task JOIN task_run ON task_run.task_id = task.id WHERE task.plan_id = plan.id), plan.created_at)`if functionName == celoperators.GreaterEquals {return qb.Q().Space(updatedAtSubquery+" >= ?", t), nildiff --git a/backend/store/pipeline_filter_test.go b/backend/store/rollout_filter_test.gosimilarity index 79%rename from backend/store/pipeline_filter_test.gorename to backend/store/rollout_filter_test.goindex dc59a64ee1..7ab7137fdf 100644--- a/backend/store/pipeline_filter_test.go+++ b/backend/store/rollout_filter_test.go@@ -26,20 +26,6 @@ func TestGetListRolloutFilter(t *testing.T) {wantArgs: nil,wantErr: false,},- {- name: "creator filter",- filter: `creator == "users/[email protected]"`,- wantSQL: "(plan.creator = $1)",- wantArgs: []any{"[email protected]"},- wantErr: false,- },- {- name: "task_type equals filter",- filter: `task_type == "DATABASE_MIGRATE"`,- wantSQL: "(EXISTS (SELECT 1 FROM task WHERE task.plan_id = plan.id AND task.type = $1))",- wantArgs: []any{"DATABASE_MIGRATE"},- wantErr: false,- },{name: "task_type in filter",filter: `task_type in ["DATABASE_MIGRATE", "DATABASE_SDL"]`,@@ -79,9 +65,9 @@ func TestGetListRolloutFilter(t *testing.T) {},{name: "AND condition with task_type and update_time",- filter: `task_type == "DATABASE_MIGRATE" && update_time >= "2024-01-01T00:00:00Z"`,- wantSQL: "((EXISTS (SELECT 1 FROM task WHERE task.plan_id = plan.id AND task.type = $1) AND " + updatedAtSubquery + " >= $2))",- wantArgs: []any{"DATABASE_MIGRATE", func() time.Time {+ filter: `task_type in ["DATABASE_MIGRATE"] && update_time >= "2024-01-01T00:00:00Z"`,+ wantSQL: "((EXISTS (SELECT 1 FROM task WHERE task.plan_id = plan.id AND task.type = ANY($1)) AND " + updatedAtSubquery + " >= $2))",+ wantArgs: []any{[]string{"DATABASE_MIGRATE"}, func() time.Time {ts, _ := time.Parse(time.RFC3339, "2024-01-01T00:00:00Z")return ts}()},@@ -95,13 +81,13 @@ func TestGetListRolloutFilter(t *testing.T) {},{name: "unsupported variable",- filter: `unsupported == "value"`,+ filter: `unsupported in ["value"]`,wantErr: true,errContains: "unsupported variable",},{name: "invalid task_type value",- filter: `task_type == "INVALID_TYPE"`,+ filter: `task_type in ["INVALID_TYPE"]`,wantErr: true,errContains: "invalid task_type value",},@@ -117,15 +103,9 @@ func TestGetListRolloutFilter(t *testing.T) {wantErr: true,errContains: `">=" and "<=" are only supported for "update_time"`,},- {- name: "empty creator identifier",- filter: `creator == "users/"`,- wantErr: true,- errContains: "invalid empty creator identifier",- },{name: "task_type with non-string value",- filter: `task_type == 123`,+ filter: `task_type in [123]`,wantErr: true,errContains: "task_type value must be a string",},diff --git a/frontend/src/store/modules/rollout.ts b/frontend/src/store/modules/rollout.tsindex 618398d7d4..c97cdd42e6 100644--- a/frontend/src/store/modules/rollout.ts+++ b/frontend/src/store/modules/rollout.ts@@ -21,25 +21,17 @@ import {export interface RolloutFind {project: string;- taskType?: Task_Type | Task_Type[];+ taskType?: Task_Type[];query?: string;- creator?: string;updatedTsAfter?: number;updatedTsBefore?: number;}export const buildRolloutFilter = (find: RolloutFind): string => {const filter: string[] = [];- if (find.taskType) {- if (Array.isArray(find.taskType)) {- const types = find.taskType.map((t) => `"${Task_Type[t]}"`).join(", ");- filter.push(`task_type in [${types}]`);- } else {- filter.push(`task_type == "${Task_Type[find.taskType]}"`);- }- }- if (find.creator) {- filter.push(`creator == "${find.creator}"`);+ if (find.taskType && find.taskType.length > 0) {+ const types = find.taskType.map((t) => `"${Task_Type[t]}"`).join(", ");+ filter.push(`task_type in [${types}]`);}if (find.updatedTsAfter) {filter.push(@@ -67,7 +59,6 @@ export const buildRolloutFindBySearchParams = (query: params.query,updatedTsAfter: updatedTsRange?.[0],updatedTsBefore: updatedTsRange?.[1],- creator: getValueFromSearchParams(params, "creator", "users/"),};return filter;};diff --git a/frontend/src/store/modules/v1/plan.ts b/frontend/src/store/modules/v1/plan.tsindex d9652ff320..624cf5b9e6 100644--- a/frontend/src/store/modules/v1/plan.ts+++ b/frontend/src/store/modules/v1/plan.ts@@ -23,7 +23,7 @@ export interface PlanFind {createdTsAfter?: number;createdTsBefore?: number;hasIssue?: boolean;- hasPipeline?: boolean;+ hasRollout?: boolean;specType?: string;state?: "ACTIVE" | "DELETED";}@@ -49,8 +49,8 @@ export const buildPlanFilter = (find: PlanFind): string => {if (find.hasIssue !== undefined) {filter.push(`has_issue == ${find.hasIssue}`);}- if (find.hasPipeline !== undefined) {- filter.push(`has_pipeline == ${find.hasPipeline}`);+ if (find.hasRollout !== undefined) {+ filter.push(`has_rollout == ${find.hasRollout}`);}if (find.specType) {filter.push(`spec_type == "${find.specType}"`);diff --git a/frontend/src/types/proto-es/v1/plan_service_pb.d.ts b/frontend/src/types/proto-es/v1/plan_service_pb.d.tsindex a275e14b13..966054b8c6 100644--- a/frontend/src/types/proto-es/v1/plan_service_pb.d.ts+++ b/frontend/src/types/proto-es/v1/plan_service_pb.d.ts@@ -73,7 +73,7 @@ export declare type ListPlansRequest = Message<"bytebase.v1.ListPlansRequest"> &* Supported filters:* - creator: the plan creator full name in "users/{email or id}" format, support "==" operator.* - create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.- * - has_rollout: the plan has rollout or not, support "==" operator, the value should be "true" or "false".+ * - has_rollout: whether the plan has rollout, support "==" operator, the value should be "true" or "false".* - has_issue: the plan has issue or not, support "==" operator, the value should be "true" or "false".* - title: the plan title, support "==" operator for exact match and ".matches()" operator for case-insensitive substring match.* - spec_type: the plan spec config type, support "==" operator, the value should be "create_database_config", "change_database_config", or "export_data_config".@@ -81,7 +81,7 @@ export declare type ListPlansRequest = Message<"bytebase.v1.ListPlansRequest"> &** For example:* creator == "users/[email protected]" && create_time >= "2025-01-02T15:04:05Z07:00"- * has_pipeline == false && has_issue == true+ * has_rollout == false && has_issue == true* title == "My Plan"* title.matches("database migration")* spec_type == "change_database_config"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.tsindex 33a03ad2ca..44f7f98c2c 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@@ -203,13 +203,11 @@ export declare type ListRolloutsRequest = Message<"bytebase.v1.ListRolloutsReque* The syntax and semantics of CEL are documented at https://github.com/google/cel-spec** Supported filters:- * - creator: the rollout creator full name in "users/{email or id}" format, support "==" operator.* - update_time: rollout update time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.- * - task_type: the task type, support "==" and "in" operators, check the Task.Type enum for the values.+ * - task_type: the task type, support "in" operator, check the Task.Type enum for the values.** For example:- * creator == "users/[email protected]" && update_time >= "2025-01-02T15:04:05Z07:00"- * task_type == "DATABASE_MIGRATE"+ * update_time >= "2025-01-02T15:04:05Z07:00"* task_type in ["DATABASE_MIGRATE", "DATABASE_EXPORT"]** @generated from field: string filter = 4;diff --git a/frontend/src/views/project/ProjectPlanDashboard.vue b/frontend/src/views/project/ProjectPlanDashboard.vueindex a11ce7a9fa..b7c78202bf 100644--- a/frontend/src/views/project/ProjectPlanDashboard.vue+++ b/frontend/src/views/project/ProjectPlanDashboard.vue@@ -246,7 +246,7 @@ const mergedPlanFind = computed(() => {: // Default find for legacy layout.{hasIssue: false,- hasPipeline: false,+ hasRollout: false,};return buildPlanFindBySearchParams(planSearchParams.value, {// Only show change database plans.diff --git a/frontend/src/views/project/ProjectRolloutDashboard.vue b/frontend/src/views/project/ProjectRolloutDashboard.vueindex 3a4b1e2bd4..cbe00cd6e9 100644--- a/frontend/src/views/project/ProjectRolloutDashboard.vue+++ b/frontend/src/views/project/ProjectRolloutDashboard.vue@@ -36,41 +36,26 @@</template><script lang="ts" setup>-import { computed, h, reactive, ref, watch } from "vue";+import { computed, reactive, ref, watch } from "vue";import type { ComponentExposed } from "vue-component-type-helpers";-import { useI18n } from "vue-i18n";-import BBAvatar from "@/bbkit/BBAvatar.vue";import AdvancedSearch from "@/components/AdvancedSearch";-import type {- ScopeOption,- ValueOption,-} from "@/components/AdvancedSearch/types";+import type { ScopeOption } from "@/components/AdvancedSearch/types";import UpdatedTimeRange from "@/components/AdvancedSearch/UpdatedTimeRange.vue";import { useCommonSearchScopeOptions } from "@/components/AdvancedSearch/useCommonSearchScopeOptions";-import SystemBotTag from "@/components/misc/SystemBotTag.vue";-import YouTag from "@/components/misc/YouTag.vue";import RolloutDataTable from "@/components/Rollout/RolloutDataTable.vue";import PagedTable from "@/components/v2/Model/PagedTable.vue";-import {- useCurrentUserV1,- useProjectByName,- useRolloutStore,- useUserStore,-} from "@/store";+import { useProjectByName, useRolloutStore } from "@/store";import {buildRolloutFindBySearchParams,type RolloutFind,} from "@/store/modules/rollout";import { projectNamePrefix } from "@/store/modules/v1/common";-import { SYSTEM_BOT_USER_NAME } from "@/types";import {type Rollout,Task_Type,} from "@/types/proto-es/v1/rollout_service_pb";-import { UserType } from "@/types/proto-es/v1/user_service_pb";import {extractProjectResourceName,- getDefaultPagination,type SearchParams,type SearchScope,type SearchScopeId,@@ -84,14 +69,11 @@ const props = defineProps<{projectId: string;}>();-const { t } = useI18n();-const me = useCurrentUserV1();const { project } = useProjectByName(computed(() => `${projectNamePrefix}${props.projectId}`));const rolloutStore = useRolloutStore();-const userStore = useUserStore();const rolloutPagedTable = ref<ComponentExposed<typeof PagedTable<Rollout>>>();const readonlyScopes = computed((): SearchScope[] => {@@ -116,76 +98,15 @@ watch();const supportedScopes = computed(() => {- const supportedScopes: SearchScopeId[] = ["creator", "updated"];+ const supportedScopes: SearchScopeId[] = ["updated"];return supportedScopes;});// Custom scope options for rollouts that includes creator functionalityconst scopeOptions = computed((): ScopeOption[] => {- const commonOptions = useCommonSearchScopeOptions(- supportedScopes.value.filter((id) => id !== "creator")- );-- const renderSpan = (text: string) => h("span", text);-- const searchPrincipalSearchValueOptions = (userTypes: UserType[]) => {- return ({- keyword,- nextPageToken,- }: {- keyword: string;- nextPageToken?: string;- }) =>- userStore- .fetchUserList({- pageToken: nextPageToken,- pageSize: getDefaultPagination(),- filter: {- types: userTypes,- query: keyword,- },- })- .then((resp) => ({- nextPageToken: resp.nextPageToken,- options: resp.users.map<ValueOption>((user) => {- return {- value: user.email,- keywords: [user.email, user.title],- bot: user.name === SYSTEM_BOT_USER_NAME,- render: () => {- const children = [- h(BBAvatar, { size: "TINY", username: user.title }),- renderSpan(user.title),- ];- if (user.name === me.value.name) {- children.push(h(YouTag));- }- if (user.name === SYSTEM_BOT_USER_NAME) {- children.push(h(SystemBotTag));- }- return h(- "div",- { class: "flex items-center gap-x-1" },- children- );- },- };- }),- }));- };-- const creatorOption: ScopeOption = {- id: "creator",- title: t("issue.advanced-search.scope.creator.title"),- description: t("issue.advanced-search.scope.creator.description"),- search: searchPrincipalSearchValueOptions([- UserType.USER,- UserType.SERVICE_ACCOUNT,- UserType.SYSTEM_BOT,- ]),- };+ const commonOptions = useCommonSearchScopeOptions(supportedScopes.value);- return [...commonOptions.value, creatorOption];+ return [...commonOptions.value];});const rolloutSearchParams = computed(() => {diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 5ca84b1a45..8266814212 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -4476,7 +4476,7 @@ paths:Supported filters:- creator: the plan creator full name in "users/{email or id}" format, support "==" operator.- create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.- - has_rollout: the plan has rollout or not, support "==" operator, the value should be "true" or "false".+ - has_rollout: whether the plan has rollout, support "==" operator, the value should be "true" or "false".- has_issue: the plan has issue or not, support "==" operator, the value should be "true" or "false".- title: the plan title, support "==" operator for exact match and ".matches()" operator for case-insensitive substring match.- spec_type: the plan spec config type, support "==" operator, the value should be "create_database_config", "change_database_config", or "export_data_config".@@ -4484,7 +4484,7 @@ paths:For example:creator == "users/[email protected]" && create_time >= "2025-01-02T15:04:05Z07:00"- has_pipeline == false && has_issue == true+ has_rollout == false && has_issue == truetitle == "My Plan"title.matches("database migration")spec_type == "change_database_config"@@ -5789,13 +5789,11 @@ paths:The syntax and semantics of CEL are documented at https://github.com/google/cel-specSupported filters:- - creator: the rollout creator full name in "users/{email or id}" format, support "==" operator.- update_time: rollout update time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.- - task_type: the task type, support "==" and "in" operators, check the Task.Type enum for the values.+ - task_type: the task type, support "in" operator, check the Task.Type enum for the values.For example:- creator == "users/[email protected]" && update_time >= "2025-01-02T15:04:05Z07:00"- task_type == "DATABASE_MIGRATE"+ update_time >= "2025-01-02T15:04:05Z07:00"task_type in ["DATABASE_MIGRATE", "DATABASE_EXPORT"]schema:type: stringdiff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 8e8d248a56..d2b38c22a6 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -7484,9 +7484,9 @@ SQLService executes SQL queries and manages query operations.When paginating, all other parameters provided to `ListPlans` must match the call that provided the page token. || filter | [string](#string) | | Filter is used to filter plans returned in the list. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec-Supported filters: - creator: the plan creator full name in "users/{email or id}" format, support "==" operator. - create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator. - has_rollout: the plan has rollout or not, support "==" operator, the value should be "true" or "false". - has_issue: the plan has issue or not, support "==" operator, the value should be "true" or "false". - title: the plan title, support "==" operator for exact match and ".matches()" operator for case-insensitive substring match. - spec_type: the plan spec config type, support "==" operator, the value should be "create_database_config", "change_database_config", or "export_data_config". - state: the plan state, support "==" operator, the value should be "ACTIVE" or "DELETED".+Supported filters: - creator: the plan creator full name in "users/{email or id}" format, support "==" operator. - create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator. - has_rollout: whether the plan has rollout, support "==" operator, the value should be "true" or "false". - has_issue: the plan has issue or not, support "==" operator, the value should be "true" or "false". - title: the plan title, support "==" operator for exact match and ".matches()" operator for case-insensitive substring match. - spec_type: the plan spec config type, support "==" operator, the value should be "create_database_config", "change_database_config", or "export_data_config". - state: the plan state, support "==" operator, the value should be "ACTIVE" or "DELETED".-For example: creator == "users/[email protected]" && create_time >= "2025-01-02T15:04:05Z07:00" has_pipeline == false && has_issue == true title == "My Plan" title.matches("database migration") spec_type == "change_database_config" state == "ACTIVE" |+For example: creator == "users/[email protected]" && create_time >= "2025-01-02T15:04:05Z07:00" has_rollout == false && has_issue == true title == "My Plan" title.matches("database migration") spec_type == "change_database_config" state == "ACTIVE" |@@ -9485,9 +9485,9 @@ RoleService manages workspace roles and permissions.When paginating, all other parameters provided to `ListRollouts` must match the call that provided the page token. || filter | [string](#string) | | Filter is used to filter rollouts returned in the list. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec-Supported filters: - creator: the rollout creator full name in "users/{email or id}" format, support "==" operator. - update_time: rollout update time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator. - task_type: the task type, support "==" and "in" operators, check the Task.Type enum for the values.+Supported filters: - update_time: rollout update time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator. - task_type: the task type, support "in" operator, check the Task.Type enum for the values.-For example: creator == "users/[email protected]" && update_time >= "2025-01-02T15:04:05Z07:00" task_type == "DATABASE_MIGRATE" task_type in ["DATABASE_MIGRATE", "DATABASE_EXPORT"] |+For example: update_time >= "2025-01-02T15:04:05Z07:00" task_type in ["DATABASE_MIGRATE", "DATABASE_EXPORT"] |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex b5e800b476..33ed90cb31 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -21089,7 +21089,7 @@ The syntax and semantics of CEL are documented at https://github.com/google/cel-Supported filters:- creator: the plan creator full name in "users/{email or id}" format, support "==" operator.- create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.-- has_rollout: the plan has rollout or not, support "==" operator, the value should be "true" or "false".+- has_rollout: whether the plan has rollout, support "==" operator, the value should be "true" or "false".- has_issue: the plan has issue or not, support "==" operator, the value should be "true" or "false".- title: the plan title, support "==" operator for exact match and ".matches()" operator for case-insensitive substring match.- spec_type: the plan spec config type, support "==" operator, the value should be "create_database_config", "change_database_config", or "export_data_config".@@ -21097,7 +21097,7 @@ Supported filters:For example:creator == "users/[email protected]" && create_time >= "2025-01-02T15:04:05Z07:00"-has_pipeline == false && has_issue == true+has_rollout == false && has_issue == truetitle == "My Plan"title.matches("database migration")spec_type == "change_database_config"@@ -26668,13 +26668,11 @@ the call that provided the page token. </p></td>The syntax and semantics of CEL are documented at https://github.com/google/cel-specSupported filters:-- creator: the rollout creator full name in "users/{email or id}" format, support "==" operator.- update_time: rollout update time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.-- task_type: the task type, support "==" and "in" operators, check the Task.Type enum for the values.+- task_type: the task type, support "in" operator, check the Task.Type enum for the values.For example:-creator == "users/[email protected]" && update_time >= "2025-01-02T15:04:05Z07:00"-task_type == "DATABASE_MIGRATE"+update_time >= "2025-01-02T15:04:05Z07:00"task_type in ["DATABASE_MIGRATE", "DATABASE_EXPORT"] </p></td></tr>diff --git a/proto/v1/v1/plan_service.proto b/proto/v1/v1/plan_service.protoindex 1c5137dd7a..43607f2550 100644--- a/proto/v1/v1/plan_service.proto+++ b/proto/v1/v1/plan_service.proto@@ -133,7 +133,7 @@ message ListPlansRequest {// Supported filters:// - creator: the plan creator full name in "users/{email or id}" format, support "==" operator.// - create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.- // - has_rollout: the plan has rollout or not, support "==" operator, the value should be "true" or "false".+ // - has_rollout: whether the plan has rollout, support "==" operator, the value should be "true" or "false".// - has_issue: the plan has issue or not, support "==" operator, the value should be "true" or "false".// - title: the plan title, support "==" operator for exact match and ".matches()" operator for case-insensitive substring match.// - spec_type: the plan spec config type, support "==" operator, the value should be "create_database_config", "change_database_config", or "export_data_config".@@ -141,7 +141,7 @@ message ListPlansRequest {//// For example:// creator == "users/[email protected]" && create_time >= "2025-01-02T15:04:05Z07:00"- // has_pipeline == false && has_issue == true+ // has_rollout == false && has_issue == true// title == "My Plan"// title.matches("database migration")// spec_type == "change_database_config"diff --git a/proto/v1/v1/rollout_service.proto b/proto/v1/v1/rollout_service.protoindex 39173ae5b6..c18dcec4b9 100644--- a/proto/v1/v1/rollout_service.proto+++ b/proto/v1/v1/rollout_service.proto@@ -216,13 +216,11 @@ message ListRolloutsRequest {// The syntax and semantics of CEL are documented at https://github.com/google/cel-spec//// Supported filters:- // - creator: the rollout creator full name in "users/{email or id}" format, support "==" operator.// - update_time: rollout update time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.- // - task_type: the task type, support "==" and "in" operators, check the Task.Type enum for the values.+ // - task_type: the task type, support "in" operator, check the Task.Type enum for the values.//// For example:- // creator == "users/[email protected]" && update_time >= "2025-01-02T15:04:05Z07:00"- // task_type == "DATABASE_MIGRATE"+ // update_time >= "2025-01-02T15:04:05Z07:00"// task_type in ["DATABASE_MIGRATE", "DATABASE_EXPORT"]string filter = 4;}