Project

General

Profile

Actions

Bug #12558

open

[Workbench] Bad dashboard time formatting - 60m == 1h

Added by Tom Morris about 7 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
-
Start date:
11/06/2017
Due date:
% Done:

0%

Estimated time:
Story points:
-
Release:
Release relationship:
Auto

Description

I saw this on the workbench dashboard:

Started at 9:17 AM 11/6/2017. Active for 3h60m.

It should instead be formatted as 4h.

Actions #1

Updated by Tom Morris about 7 years ago

  • Target version changed from 2017-11-22 Sprint to Arvados Future Sprints
Actions #2

Updated by Tom Clegg over 6 years ago

in source:apps/workbench/app/helpers/pipeline_instances_helper.rb we do this after computing days/hours/minutes.

    if round_to_min and seconds >= 30
      minutes += 1
    end

Instead, before computing days/hours/minutes, we could do

    if round_to_min && duration >= 30
      duration += 30
    end

(Without the ≥30 test, adding 30 would cause duration==10 to be reported as "40s" when round_to_min is true.)

Actions #3

Updated by Peter Amstutz over 3 years ago

  • Target version deleted (Arvados Future Sprints)
Actions #4

Updated by Lucas Di Pentima almost 2 years ago

  • Release set to 60
Actions

Also available in: Atom PDF