Skip to content

Commit b943d05

Browse files
authored
V4.9.5 feature (#4534)
* update doc * add response detail value * fix: filter params
1 parent 2af3cd8 commit b943d05

File tree

4 files changed

+6
-7
lines changed
  • docSite/content/zh-cn/docs/development/upgrading
  • packages/service/core/workflow/dispatch
  • projects/app/src
    • pageComponents/account/team/OperationLog
    • web/support/user/team/operantionLog

4 files changed

+6
-7
lines changed

docSite/content/zh-cn/docs/development/upgrading/495.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ weight: 795
1313
1. 团队成员权限细分,可分别控制是否可创建在根目录应用/知识库以及 API Key
1414
2. 支持交互节点在嵌套工作流中使用。
1515
3. 团队成员操作日志。
16+
4. 用户输入节点支持多选框。
1617

1718
## ⚙️ 优化
1819

packages/service/core/workflow/dispatch/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export async function dispatchWorkFlow(data: Props): Promise<DispatchFlowRespons
132132
externalProvider,
133133
stream = false,
134134
version = 'v1',
135+
responseDetail = true,
135136
...props
136137
} = data;
137138

@@ -638,7 +639,7 @@ export async function dispatchWorkFlow(data: Props): Promise<DispatchFlowRespons
638639
!props.isToolCall &&
639640
isRootRuntime &&
640641
formatResponseData &&
641-
!(!props.responseDetail && filterModuleTypeList.includes(formatResponseData.moduleType))
642+
!(responseDetail === false && filterModuleTypeList.includes(formatResponseData.moduleType))
642643
) {
643644
props.workflowStreamResponse?.({
644645
event: SseResponseEventEnum.flowNodeResponse,

projects/app/src/pageComponents/account/team/OperationLog/index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ function OperationLogTable({ Tabs }: { Tabs: React.ReactNode }) {
6464
ScrollData: LogScrollData
6565
} = useScrollPagination(getOperationLogs, {
6666
pageSize: 20,
67-
throttleWait: 500,
68-
debounceWait: 200,
6967
refreshDeps: [searchParams],
7068
params: searchParams
7169
});
@@ -92,10 +90,8 @@ function OperationLogTable({ Tabs }: { Tabs: React.ReactNode }) {
9290

9391
useEffect(() => {
9492
setSearchParams({
95-
...(isSelectAllTmb ? {} : { tmbIds: selectedTmbIds.length > 0 ? selectedTmbIds : undefined }),
96-
...(isSelectAllEvent
97-
? {}
98-
: { events: selectedEvents.length > 0 ? selectedEvents : undefined })
93+
...(isSelectAllTmb ? {} : { tmbIds: selectedTmbIds }),
94+
...(isSelectAllEvent ? {} : { events: selectedEvents })
9995
});
10096
}, [selectedTmbIds, selectedEvents, isSelectAllTmb, isSelectAllEvent]);
10197

projects/app/src/web/support/user/team/operantionLog/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { GET, POST, PUT } from '@/web/common/api/request';
22
import type { PaginationProps, PaginationResponse } from '@fastgpt/web/common/fetch/type';
33
import type { OperationListItemType } from '@fastgpt/global/support/operationLog/type';
44
import { OperationLogEventEnum } from '@fastgpt/global/support/operationLog/constants';
5+
56
export const getOperationLogs = (
67
props: PaginationProps & {
78
tmbIds?: string[];

0 commit comments

Comments
 (0)