Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
4ab025c4
Commit
4ab025c4
authored
Mar 13, 2024
by
crazywoola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add more status
parent
cc17de4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dataset_service.py
api/services/dataset_service.py
+1
-1
index.tsx
web/app/components/base/retry-button/index.tsx
+2
-2
No files found.
api/services/dataset_service.py
View file @
4ab025c4
...
...
@@ -411,7 +411,7 @@ class DocumentService:
def
get_error_documents_by_dataset_id
(
dataset_id
:
str
)
->
list
[
Document
]:
documents
=
db
.
session
.
query
(
Document
)
.
filter
(
Document
.
dataset_id
==
dataset_id
,
Document
.
indexing_status
==
'error'
Document
.
indexing_status
==
'error'
or
Document
.
indexing_status
==
'paused'
or
Document
.
indexing_status
==
'waiting'
)
.
all
()
return
documents
...
...
web/app/components/base/retry-button/index.tsx
View file @
4ab025c4
...
...
@@ -28,7 +28,7 @@ const indexStateReducer = (state: IIndexState, action: IAction) => {
case
'retry'
:
return
{
...
state
,
value
:
'retry
ing
'
,
value
:
'retry'
,
}
case
'success'
:
return
{
...
...
@@ -82,7 +82,7 @@ const RetryButton: FC<Props> = (
className=
{
classNames
(
'text-primary-600 font-semibold text-sm cursor-pointer'
,
indexState
.
value
===
'retry
ing'
&&
'text-gray-500
cursor-not-allowed'
,
indexState
.
value
===
'retry
'
&&
'!text-gray-500 !
cursor-not-allowed'
,
)
}
onClick=
{
indexState
.
value
===
'error'
?
onRetryErrorDocs
:
undefined
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment