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: feature guard and refactor (#7833)
ecmadao1ff7451b2e9e
diff --git a/backend/api/v1/issue_service.go b/backend/api/v1/issue_service.goindex e1fa54bc25..44322814d9 100644--- a/backend/api/v1/issue_service.go+++ b/backend/api/v1/issue_service.go@@ -20,6 +20,7 @@ import ("github.com/bytebase/bytebase/backend/common/log""github.com/bytebase/bytebase/backend/component/activity""github.com/bytebase/bytebase/backend/component/state"+ enterpriseAPI "github.com/bytebase/bytebase/backend/enterprise/api"api "github.com/bytebase/bytebase/backend/legacyapi""github.com/bytebase/bytebase/backend/runner/relay""github.com/bytebase/bytebase/backend/runner/taskrun"@@ -37,16 +38,25 @@ type IssueService struct {taskScheduler *taskrun.SchedulerrelayRunner *relay.RunnerstateCfg *state.State+ licenseService enterpriseAPI.LicenseService}// NewIssueService creates a new IssueService.-func NewIssueService(store *store.Store, activityManager *activity.Manager, taskScheduler *taskrun.Scheduler, relayRunner *relay.Runner, stateCfg *state.State) *IssueService {+func NewIssueService(+ store *store.Store,+ activityManager *activity.Manager,+ taskScheduler *taskrun.Scheduler,+ relayRunner *relay.Runner,+ stateCfg *state.State,+ licenseService enterpriseAPI.LicenseService,+) *IssueService {return &IssueService{store: store,activityManager: activityManager,taskScheduler: taskScheduler,relayRunner: relayRunner,stateCfg: stateCfg,+ licenseService: licenseService,}}@@ -279,30 +289,45 @@ func (s *IssueService) SearchIssues(ctx context.Context, request *v1pb.SearchIssfor _, spec := range filters {switch spec.key {case "principal":+ if spec.operator != comparatorTypeEqual {+ return nil, status.Errorf(codes.InvalidArgument, `only support "=" operation for "level" filter`)+ }user, err := s.getUserByIdentifier(ctx, spec.value)if err != nil {return nil, err}issueFind.PrincipalID = &user.IDcase "creator":+ if spec.operator != comparatorTypeEqual {+ return nil, status.Errorf(codes.InvalidArgument, `only support "=" operation for "level" filter`)+ }user, err := s.getUserByIdentifier(ctx, spec.value)if err != nil {return nil, err}issueFind.AssigneeID = &user.IDcase "assignee":+ if spec.operator != comparatorTypeEqual {+ return nil, status.Errorf(codes.InvalidArgument, `only support "=" operation for "level" filter`)+ }user, err := s.getUserByIdentifier(ctx, spec.value)if err != nil {return nil, err}issueFind.AssigneeID = &user.IDcase "subscriber":+ if spec.operator != comparatorTypeEqual {+ return nil, status.Errorf(codes.InvalidArgument, `only support "=" operation for "level" filter`)+ }user, err := s.getUserByIdentifier(ctx, spec.value)if err != nil {return nil, err}issueFind.SubscriberID = &user.IDcase "status":+ if spec.operator != comparatorTypeEqual {+ return nil, status.Errorf(codes.InvalidArgument, `only support "=" operation for "level" filter`)+ }for _, raw := range strings.Split(spec.value, " | ") {newStatus, err := convertToAPIIssueStatus(v1pb.IssueStatus(v1pb.IssueStatus_value[raw]))if err != nil {@@ -310,21 +335,31 @@ func (s *IssueService) SearchIssues(ctx context.Context, request *v1pb.SearchIss}issueFind.StatusList = append(issueFind.StatusList, newStatus)}- case "create_time_before":+ case "create_time":+ if spec.operator != comparatorTypeGreaterEqual && spec.operator != comparatorTypeLessEqual {+ return nil, status.Errorf(codes.InvalidArgument, `only support "<=" or ">=" operation for "create_time" filter`)+ }t, err := time.Parse(time.RFC3339, spec.value)if err != nil {return nil, status.Errorf(codes.InvalidArgument, "failed to parse create_time_before %s, err: %v", spec.value, err)}ts := t.Unix()- issueFind.CreatedTsBefore = &ts- case "create_time_after":- t, err := time.Parse(time.RFC3339, spec.value)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, "failed to parse create_time_after %s, err: %v", spec.value, err)+ if spec.operator == comparatorTypeGreaterEqual {+ issueFind.CreatedTsAfter = &ts+ } else {+ issueFind.CreatedTsBefore = &ts+ }+ }+ }++ if err := s.licenseService.IsFeatureEnabled(api.FeatureIssueAdvancedSearch); err != nil {+ limitedSearchTs := time.Now().AddDate(0, 0, -30).Unix()+ if v := issueFind.CreatedTsBefore; v != nil {+ if limitedSearchTs >= *v {+ return nil, status.Errorf(codes.PermissionDenied, err.Error())}- ts := t.Unix()- issueFind.CreatedTsAfter = &ts}+ issueFind.CreatedTsAfter = &limitedSearchTs}issues, err := s.store.ListIssueV2(ctx, issueFind)diff --git a/backend/enterprise/api/plan.yaml b/backend/enterprise/api/plan.yamlindex 3fe07ffc4e..74b9b4eff5 100644--- a/backend/enterprise/api/plan.yaml+++ b/backend/enterprise/api/plan.yaml@@ -16,6 +16,7 @@ categoryList:- custom-approval- database-group- batch-change+ - issue-advanced-search- type: sql-editorfeatureList:- auto-complete@@ -94,6 +95,9 @@ planList:- type: rollout-policycontent: rollout-policy-basictooltip: rollout-policy-basic-tooltip+ - type: issue-advanced-search+ content: issue-advanced-search-basic+ tooltip: issue-advanced-search-basic-tooltip# SQL Editor- type: auto-complete- type: schema-editor@@ -169,6 +173,8 @@ planList:- type: rollout-policycontent: rollout-policy-advancedtooltip: rollout-policy-advanced-tooltip+ - type: issue-advanced-search+ content: issue-advanced-search-advanced# SQL Editor- type: auto-complete- type: schema-editor@@ -246,6 +252,8 @@ planList:content: rollout-policy-advancedtooltip: rollout-policy-advanced-tooltip- type: custom-approval+ - type: issue-advanced-search+ content: issue-advanced-search-advanced# SQL Editor- type: auto-complete- type: schema-editordiff --git a/backend/legacyapi/plan.go b/backend/legacyapi/plan.goindex e068fde3b9..8554692630 100644--- a/backend/legacyapi/plan.go+++ b/backend/legacyapi/plan.go@@ -73,6 +73,9 @@ const (// FeatureCustomRole enables customizing roles.FeatureCustomRole FeatureType = "bb.feature.custom-role"+ // FeatureIssueAdvancedSearch supports search issue with advanced filter.+ FeatureIssueAdvancedSearch FeatureType = "bb.feature.issue-advanced-search"+// Branding.// FeatureBranding enables customized branding.@@ -197,6 +200,8 @@ func (e FeatureType) Name() string {return "Audit log"case FeatureCustomRole:return "Custom role"+ case FeatureIssueAdvancedSearch:+ return "Advanced search"// Brandingcase FeatureBranding:return "Branding"@@ -285,14 +290,15 @@ func (e FeatureType) minimumSupportedPlan() PlanType {// plan in [FREE, TEAM, Enterprise].var FeatureMatrix = map[FeatureType][3]bool{// Admin & Security- FeatureSSO: {false, false, true},- Feature2FA: {false, false, true},- FeatureDisallowSignup: {false, false, true},- FeatureSecureToken: {false, false, true},- FeatureRBAC: {true, true, true},- FeatureWatermark: {false, false, true},- FeatureAuditLog: {false, false, true},- FeatureCustomRole: {false, false, true},+ FeatureSSO: {false, false, true},+ Feature2FA: {false, false, true},+ FeatureDisallowSignup: {false, false, true},+ FeatureSecureToken: {false, false, true},+ FeatureRBAC: {true, true, true},+ FeatureWatermark: {false, false, true},+ FeatureAuditLog: {false, false, true},+ FeatureCustomRole: {false, false, true},+ FeatureIssueAdvancedSearch: {false, true, true},// BrandingFeatureBranding: {false, false, true},// Change Workflowdiff --git a/backend/server/server.go b/backend/server/server.goindex 6c9d1f85fb..80c4c9397b 100644--- a/backend/server/server.go+++ b/backend/server/server.go@@ -661,7 +661,7 @@ func NewServer(ctx context.Context, profile config.Profile) (*Server, error) {v1pb.RegisterSQLServiceServer(s.grpcServer, v1.NewSQLService(s.store, s.SchemaSyncer, s.dbFactory, s.ActivityManager, s.licenseService))v1pb.RegisterExternalVersionControlServiceServer(s.grpcServer, v1.NewExternalVersionControlService(s.store))v1pb.RegisterRiskServiceServer(s.grpcServer, v1.NewRiskService(s.store, s.licenseService))- s.issueService = v1.NewIssueService(s.store, s.ActivityManager, s.TaskScheduler, s.RelayRunner, s.stateCfg)+ s.issueService = v1.NewIssueService(s.store, s.ActivityManager, s.TaskScheduler, s.RelayRunner, s.stateCfg, s.licenseService)v1pb.RegisterIssueServiceServer(s.grpcServer, s.issueService)s.rolloutService = v1.NewRolloutService(s.store, s.licenseService, s.dbFactory, s.PlanCheckScheduler, s.stateCfg, s.ActivityManager)v1pb.RegisterRolloutServiceServer(s.grpcServer, s.rolloutService)diff --git a/frontend/src/components/AdvancedSearch.vue b/frontend/src/components/AdvancedSearch.vueindex ffd6d2cad3..3c8905b7d7 100644--- a/frontend/src/components/AdvancedSearch.vue+++ b/frontend/src/components/AdvancedSearch.vue@@ -4,10 +4,10 @@ref="inputRef":value="state.searchText":clearable="!!state.searchText"- :placeholder="$t('issue.advanced-search')"+ :placeholder="$t('issue.advanced-search.self')"style="width: 100%"@update:value="onUpdate($event)"- @focus="state.showSearchItems = true"+ @focus="state.showSearchScopes = true"@blur="onClear"@keyup="onKeydown">@@ -16,27 +16,27 @@</template></NInput><div- v-if="state.showSearchItems"+ v-if="state.showSearchScopes"class="absolute z-50 top-full w-full divide-y divide-block-border bg-white shadow-md"><div- v-for="item in searchItems"- :key="item.keyword"+ v-for="item in searchScopes"+ :key="item.id"class="flex gap-x-3 p-3 items-center cursor-pointer hover:bg-gray-100"@mousedown.prevent.stop="() => {- state.showSearchItems = false;- state.searchKeyword = item.keyword;+ state.showSearchScopes = false;+ state.currentScope = item.id;}"><heroicons-outline:filter class="h-4 w-4 text-control" />- <span class="text-accent">{{ item.keyword }}</span>+ <span class="text-accent">{{ item.title }}</span><span class="text-control-light">{{ item.description }}</span></div></div><div- v-if="state.searchKeyword && searchOptions.length > 0"+ v-if="state.currentScope && searchOptions.length > 0"class="absolute z-50 top-full w-full divide-y divide-block-border bg-white shadow-md"><div class="p-3 text-lg text-control-light">@@ -48,7 +48,7 @@:key="option.id"class="flex gap-x-3 p-3 items-baseline cursor-pointer hover:bg-gray-100"@mousedown.prevent.stop="- onOptionSelect(state.searchKeyword, option.id)+ onOptionSelect(state.currentScope, option.id)"><component :is="option.label" class="text-control text-sm" />@@ -63,17 +63,18 @@import { debounce } from "lodash-es";import { NInput } from "naive-ui";import { reactive, computed, h, VNode, onMounted, ref } from "vue";+import { useI18n } from "vue-i18n";import GitIcon from "@/components/GitIcon.vue";import { useProjectV1ListByCurrentUser } from "@/store";import { Workflow } from "@/types/proto/v1/project_service";import { projectV1Name } from "@/utils";-type SearchKeyword = "project";+type SearchScopeId = "project";export interface SearchParams {query: string;scopes: {- id: SearchKeyword;+ id: SearchScopeId;value: string;}[];}@@ -95,10 +96,12 @@ const emit = defineEmits<{(event: "update", params: SearchParams): void;}>();+const { t } = useI18n();+interface LocalState {searchText: string;- showSearchItems: boolean;- searchKeyword?: SearchKeyword;+ showSearchScopes: boolean;+ currentScope?: SearchScopeId;}interface SearchOption {@@ -106,8 +109,9 @@ interface SearchOption {label: VNode;}-interface SearchItem {- keyword: SearchKeyword;+interface SearchScope {+ id: SearchScopeId;+ title: string;description: string;options: SearchOption[];}@@ -125,17 +129,18 @@ const buildSearchTextByParams = (params: SearchParams | undefined): string => {const state = reactive<LocalState>({searchText: buildSearchTextByParams(props.params),- showSearchItems: false,+ showSearchScopes: false,});const inputRef = ref<InstanceType<typeof NInput>>();const { projectList } = useProjectV1ListByCurrentUser();-const searchItems = computed((): SearchItem[] => {+const searchScopes = computed((): SearchScope[] => {return [{- keyword: "project",- description: "Include only issues from this project",+ id: "project",+ title: t("issue.advanced-search.scope.project.title"),+ description: t("issue.advanced-search.scope.project.description"),options: projectList.value.map((proj) => {const children: VNode[] = [h("span", { innerHTML: projectV1Name(proj) }),@@ -153,22 +158,20 @@ const searchItems = computed((): SearchItem[] => {});const searchOptions = computed((): SearchOption[] => {- const item = searchItems.value.find(- (item) => item.keyword === state.searchKeyword+ const item = searchScopes.value.find(+ (item) => item.id === state.currentScope);return item?.options ?? [];});const searchKeyword = computed(() => {- if (!state.searchKeyword) {- return "";- }- return `${state.searchKeyword[0].toUpperCase()}${state.searchKeyword.slice(- 1- )}`;+ const scope = searchScopes.value.find(+ (item) => item.id === state.currentScope+ );+ return scope?.title ?? "";});-const onOptionSelect = (keyword: SearchKeyword, id: string) => {+const onOptionSelect = (keyword: SearchScopeId, id: string) => {const search = `${keyword}:${id} ${query.value}`;state.searchText = search;debouncedUpdate();@@ -176,8 +179,8 @@ const onOptionSelect = (keyword: SearchKeyword, id: string) => {};const onClear = () => {- state.showSearchItems = false;- state.searchKeyword = undefined;+ state.showSearchScopes = false;+ state.currentScope = undefined;};const debouncedUpdate = debounce(() => {@@ -196,7 +199,7 @@ const query = computed(() => {const section = sections[i];const keyword = section.split(":")[0];const exist =- searchItems.value.findIndex((item) => item.keyword === keyword) >= 0;+ searchScopes.value.findIndex((item) => item.id === keyword) >= 0;if (!exist) {break;}@@ -212,7 +215,7 @@ const getSearchParamsByText = (text: string): SearchParams => {query: plainQuery,scopes: scopeText.split(" ").map((scope) => {return {- id: scope.split(":")[0] as SearchKeyword,+ id: scope.split(":")[0] as SearchScopeId,value: scope.split(":")[1],};}),@@ -230,7 +233,7 @@ const onKeydown = (e: KeyboardEvent) => {return;}if (!state.searchText) {- state.showSearchItems = true;+ state.showSearchScopes = true;return;}@@ -259,14 +262,14 @@ const onKeydown = (e: KeyboardEvent) => {return;}- const keyword = sections[i].split(":")[0] as SearchKeyword;+ const currentScope = sections[i].split(":")[0] as SearchScopeId;const existed =- searchItems.value.findIndex((item) => item.keyword === keyword) >= 0;+ searchScopes.value.findIndex((item) => item.id === currentScope) >= 0;if (!existed) {onClear();return;}- state.searchKeyword = keyword;+ state.currentScope = currentScope;};</script>diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex e9704e318b..029b900e41 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -757,7 +757,15 @@},"view-commit": "View commit","search-issue-name": "Search issue name",- "advanced-search": "Advanced search",+ "advanced-search": {+ "self": "Advanced search",+ "scope": {+ "project": {+ "title": "Project",+ "description": "Include only issues from this project"+ }+ }+ },"filter-issue-by-name": "Filter issue by name","table": {"open": "Open",@@ -2216,6 +2224,10 @@"bb-feature-secure-token": {"title": "Sign-in frequency","desc": "Sign-in frequency is the period before a user must sign in again."+ },+ "bb-feature-issue-advanced-search": {+ "title": "Advanced issue search",+ "desc": "Access unlimited issue history with advanced issue search."}}},diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex c4f16e01a7..c357a66a67 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -756,7 +756,15 @@},"view-commit": "Ver commit","search-issue-name": "Buscar nombre de la incidencia",- "advanced-search": "Búsqueda Avanzada",+ "advanced-search": {+ "self": "Búsqueda Avanzada",+ "scope": {+ "project": {+ "title": "Proyecto",+ "description": "Incluir solo ediciones de este proyecto"+ }+ }+ },"filter-issue-by-name": "Filtrar problema por nombre","table": {"open": "Abierto",@@ -2212,6 +2220,10 @@"bb-feature-secure-token": {"title": "Frecuencia de inicio de sesión","desc": "La frecuencia de inicio de sesión es el período antes de que un usuario deba iniciar sesión nuevamente."+ },+ "bb-feature-issue-advanced-search": {+ "title": "Búsqueda avanzada de problemas",+ "desc": "Acceda a un historial de problemas ilimitado con búsqueda avanzada de problemas."}}},diff --git a/frontend/src/locales/subscription/en-US.json b/frontend/src/locales/subscription/en-US.jsonindex c2b32bfbc6..f611a7f7a5 100644--- a/frontend/src/locales/subscription/en-US.json+++ b/frontend/src/locales/subscription/en-US.json@@ -92,7 +92,11 @@"sync-schema-advanced": "Advanced","sync-schema-advanced-tooltip": "Sync from arbitrary schema version","terraform-provider": "Terraform Integration",- "custom-approval": "Custom approval"+ "custom-approval": "Custom approval",+ "issue-advanced-search": "Issue advanced search",+ "issue-advanced-search-basic": "30-day limit",+ "issue-advanced-search-basic-tooltip": "Issues older than 30 days are hidden",+ "issue-advanced-search-advanced": "Unlimited"}},"sql-editor": {diff --git a/frontend/src/locales/subscription/es-ES.json b/frontend/src/locales/subscription/es-ES.jsonindex 4e3edc5841..78f500b622 100644--- a/frontend/src/locales/subscription/es-ES.json+++ b/frontend/src/locales/subscription/es-ES.json@@ -92,7 +92,11 @@"sync-schema-advanced": "Avanzado","sync-schema-advanced-tooltip": "Sincronizar desde una versión de esquema arbitraria","terraform-provider": "Integración de Terraform",- "custom-approval": "Aprobación personalizada"+ "custom-approval": "Aprobación personalizada",+ "issue-advanced-search": "Emitir búsqueda avanzada",+ "issue-advanced-search-basic": "límite de 30 días",+ "issue-advanced-search-basic-tooltip": "Los problemas de más de 30 días están ocultos",+ "issue-advanced-search-advanced": "Ilimitado"}},"sql-editor": {diff --git a/frontend/src/locales/subscription/zh-CN.json b/frontend/src/locales/subscription/zh-CN.jsonindex c6d8bb4955..6d059fb923 100644--- a/frontend/src/locales/subscription/zh-CN.json+++ b/frontend/src/locales/subscription/zh-CN.json@@ -92,7 +92,11 @@"sync-schema-advanced": "高级","sync-schema-advanced-tooltip": "同步任意的 schema 版本","terraform-provider": "Terraform 集成",- "custom-approval": "自定义审批"+ "custom-approval": "自定义审批",+ "issue-advanced-search": "工单搜索",+ "issue-advanced-search-basic": "30天内的历史",+ "issue-advanced-search-basic-tooltip": "30 天之前的工单会被隐藏",+ "issue-advanced-search-advanced": "无限制"}},"sql-editor": {diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 8bc7abefdb..fef732a9ae 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -754,7 +754,15 @@},"view-commit": "查看提交","search-issue-name": "搜索工单名称",- "advanced-search": "高级搜素",+ "advanced-search": {+ "self": "高级搜素",+ "scope": {+ "project": {+ "title": "项目",+ "description": "仅搜索某个项目下的工单"+ }+ }+ },"filter-issue-by-name": "根据名称过滤","table": {"open": "开启中",@@ -2211,6 +2219,10 @@"bb-feature-secure-token": {"title": "登录频率","desc": "登录频率指定用户必须再次登录的间隔。"+ },+ "bb-feature-issue-advanced-search": {+ "title": "工单高级搜索",+ "desc": "通过高级搜索来访问无限制的历史工单。"}},"feature-require-subscription": "{feature} 需要 {requiredPlan}。"diff --git a/frontend/src/types/plan.ts b/frontend/src/types/plan.tsindex f474c91306..5aa7302720 100644--- a/frontend/src/types/plan.ts+++ b/frontend/src/types/plan.ts@@ -17,6 +17,7 @@ export type FeatureType =| "bb.feature.disallow-signup"| "bb.feature.watermark"| "bb.feature.audit-log"+ | "bb.feature.issue-advanced-search"// Branding| "bb.feature.branding"// Change Workflowdiff --git a/frontend/src/types/proto/v1/issue_service.ts b/frontend/src/types/proto/v1/issue_service.tsindex f2efdec8e1..6de26285c8 100644--- a/frontend/src/types/proto/v1/issue_service.ts+++ b/frontend/src/types/proto/v1/issue_service.ts@@ -159,6 +159,9 @@ export interface SearchIssuesRequest {* - status, example:* - status = "OPEN"* - status = "DONE" | "CANCELED"+ * - create_time, example:+ * - create_time <= "2022-01-01T12:00:00.000Z"+ * - create_time >= "2022-01-01T12:00:00.000Z"*/filter: string;}diff --git a/frontend/src/views/IssueDashboard.vue b/frontend/src/views/IssueDashboard.vueindex b81151133c..01857a7042 100644--- a/frontend/src/views/IssueDashboard.vue+++ b/frontend/src/views/IssueDashboard.vue@@ -8,6 +8,12 @@@update="onSearchParamsUpdate($event)"/>+ <FeatureAttention+ v-if="!!state.searchParams.query || state.searchParams.scopes.length > 0"+ custom-class="m-4"+ feature="bb.feature.issue-advanced-search"+ />+<div class="px-4 py-2 flex justify-between items-center"><EnvironmentTabFilter:include-all="true"diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex c81dd28241..82797fdad4 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -5554,7 +5554,7 @@ When paginating, all other parameters provided to `ListIssues` must match the caWhen paginating, all other parameters provided to `SearchIssues` must match the call that provided the page token. || query | [string](#string) | | Query is the query statement. |-| filter | [string](#string) | | Filter is used to filter issues returned in the list, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. Supported field in filter: - principal, example: - principal = "users/{email}" - creator, example: - creator = "users/{email}" - assignee, example: - assignee = "users/{email}" - subscriber, example: - subscriber = "users/{email}" - status, example: - status = "OPEN" - status = "DONE" | "CANCELED" |+| filter | [string](#string) | | Filter is used to filter issues returned in the list, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. Supported field in filter: - principal, example: - principal = "users/{email}" - creator, example: - creator = "users/{email}" - assignee, example: - assignee = "users/{email}" - subscriber, example: - subscriber = "users/{email}" - status, example: - status = "OPEN" - status = "DONE" | "CANCELED" - create_time, example: - create_time <= "2022-01-01T12:00:00.000Z" - create_time >= "2022-01-01T12:00:00.000Z" |diff --git a/proto/generated-go/v1/issue_service.pb.go b/proto/generated-go/v1/issue_service.pb.goindex 8d74aafa0b..1e4e2305d2 100644--- a/proto/generated-go/v1/issue_service.pb.go+++ b/proto/generated-go/v1/issue_service.pb.go@@ -695,6 +695,10 @@ type SearchIssuesRequest struct {// - status, example:// - status = "OPEN"// - status = "DONE" | "CANCELED"+ //+ // - create_time, example:+ // - create_time <= "2022-01-01T12:00:00.000Z"+ // - create_time >= "2022-01-01T12:00:00.000Z"Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`}diff --git a/proto/v1/issue_service.proto b/proto/v1/issue_service.protoindex 780349f7ad..016f2a3438 100644--- a/proto/v1/issue_service.proto+++ b/proto/v1/issue_service.proto@@ -183,6 +183,9 @@ message SearchIssuesRequest {// - status, example:// - status = "OPEN"// - status = "DONE" | "CANCELED"+ // - create_time, example:+ // - create_time <= "2022-01-01T12:00:00.000Z"+ // - create_time >= "2022-01-01T12:00:00.000Z"string filter = 5;}