Skip to content

Commit

Permalink
fix: 修复根因故障操作流水顺序的问题 --bug=127549945 (#2401)
Browse files Browse the repository at this point in the history
  • Loading branch information
dengyh authored Jul 24, 2024
1 parent 4aea743 commit 5e4ec98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bkmonitor/bkmonitor/documents/incident.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def list_by_incident_id(
else:
search = cls.search(all_indices=True)
search = search.filter("term", incident_id=incident_id)
search = search.sort("create_time").params(size=limit)
search = search.sort("-create_time").params(size=limit)
hits = search.execute().hits
return [cls(**hit.to_dict()) for hit in hits]

Expand Down

0 comments on commit 5e4ec98

Please sign in to comment.