Add a duration display

Created on 27 March 2024, 8 months ago
Updated 27 June 2024, 5 months ago

Problem/Motivation

It would be nice to have a BatchOpLog show the duration in hours, mins, seconds so that we know how long something took.

We are showing duration in the log list but not on the log itself.
This is achieved by
`$batch_op_log->get('last')->value - $batch_op_log->get('created')->value`
And then passing that later to
convertDuration();

The problem is `convertDuration()` is misnamed as it actually converts multiple in an array.

Steps to reproduce

Proposed resolution

  1. Change `OperationsBase->convertDuration()` to `convertDurations()`
  2. Pull the conversion logic out of that and put it into a new static method BatchOpLog::convertDuration($start_time , $finish_time) that lives and have that called inside `convertDurations()`
  3. Add the output to the render array for BatchOpLog below the start and stop times.

Change

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States swirt Florida

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024