Skip to content

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

fix: issue type filter (#16760)

boojack376574d676ae
diff --git a/frontend/src/store/modules/v1/issue.ts b/frontend/src/store/modules/v1/issue.ts
index daa7b46d6c..4a9e802f7f 100644
--- a/frontend/src/store/modules/v1/issue.ts
+++ b/frontend/src/store/modules/v1/issue.ts
@@ -1,19 +1,20 @@
+import { create } from "@bufbuild/protobuf";
+import { createContextValues } from "@connectrpc/connect";
import dayjs from "dayjs";
import { uniq } from "lodash-es";
import { defineStore } from "pinia";
import type { WatchCallback } from "vue";
import { ref, watch } from "vue";
-import { create } from "@bufbuild/protobuf";
-import { createContextValues } from "@connectrpc/connect";
import { issueServiceClientConnect } from "@/grpcweb";
import { silentContextKey } from "@/grpcweb/context-key";
+import { SYSTEM_BOT_EMAIL, type IssueFilter } from "@/types";
import {
GetIssueRequestSchema,
+ Issue_Type,
IssueSchema,
SearchIssuesRequestSchema,
UpdateIssueRequestSchema,
} from "@/types/proto-es/v1/issue_service_pb";
-import { SYSTEM_BOT_EMAIL, type IssueFilter } from "@/types";
import type { ApprovalStep, Issue } from "@/types/proto-es/v1/issue_service_pb";
import {
IssueStatus,
@@ -58,7 +59,7 @@ export const buildIssueFilter = (find: IssueFilter): string => {
);
}
if (find.type) {
- filter.push(`type == "${find.type}"`);
+ filter.push(`type == "${Issue_Type[find.type]}"`);
}
if (find.taskType) {
filter.push(`task_type == "${find.taskType}"`);
diff --git a/frontend/src/types/v1/issue/issue.ts b/frontend/src/types/v1/issue/issue.ts
index b0145794d7..55a8e78180 100644
--- a/frontend/src/types/v1/issue/issue.ts
+++ b/frontend/src/types/v1/issue/issue.ts
@@ -6,10 +6,14 @@ import {
UNKNOWN_PROJECT_NAME,
UNKNOWN_ROLLOUT_NAME,
} from "@/types";
-import type { Rollout } from "@/types/proto-es/v1/rollout_service_pb";
import type { Issue } from "@/types/proto-es/v1/issue_service_pb";
-import { IssueSchema, IssueStatus, Issue_Type } from "@/types/proto-es/v1/issue_service_pb";
+import {
+ IssueSchema,
+ IssueStatus,
+ Issue_Type,
+} from "@/types/proto-es/v1/issue_service_pb";
import type { Plan, PlanCheckRun } from "@/types/proto-es/v1/plan_service_pb";
+import type { Rollout } from "@/types/proto-es/v1/rollout_service_pb";
import { EMPTY_ID, UNKNOWN_ID } from "../../const";
// For grant request issue, it has no plan and rollout.