Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
疯人忠
Cvat
提交
c30c97b6
C
Cvat
项目概览
疯人忠
/
Cvat
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Cvat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
c30c97b6
编写于
10月 26, 2022
作者:
B
Boris Sekachev
提交者:
GitHub
10月 26, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed error: could not fetch task in a corner case (#5163)
* Fixed error: could not fetch task in a corner case * Updated changelog
上级
65a8bc1e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
13 addition
and
14 deletion
+13
-14
CHANGELOG.md
CHANGELOG.md
+1
-0
cvat-ui/src/actions/projects-actions.ts
cvat-ui/src/actions/projects-actions.ts
+1
-1
cvat-ui/src/actions/tasks-actions.ts
cvat-ui/src/actions/tasks-actions.ts
+5
-2
cvat-ui/src/containers/task-page/task-page.tsx
cvat-ui/src/containers/task-page/task-page.tsx
+2
-10
cvat-ui/src/reducers/tasks-reducer.ts
cvat-ui/src/reducers/tasks-reducer.ts
+4
-1
未找到文件。
CHANGELOG.md
浏览文件 @
c30c97b6
...
...
@@ -51,6 +51,7 @@ non-ascii paths while adding files from "Connected file share" (issue #4428)
-
Fixed bug of computing Job's unsolved/resolved issues numbers (
<https://github.com/opencv/cvat/pull/5101>
)
-
Dataset export for job (
<https://github.com/opencv/cvat/pull/5052>
)
-
Angle is not propagated when use
``propagate``
feature (
<https://github.com/opencv/cvat/pull/5139>
)
-
Could not fetch task in a corner case (
<https://github.com/opencv/cvat/pull/5163>
)
-
Restoring CVAT in case of React-renderning fail (
<https://github.com/opencv/cvat/pull/5134>
)
-
Deleted frames become restored if a user deletes frames from another job of the same task
(
<https://github.com/opencv/cvat/pull/5138>
)
...
...
cvat-ui/src/actions/projects-actions.ts
浏览文件 @
c30c97b6
...
...
@@ -70,7 +70,7 @@ export function getProjectTasksAsync(tasksQuery: Partial<TasksQuery> = {}): Thun
getState
().
projects
.
gettingQuery
,
tasksQuery
,
));
const
query
:
TasksQuery
=
{
const
query
:
Partial
<
TasksQuery
>
=
{
...
state
.
projects
.
tasksGettingQuery
,
...
tasksQuery
,
};
...
...
cvat-ui/src/actions/tasks-actions.ts
浏览文件 @
c30c97b6
...
...
@@ -31,7 +31,7 @@ export enum TasksActionTypes {
SWITCH_MOVE_TASK_MODAL_VISIBLE
=
'
SWITCH_MOVE_TASK_MODAL_VISIBLE
'
,
}
function
getTasks
(
query
:
TasksQuery
,
updateQuery
:
boolean
):
AnyAction
{
function
getTasks
(
query
:
Partial
<
TasksQuery
>
,
updateQuery
:
boolean
):
AnyAction
{
const
action
=
{
type
:
TasksActionTypes
.
GET_TASKS
,
payload
:
{
...
...
@@ -65,7 +65,10 @@ function getTasksFailed(error: any): AnyAction {
return
action
;
}
export
function
getTasksAsync
(
query
:
TasksQuery
,
updateQuery
=
true
):
ThunkAction
<
Promise
<
void
>
,
{},
{},
AnyAction
>
{
export
function
getTasksAsync
(
query
:
Partial
<
TasksQuery
>
,
updateQuery
=
true
,
):
ThunkAction
<
Promise
<
void
>
,
{},
{},
AnyAction
>
{
return
async
(
dispatch
:
ActionCreator
<
Dispatch
>
):
Promise
<
void
>
=>
{
dispatch
(
getTasks
(
query
,
updateQuery
));
...
...
cvat-ui/src/containers/task-page/task-page.tsx
浏览文件 @
c30c97b6
// Copyright (C) 2020-2022 Intel Corporation
// Copyright (C) 2022 CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT
...
...
@@ -65,16 +66,7 @@ function mapDispatchToProps(dispatch: any, own: Props): DispatchToProps {
return
{
getTask
:
():
void
=>
{
dispatch
(
getTasksAsync
({
id
,
page
:
1
,
search
:
null
,
owner
:
null
,
assignee
:
null
,
name
:
null
,
status
:
null
,
mode
:
null
,
}),
getTasksAsync
({
id
}),
);
},
};
...
...
cvat-ui/src/reducers/tasks-reducer.ts
浏览文件 @
c30c97b6
...
...
@@ -50,7 +50,10 @@ export default (state: TasksState = defaultState, action: AnyAction): TasksState
fetching
:
true
,
hideEmpty
:
true
,
count
:
0
,
gettingQuery
:
action
.
payload
.
updateQuery
?
{
...
action
.
payload
.
query
}
:
state
.
gettingQuery
,
gettingQuery
:
action
.
payload
.
updateQuery
?
{
...
defaultState
.
gettingQuery
,
...
action
.
payload
.
query
,
}
:
state
.
gettingQuery
,
};
case
TasksActionTypes
.
GET_TASKS_SUCCESS
:
{
const
combinedWithPreviews
=
action
.
payload
.
array
.
map
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录