From f6ba1a02f0cc1e85ea1a60ef5b6e2dc516a69eb7 Mon Sep 17 00:00:00 2001 From: hujiahao-hjh <82502479+hujiahao-hjh@users.noreply.github.com> Date: Tue, 7 Nov 2023 11:29:51 +0800 Subject: [PATCH] fix: project report detail reopen rate page jump optimization (#3943) --- shell/app/modules/dop/pages/report/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shell/app/modules/dop/pages/report/index.tsx b/shell/app/modules/dop/pages/report/index.tsx index 1863f9ad3..7a2121593 100644 --- a/shell/app/modules/dop/pages/report/index.tsx +++ b/shell/app/modules/dop/pages/report/index.tsx @@ -564,6 +564,7 @@ const ProjectReport = ({ route }: { route: { path: string } }) => { 'BUG', selectIterations.length ? selectIterations : iterations.map((item) => item.id), ['REOPEN'], + `,"reopenedCount":[1]`, ), ), }, @@ -767,9 +768,10 @@ const getIssuesStates = ( type: string, iterations: number[], belone?: string[], + other?: string, ) => { const list = states.filter((state) => state.issueType === type && (!belone || belone.includes(state.stateBelong))); - return `{"states":[${list.map((state) => state.stateID)}],"iterationIDs":[${iterations}]}`; + return `{"states":[${list.map((state) => state.stateID)}],"iterationIDs":[${iterations}]${other || ''}}`; }; const rateColor = (