Skip to content

Commit

Permalink
WIP 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 5, 2024
1 parent 08e8de9 commit 42403d9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 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
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ limitations under the License.
<template v-slot:activator="{ on: onTooltip, attrs }">
<span
class="timeline-name-ellipsis"
:class="{ disabled: !isSelected && slotProps.timelineStatus === 'ready' }"
:class="{ disabled: !isSelected }"
v-bind="attrs"
v-on="onTooltip"
>{{ timeline.name }}</span
Expand Down Expand Up @@ -130,4 +130,3 @@ export default {
}

</style>

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 42403d9

Please sign in to comment.