Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
refactor(frontend): remove unsupported ListIssues filters (#18684)
Danny Xu45d61e6a04a9
diff --git a/backend/api/mcp/gen/openapi.yaml b/backend/api/mcp/gen/openapi.yamlindex 736ff1968c..93063a9e4c 100644--- a/backend/api/mcp/gen/openapi.yaml+++ b/backend/api/mcp/gen/openapi.yaml@@ -11574,10 +11574,6 @@ components:- status: the issue status, support "==" and "in" operator, check the IssueStatus enum for the values.- create_time: issue create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.- type: the issue type, support "==" and "in" operator, check the Type enum in the Issue message for the values.- - task_type: support "==" operator, the value can be "DDL", "DML" or "DATA_EXPORT"- - instance: the instance full name in the "instances/{id}" format, support "==" operator.- - database: the database full name in the "instances/{id}/databases/{name}" format, support "==" operator.- - environment: the database full name in the "environments/{name}" format, support "==" operator.- labels: the issue labels, support "==" and "in" operator.- approval_status: issue approval status, support "==" operator.- current_approver: the issue approver, should in "users/{email} format", support "==" operator.@@ -11585,9 +11581,8 @@ components:For example:creator == "users/[email protected]" && status in ["OPEN", "DONE"]status == "CANCELED" && type == "DATABASE_CHANGE"- instance == "instances/sample" && labels in ["label1", "label2"]+ labels in ["label1", "label2"]create_time >= "2025-01-02T15:04:05Z07:00"- environment == "environments/test"query:type: stringtitle: query@@ -12964,7 +12959,7 @@ components:- FEATURE_DATA_CLASSIFICATION- FEATURE_SCIM- FEATURE_DIRECTORY_SYNC- - FEATURE_SIGN_IN_FREQUENCY_CONTROL+ - FEATURE_TOKEN_DURATION_CONTROL- FEATURE_EXTERNAL_SECRET_MANAGER- FEATURE_USER_EMAIL_DOMAIN_RESTRICTION- FEATURE_PROJECT_MANAGEMENT@@ -14090,12 +14085,6 @@ components:description: |-The resource name of the rollout.Format: projects/{project}/plans/{plan}/rollout- plan:- type: string- title: plan- description: |-- The plan that this rollout is based on.- Format: projects/{project}/plans/{plan}title:type: stringtitle: title@@ -14108,22 +14097,12 @@ components:$ref: '#/components/schemas/bytebase.v1.Stage'title: stagesdescription: Stages and thus tasks of the rollout.- creator:- type: string- title: creator- description: 'Format: users/[email protected]'createTime:title: create_time$ref: '#/components/schemas/google.protobuf.Timestamp'updateTime:title: update_time$ref: '#/components/schemas/google.protobuf.Timestamp'- issue:- type: string- title: issue- description: |-- The issue associated with the rollout. Could be empty.- Format: projects/{project}/issues/{issue}title: RolloutadditionalProperties: falsebytebase.v1.RolloutPolicy:diff --git a/backend/api/v1/issue_service.go b/backend/api/v1/issue_service.goindex 2871267cdf..de25e3d0a7 100644--- a/backend/api/v1/issue_service.go+++ b/backend/api/v1/issue_service.go@@ -114,35 +114,6 @@ func (s *IssueService) getIssueFind(case celoperators.Equals:variable, value := getVariableAndValueFromExpr(expr)switch variable {- case "instance":- instanceResourceID, err := common.GetInstanceID(value.(string))- if err != nil {- return "", connect.NewError(connect.CodeInvalidArgument, errors.Errorf(`invalid instance resource id "%s": %v`, value, err.Error()))- }- issueFind.InstanceResourceID = &instanceResourceID- case "database":- databaseResourceName, ok := value.(string)- if !ok {- return "", connect.NewError(connect.CodeInvalidArgument, errors.Errorf("failed to parse database value %v to string", value))- }- instanceID, databaseName, err := common.GetInstanceDatabaseID(databaseResourceName)- if err != nil {- return "", connect.NewError(connect.CodeInternal, errors.Wrapf(err, "failed to parse %q", databaseResourceName))- }- issueFind.InstanceID = &instanceID- issueFind.DatabaseName = &databaseName- case "environment":- environment, ok := value.(string)- if !ok {- return "", connect.NewError(connect.CodeInvalidArgument, errors.Errorf("failed to parse value %v to string", value))- }- if environment != "" {- environmentID, err := common.GetEnvironmentID(environment)- if err != nil {- return "", connect.NewError(connect.CodeInvalidArgument, errors.Errorf("invalid environment filter %q", value))- }- issueFind.EnvironmentID = &environmentID- }case "status":issueStatus, err := convertToAPIIssueStatus(v1pb.IssueStatus(v1pb.IssueStatus_value[value.(string)]))if err != nil {@@ -155,20 +126,6 @@ func (s *IssueService) getIssueFind(return "", connect.NewError(connect.CodeInvalidArgument, errors.Errorf("failed to convert to issue type, err: %v", err))}issueFind.Types = &[]storepb.Issue_Type{issueType}- case "task_type":- taskType, ok := value.(string)- if !ok {- return "", connect.NewError(connect.CodeInvalidArgument, errors.Errorf(`"task_type" should be string`))- }- switch taskType {- case "DDL", "DML":- // DDL and DML are both DATABASE_MIGRATE tasks- issueFind.TaskTypes = &[]storepb.Task_Type{- storepb.Task_DATABASE_MIGRATE,- }- default:- return "", connect.NewError(connect.CodeInvalidArgument, errors.Errorf(`unknown value %q`, value))- }case "labels":issueFind.LabelList = append(issueFind.LabelList, value.(string))case "approval_status":diff --git a/backend/generated-go/v1/issue_service.pb.go b/backend/generated-go/v1/issue_service.pb.goindex 272d7202ac..2fa11e1b54 100644--- a/backend/generated-go/v1/issue_service.pb.go+++ b/backend/generated-go/v1/issue_service.pb.go@@ -458,10 +458,6 @@ type ListIssuesRequest struct {// - status: the issue status, support "==" and "in" operator, check the IssueStatus enum for the values.// - create_time: issue create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.// - type: the issue type, support "==" and "in" operator, check the Type enum in the Issue message for the values.- // - task_type: support "==" operator, the value can be "DDL", "DML" or "DATA_EXPORT"- // - instance: the instance full name in the "instances/{id}" format, support "==" operator.- // - database: the database full name in the "instances/{id}/databases/{name}" format, support "==" operator.- // - environment: the database full name in the "environments/{name}" format, support "==" operator.// - labels: the issue labels, support "==" and "in" operator.// - approval_status: issue approval status, support "==" operator.// - current_approver: the issue approver, should in "users/{email} format", support "==" operator.@@ -469,9 +465,8 @@ type ListIssuesRequest struct {// For example:// creator == "users/[email protected]" && status in ["OPEN", "DONE"]// status == "CANCELED" && type == "DATABASE_CHANGE"- // instance == "instances/sample" && labels in ["label1", "label2"]+ // labels in ["label1", "label2"]// create_time >= "2025-01-02T15:04:05Z07:00"- // environment == "environments/test"Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`// Query is the query statement.Query string `protobuf:"bytes,5,opt,name=query,proto3" json:"query,omitempty"`diff --git a/backend/store/issue.go b/backend/store/issue.goindex 92bd927681..c8d7ee08e9 100644--- a/backend/store/issue.go+++ b/backend/store/issue.go@@ -69,14 +69,6 @@ type FindIssueMessage struct {Types *[]storepb.Issue_TypeStatusList []storepb.Issue_Status- TaskTypes *[]storepb.Task_Type- // Any of the task in the issue changes the instance with InstanceResourceID.- InstanceResourceID *string- // Any of the task in the issue changes the database with InstanceID and DatabaseName.- InstanceID *string- DatabaseName *string- // Should match the task environment.- EnvironmentID *string// If specified, then it will only fetch "Limit" most recently updated issuesLimit *intOffset *int@@ -84,8 +76,6 @@ type FindIssueMessage struct {Query *stringLabelList []string-- NoPipeline bool}// GetIssue gets issue by issue UID.@@ -246,12 +236,6 @@ func (s *Store) ListIssues(ctx context.Context, find *FindIssueMessage) ([]*Issuif v := find.ProjectIDs; v != nil {where.And("issue.project = ANY(?)", *v)}- if v := find.InstanceResourceID; v != nil {- where.And("EXISTS (SELECT 1 FROM task WHERE task.plan_id = plan.id AND task.instance = ?)", *v)- }- if find.InstanceID != nil && find.DatabaseName != nil {- where.And("EXISTS (SELECT 1 FROM task WHERE task.plan_id = plan.id AND task.instance = ? AND task.db_name = ?)", *find.InstanceID, *find.DatabaseName)- }if v := find.CreatorID; v != nil {where.And("issue.creator = ?", *v)}@@ -285,22 +269,9 @@ func (s *Store) ListIssues(ctx context.Context, find *FindIssueMessage) ([]*Issu}where.And("issue.status = ANY(?)", statusStrings)}- if v := find.TaskTypes; v != nil {- taskTypeStrings := make([]string, 0, len(*v))- for _, t := range *v {- taskTypeStrings = append(taskTypeStrings, t.String())- }- where.And("EXISTS (SELECT 1 FROM task WHERE task.plan_id = plan.id AND task.type = ANY(?))", taskTypeStrings)- }- if v := find.EnvironmentID; v != nil {- where.And("EXISTS (SELECT 1 FROM task WHERE task.plan_id = plan.id AND task.environment = ?)", *v)- }if len(find.LabelList) != 0 {where.And("payload->'labels' ??& ?::TEXT[]", find.LabelList)}- if find.NoPipeline {- where.And("NOT EXISTS (SELECT 1 FROM task WHERE task.plan_id = plan.id)")- }q := qb.Q().Space(`SELECTdiff --git a/frontend/src/components/IssueV1/components/IssueSearch/IssueSearch.vue b/frontend/src/components/IssueV1/components/IssueSearch/IssueSearch.vueindex e6661d0f30..f7e1c0fada 100644--- a/frontend/src/components/IssueV1/components/IssueSearch/IssueSearch.vue+++ b/frontend/src/components/IssueV1/components/IssueSearch/IssueSearch.vue@@ -84,12 +84,9 @@ const allowedScopes = computed((): SearchScopeId[] => {"creator","current-approver","approval",- "instance",- "database","status","issue-label","project",- "environment",];});diff --git a/frontend/src/components/IssueV1/components/IssueSearch/useIssueSearchScopeOptions.ts b/frontend/src/components/IssueV1/components/IssueSearch/useIssueSearchScopeOptions.tsindex 384616f692..21cefd766e 100644--- a/frontend/src/components/IssueV1/components/IssueSearch/useIssueSearchScopeOptions.ts+++ b/frontend/src/components/IssueV1/components/IssueSearch/useIssueSearchScopeOptions.ts@@ -10,14 +10,8 @@ import type {import { useCommonSearchScopeOptions } from "@/components/AdvancedSearch/useCommonSearchScopeOptions";import SystemBotTag from "@/components/misc/SystemBotTag.vue";import YouTag from "@/components/misc/YouTag.vue";-import { RichDatabaseName } from "@/components/v2";-import {- useCurrentUserV1,- useDatabaseV1Store,- useProjectV1Store,- useUserStore,-} from "@/store";-import { isValidProjectName, SYSTEM_BOT_USER_NAME, UNKNOWN_ID } from "@/types";+import { useCurrentUserV1, useProjectV1Store, useUserStore } from "@/store";+import { isValidProjectName, SYSTEM_BOT_USER_NAME } from "@/types";import {Issue_ApprovalStatus,IssueStatus,@@ -25,12 +19,7 @@ import {import { type Label } from "@/types/proto-es/v1/project_service_pb";import { UserType } from "@/types/proto-es/v1/user_service_pb";import type { SearchParams, SearchScopeId } from "@/utils";-import {- extractEnvironmentResourceName,- extractInstanceResourceName,- extractProjectResourceName,- getDefaultPagination,-} from "@/utils";+import { getDefaultPagination } from "@/utils";export const useIssueSearchScopeOptions = (params: Ref<SearchParams>,@@ -39,7 +28,6 @@ export const useIssueSearchScopeOptions = (const { t } = useI18n();const route = useRoute();const me = useCurrentUserV1();- const databaseV1Store = useDatabaseV1Store();const projectStore = useProjectV1Store();const userStore = useUserStore();@@ -127,56 +115,6 @@ export const useIssueSearchScopeOptions = (const fullScopeOptions = computed((): ScopeOption[] => {const scopes: ScopeOption[] = [...commonScopeOptions.value,- {- id: "database",- title: t("issue.advanced-search.scope.database.title"),- description: t("issue.advanced-search.scope.database.description"),- search: ({- keyword,- nextPageToken,- }: {- keyword: string;- nextPageToken?: string;- }) => {- return databaseV1Store- .fetchDatabases({- pageToken: nextPageToken,- pageSize: getDefaultPagination(),- parent: projectName.value!,- filter: {- query: keyword,- },- })- .then((resp) => ({- nextPageToken: resp.nextPageToken,- options: resp.databases.map((db) => {- return {- value: db.name,- keywords: [- db.databaseName,- extractInstanceResourceName(db.instance),- db.instanceResource.title,- extractEnvironmentResourceName(- db.effectiveEnvironment ?? ""- ),- db.effectiveEnvironmentEntity.title,- extractProjectResourceName(db.project),- db.projectEntity.title,- ],- custom: true,- render: () => {- return h("div", { class: "text-sm" }, [- h(RichDatabaseName, {- database: db,- showProject: true,- }),- ]);- },- };- }),- }));- },- },{id: "status",allowMultiple: true,@@ -272,43 +210,12 @@ export const useIssueSearchScopeOptions = (// filteredScopeOptions will filter search options by chosen scope.// For example, if users select a specific project, we should only allow them select instances related with this project.const filteredScopeOptions = computed((): ScopeOption[] => {- const existedScopes = new Map<SearchScopeId, string>(- params.value.scopes.map((scope) => [scope.id, scope.value])- );-const clone = fullScopeOptions.value.map((scope) => ({...scope,options: scope.options?.map((option) => ({...option,})),}));- const index = clone.findIndex((scope) => scope.id === "database");- if (index >= 0) {- clone[index].options = clone[index].options?.filter((option) => {- if (!existedScopes.has("project") && !existedScopes.has("instance")) {- return true;- }-- const db = databaseV1Store.getDatabaseByName(option.value);- const project = db.project;- const instance = db.instance;-- const existedProject = `projects/${- existedScopes.get("project") ?? UNKNOWN_ID- }`;- if (project === existedProject) {- return true;- }- const existedInstance = `instances/${- existedScopes.get("instance") ?? UNKNOWN_ID- }`;- if (instance === existedInstance) {- return true;- }-- return false;- });- }return clone;});diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 5eb044faff..66dcea954e 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -992,10 +992,6 @@"title": "Environment","description": "Filter by environment"},- "database": {- "title": "Database",- "description": "Filter by database"- },"creator": {"title": "Creator","description": "Search by the creator"diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 9b72e3e0e9..59d716721a 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -992,10 +992,6 @@"title": "Ambiente","description": "Filtrar por entorno"},- "database": {- "title": "Base de datos",- "description": "Filtrar por base de datos"- },"creator": {"title": "Creador","description": "Búsqueda por creador"diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 7c406cfb4c..28b90db7ca 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -992,10 +992,6 @@"title": "環境","description": "環境に基づいてフィルタリングする"},- "database": {- "title": "データベース",- "description": "データベースに基づいてフィルタリングする"- },"creator": {"title": "作成者","description": "作成者で検索"diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex 317fbe2325..a9eea17438 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -992,10 +992,6 @@"title": "Môi trường","description": "Lọc theo môi trường"},- "database": {- "title": "Cơ sở dữ liệu",- "description": "Lọc theo cơ sở dữ liệu"- },"creator": {"title": "Người tạo","description": "Tìm kiếm theo người sáng tạo"diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 6cfd130437..7012ea156b 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -992,10 +992,6 @@"title": "环境","description": "根据环境过滤"},- "database": {- "title": "数据库",- "description": "根据数据库过滤"- },"creator": {"title": "创建人","description": "根据创建人搜索"diff --git a/frontend/src/store/modules/v1/issue.ts b/frontend/src/store/modules/v1/issue.tsindex b888d33d5c..61345e8f8d 100644--- a/frontend/src/store/modules/v1/issue.ts+++ b/frontend/src/store/modules/v1/issue.ts@@ -68,15 +68,6 @@ export const buildIssueFilter = (find: IssueFilter): string => {if (find.type) {filter.push(`type == "${Issue_Type[find.type]}"`);}- if (find.instance) {- filter.push(`instance == "${find.instance}"`);- }- if (find.database) {- filter.push(`database == "${find.database}"`);- }- if (find.environment) {- filter.push(`environment == "${find.environment}"`);- }if (find.labels && find.labels.length > 0) {filter.push(`labels in [${find.labels.map((l) => `"${l}"`).join(",")}]`);}diff --git a/frontend/src/types/proto-es/v1/issue_service_pb.d.ts b/frontend/src/types/proto-es/v1/issue_service_pb.d.tsindex b39eced1e6..5511923b26 100644--- a/frontend/src/types/proto-es/v1/issue_service_pb.d.ts+++ b/frontend/src/types/proto-es/v1/issue_service_pb.d.ts@@ -107,10 +107,6 @@ export declare type ListIssuesRequest = Message<"bytebase.v1.ListIssuesRequest">* - status: the issue status, support "==" and "in" operator, check the IssueStatus enum for the values.* - create_time: issue create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.* - type: the issue type, support "==" and "in" operator, check the Type enum in the Issue message for the values.- * - task_type: support "==" operator, the value can be "DDL", "DML" or "DATA_EXPORT"- * - instance: the instance full name in the "instances/{id}" format, support "==" operator.- * - database: the database full name in the "instances/{id}/databases/{name}" format, support "==" operator.- * - environment: the database full name in the "environments/{name}" format, support "==" operator.* - labels: the issue labels, support "==" and "in" operator.* - approval_status: issue approval status, support "==" operator.* - current_approver: the issue approver, should in "users/{email} format", support "==" operator.@@ -118,9 +114,8 @@ export declare type ListIssuesRequest = Message<"bytebase.v1.ListIssuesRequest">* For example:* creator == "users/[email protected]" && status in ["OPEN", "DONE"]* status == "CANCELED" && type == "DATABASE_CHANGE"- * instance == "instances/sample" && labels in ["label1", "label2"]+ * labels in ["label1", "label2"]* create_time >= "2025-01-02T15:04:05Z07:00"- * environment == "environments/test"** @generated from field: string filter = 4;*/diff --git a/frontend/src/types/v1/issue/issue.ts b/frontend/src/types/v1/issue/issue.tsindex 7e62102ca9..960a9de26d 100644--- a/frontend/src/types/v1/issue/issue.ts+++ b/frontend/src/types/v1/issue/issue.ts@@ -56,9 +56,6 @@ export const unknownIssue = (): ComposedIssue => {export interface IssueFilter {project: string;- instance?: string;- database?: string;- environment?: string;query: string;creator?: string;currentApprover?: string;diff --git a/frontend/src/utils/v1/advanced-search/issue/utils.ts b/frontend/src/utils/v1/advanced-search/issue/utils.tsindex f5d63c88e4..a8f530a48c 100644--- a/frontend/src/utils/v1/advanced-search/issue/utils.ts+++ b/frontend/src/utils/v1/advanced-search/issue/utils.ts@@ -1,12 +1,5 @@-import {- environmentNamePrefix,- instanceNamePrefix,- projectNamePrefix,- useDatabaseV1Store,- userNamePrefix,-} from "@/store";+import { projectNamePrefix, userNamePrefix } from "@/store";import type { IssueFilter } from "@/types";-import { unknownDatabase } from "@/types";import {Issue_ApprovalStatus,IssueStatus,@@ -24,15 +17,6 @@ export const buildIssueFilterBySearchParams = () => {const { query } = params;const projectScope = getValueFromSearchParams(params, "project");- const databaseScope = getValueFromSearchParams(params, "database");-- let database = "";- if (databaseScope) {- const db = useDatabaseV1Store().getDatabaseByName(databaseScope);- if (db.name !== unknownDatabase().name) {- database = db.name;- }- }const createdTsRange = getTsRangeFromSearchParams(params, "created");const labels = getValuesFromSearchParams(params, "issue-label");@@ -41,8 +25,6 @@ export const buildIssueFilterBySearchParams = (const filter: IssueFilter = {...defaultFilter,query,- instance: getValueFromSearchParams(params, "instance", instanceNamePrefix),- database,project: `${projectNamePrefix}${projectScope || "-"}`,createdTsAfter: createdTsRange?.[0],createdTsBefore: createdTsRange?.[1],@@ -61,11 +43,6 @@ export const buildIssueFilterBySearchParams = ((status) => IssueStatus[status as keyof typeof IssueStatus]),labels,- environment: getValueFromSearchParams(- params,- "environment",- environmentNamePrefix- ),};return filter;};diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 2ea468d22d..c50dc26cc7 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -3984,10 +3984,6 @@ paths:- status: the issue status, support "==" and "in" operator, check the IssueStatus enum for the values.- create_time: issue create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.- type: the issue type, support "==" and "in" operator, check the Type enum in the Issue message for the values.- - task_type: support "==" operator, the value can be "DDL", "DML" or "DATA_EXPORT"- - instance: the instance full name in the "instances/{id}" format, support "==" operator.- - database: the database full name in the "instances/{id}/databases/{name}" format, support "==" operator.- - environment: the database full name in the "environments/{name}" format, support "==" operator.- labels: the issue labels, support "==" and "in" operator.- approval_status: issue approval status, support "==" operator.- current_approver: the issue approver, should in "users/{email} format", support "==" operator.@@ -3995,9 +3991,8 @@ paths:For example:creator == "users/[email protected]" && status in ["OPEN", "DONE"]status == "CANCELED" && type == "DATABASE_CHANGE"- instance == "instances/sample" && labels in ["label1", "label2"]+ labels in ["label1", "label2"]create_time >= "2025-01-02T15:04:05Z07:00"- environment == "environments/test"schema:type: string- name: query@@ -12868,8 +12863,6 @@ components:format: enumdescription: Role defines a set of permissions that can be assigned to users.Rollout:- required:- - plantype: objectproperties:name:@@ -12877,11 +12870,6 @@ components:description: |-The resource name of the rollout.Format: projects/{project}/plans/{plan}/rollout- plan:- type: string- description: |-- The plan that this rollout is based on.- Format: projects/{project}/plans/{plan}title:readOnly: truetype: string@@ -12894,10 +12882,6 @@ components:items:$ref: '#/components/schemas/Stage'description: Stages and thus tasks of the rollout.- creator:- readOnly: true- type: string- description: 'Format: users/[email protected]'createTime:readOnly: truetype: string@@ -12906,12 +12890,6 @@ components:readOnly: truetype: stringformat: date-time- issue:- readOnly: true- type: string- description: |-- The issue associated with the rollout. Could be empty.- Format: projects/{project}/issues/{issue}RolloutPolicy:type: objectproperties:diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 47a25df103..3a7d4a1a3f 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -1222,9 +1222,9 @@ When paginating, all other parameters provided to `ListIssueComments` must matchWhen paginating, all other parameters provided to `ListIssues` must match the call that provided the page token. || filter | [string](#string) | | Filter is used to filter issues returned in the list. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec-Supported filters: - creator: issue creator full name in "users/{email or id}" format, support "==" operator. - status: the issue status, support "==" and "in" operator, check the IssueStatus enum for the values. - create_time: issue create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator. - type: the issue type, support "==" and "in" operator, check the Type enum in the Issue message for the values. - task_type: support "==" operator, the value can be "DDL", "DML" or "DATA_EXPORT" - instance: the instance full name in the "instances/{id}" format, support "==" operator. - database: the database full name in the "instances/{id}/databases/{name}" format, support "==" operator. - environment: the database full name in the "environments/{name}" format, support "==" operator. - labels: the issue labels, support "==" and "in" operator. - approval_status: issue approval status, support "==" operator. - current_approver: the issue approver, should in "users/{email} format", support "==" operator.+Supported filters: - creator: issue creator full name in "users/{email or id}" format, support "==" operator. - status: the issue status, support "==" and "in" operator, check the IssueStatus enum for the values. - create_time: issue create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator. - type: the issue type, support "==" and "in" operator, check the Type enum in the Issue message for the values. - labels: the issue labels, support "==" and "in" operator. - approval_status: issue approval status, support "==" operator. - current_approver: the issue approver, should in "users/{email} format", support "==" operator.-For example: creator == "users/[email protected]" && status in ["OPEN", "DONE"] status == "CANCELED" && type == "DATABASE_CHANGE" instance == "instances/sample" && labels in ["label1", "label2"] create_time >= "2025-01-02T15:04:05Z07:00" environment == "environments/test" |+For example: creator == "users/[email protected]" && status in ["OPEN", "DONE"] status == "CANCELED" && type == "DATABASE_CHANGE" labels in ["label1", "label2"] create_time >= "2025-01-02T15:04:05Z07:00" || query | [string](#string) | | Query is the query statement. |@@ -9584,13 +9584,10 @@ For example: update_time >= "2025-01-02T15:04:05Z07:00" task_type in| Field | Type | Label | Description || ----- | ---- | ----- | ----------- || name | [string](#string) | | The resource name of the rollout. Format: projects/{project}/plans/{plan}/rollout |-| plan | [string](#string) | | The plan that this rollout is based on. Format: projects/{project}/plans/{plan} || title | [string](#string) | | The title of the rollout, inherited from the associated plan. This field is output only and cannot be directly set. || stages | [Stage](#bytebase-v1-Stage) | repeated | Stages and thus tasks of the rollout. |-| creator | [string](#string) | | Format: users/[email protected] || create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | || update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| issue | [string](#string) | | The issue associated with the rollout. Could be empty. Format: projects/{project}/issues/{issue} |@@ -10473,7 +10470,7 @@ PlanFeature represents the available features in Bytebase| FEATURE_DATA_CLASSIFICATION | 50 | || FEATURE_SCIM | 51 | || FEATURE_DIRECTORY_SYNC | 52 | |-| FEATURE_SIGN_IN_FREQUENCY_CONTROL | 53 | |+| FEATURE_TOKEN_DURATION_CONTROL | 53 | || FEATURE_EXTERNAL_SECRET_MANAGER | 54 | || FEATURE_USER_EMAIL_DOMAIN_RESTRICTION | 55 | || FEATURE_PROJECT_MANAGEMENT | 56 | Administration & Support |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 628d4c7882..1cdc8b5041 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -4109,10 +4109,6 @@ Supported filters:- status: the issue status, support "==" and "in" operator, check the IssueStatus enum for the values.- create_time: issue create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.- type: the issue type, support "==" and "in" operator, check the Type enum in the Issue message for the values.-- task_type: support "==" operator, the value can be "DDL", "DML" or "DATA_EXPORT"-- instance: the instance full name in the "instances/{id}" format, support "==" operator.-- database: the database full name in the "instances/{id}/databases/{name}" format, support "==" operator.-- environment: the database full name in the "environments/{name}" format, support "==" operator.- labels: the issue labels, support "==" and "in" operator.- approval_status: issue approval status, support "==" operator.- current_approver: the issue approver, should in "users/{email} format", support "==" operator.@@ -4120,9 +4116,8 @@ Supported filters:For example:creator == "users/[email protected]" && status in ["OPEN", "DONE"]status == "CANCELED" && type == "DATABASE_CHANGE"-instance == "instances/sample" && labels in ["label1", "label2"]-create_time >= "2025-01-02T15:04:05Z07:00"-environment == "environments/test" </p></td>+labels in ["label1", "label2"]+create_time >= "2025-01-02T15:04:05Z07:00" </p></td></tr><tr>@@ -26885,14 +26880,6 @@ Use "projects/{project}/plans/{plan}/rollout/stages/-/tasks/-" to list aFormat: projects/{project}/plans/{plan}/rollout </p></td></tr>- <tr>- <td>plan</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The plan that this rollout is based on.-Format: projects/{project}/plans/{plan} </p></td>- </tr>-<tr><td>title</td><td><a href="#string">string</a></td>@@ -26908,13 +26895,6 @@ This field is output only and cannot be directly set. </p></td><td><p>Stages and thus tasks of the rollout. </p></td></tr>- <tr>- <td>creator</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: users/[email protected] </p></td>- </tr>-<tr><td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>@@ -26929,14 +26909,6 @@ This field is output only and cannot be directly set. </p></td><td><p> </p></td></tr>- <tr>- <td>issue</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The issue associated with the rollout. Could be empty.-Format: projects/{project}/issues/{issue} </p></td>- </tr>-</tbody></table>@@ -29543,7 +29515,7 @@ In this situation, `update_mask` is ignored. </p></td></tr><tr>- <td>FEATURE_SIGN_IN_FREQUENCY_CONTROL</td>+ <td>FEATURE_TOKEN_DURATION_CONTROL</td><td>53</td><td><p></p></td></tr>diff --git a/proto/v1/v1/issue_service.proto b/proto/v1/v1/issue_service.protoindex e60844d584..a78da7bf3c 100644--- a/proto/v1/v1/issue_service.proto+++ b/proto/v1/v1/issue_service.proto@@ -208,10 +208,6 @@ message ListIssuesRequest {// - status: the issue status, support "==" and "in" operator, check the IssueStatus enum for the values.// - create_time: issue create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.// - type: the issue type, support "==" and "in" operator, check the Type enum in the Issue message for the values.- // - task_type: support "==" operator, the value can be "DDL", "DML" or "DATA_EXPORT"- // - instance: the instance full name in the "instances/{id}" format, support "==" operator.- // - database: the database full name in the "instances/{id}/databases/{name}" format, support "==" operator.- // - environment: the database full name in the "environments/{name}" format, support "==" operator.// - labels: the issue labels, support "==" and "in" operator.// - approval_status: issue approval status, support "==" operator.// - current_approver: the issue approver, should in "users/{email} format", support "==" operator.@@ -219,9 +215,8 @@ message ListIssuesRequest {// For example:// creator == "users/[email protected]" && status in ["OPEN", "DONE"]// status == "CANCELED" && type == "DATABASE_CHANGE"- // instance == "instances/sample" && labels in ["label1", "label2"]+ // labels in ["label1", "label2"]// create_time >= "2025-01-02T15:04:05Z07:00"- // environment == "environments/test"string filter = 4;// Query is the query statement.