Skip to content

Commit dc860b7

Browse files
committed
fix(backend): 流程详情过滤INNER_FAILED #10399
# Reviewed, transaction id: 41447
1 parent 5a8d01c commit dc860b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dbm-ui/backend/ticket/serializers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
TicketStatus,
3232
TicketType,
3333
TodoStatus,
34+
TodoType,
3435
)
3536
from backend.ticket.flow_manager.manager import TicketFlowManager
3637
from backend.ticket.models import Flow, Ticket, Todo
@@ -171,7 +172,7 @@ def to_representation(self, instance):
171172
return super().to_representation(instance)
172173

173174
def get_todos(self, obj):
174-
return TodoSerializer(obj.todo_of_flow.all(), many=True).data
175+
return TodoSerializer(obj.todo_of_flow.all().exclude(type=TodoType.INNER_FAILED.value), many=True).data
175176

176177
def get_status(self, obj):
177178
return self.ticket_flow.status

0 commit comments

Comments
 (0)