Argus icon indicating copy to clipboard operation
Argus copied to clipboard

Show duration instead of start time in incident list

Open hmpf opened this issue 5 years ago • 2 comments

hmpf avatar Sep 30 '20 06:09 hmpf

This isn't actually a completely useful description. For open incidents, this makes sense. However, for closed incidents, you still want to know the start time in addition to the duration.

My suggestion, to cover both, is to include both the start_time column and a duration column.

To save horizontal space, though, we might at some point in the future want to consider multiline table rows, like RT supports. There could be a time-related column with each row having one line for start time and another line for duration.. but I digress...

lunkwill42 avatar Oct 01 '20 12:10 lunkwill42

I like the idea of displaying the duration, as it simplifies the view and makes relevant info easier to grasp to the user. I agree that on closed incidents, duration is not relevant.

My take on technical implementation:

Consider having one column. It displays duration for open incidents, and start time for closed ones. The underlying data structure (column "type") is always DateTime, hence sorting is unaffected. Argus-frontend just changes the display format to "time since x" for open incidents instead. I see this purely as a display issue, and JavaScript can do magic these days. (@jorgenbele may have a couple good ideas how to get this done.)

Also good idea: Make sure to include a tooltip that shows the actual timestamp when the user hovers their mouse on the duration field (onmouseover).

katsel avatar Dec 03 '20 12:12 katsel

We show both the start time and duration now. Closing this

podliashanyk avatar Jul 30 '25 10:07 podliashanyk