Skip to content

Commit

Permalink
Allow showing processing timeline events
Browse files Browse the repository at this point in the history
For now, there is no setting to switch with previous behaviour.
  • Loading branch information
jbaptperez committed Dec 23, 2024
1 parent fb3e8cf commit 7bdae19
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion timesketch/api/v1/resources/aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def post(self, sketch_id):
sketch_indices = {
t.searchindex.index_name
for t in sketch.timelines
if t.get_status.status.lower() == "ready"
if t.get_status.status.lower() in ["ready", "processing"]
}

aggregation_dsl = form.aggregation_dsl.data
Expand Down
2 changes: 1 addition & 1 deletion timesketch/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def get_validated_indices(indices, sketch):
"""
sketch_structure = {}
for timeline in sketch.timelines:
if timeline.get_status.status.lower() != "ready":
if timeline.get_status.status.lower() not in ["ready", "processing"]:
continue
index_ = timeline.searchindex.index_name
sketch_structure.setdefault(index_, [])
Expand Down
2 changes: 1 addition & 1 deletion timesketch/models/sketch.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def active_timelines(self):
for timeline in self.timelines:
timeline_status = timeline.get_status.status
index_status = timeline.searchindex.get_status.status
if (timeline_status or index_status) in ("processing", "fail", "archived"):
if (timeline_status or index_status) in ("fail", "archived"):
continue
_timelines.append(timeline)
return _timelines
Expand Down

0 comments on commit 7bdae19

Please sign in to comment.