When batch size exceeds 999, assembleRows throws an error

Created on 30 June 2024, 5 months ago
Updated 1 July 2024, 5 months ago

Problem/Motivation

When trying to visit the log of a given run of a script, if its more than 999, the batch size is passed to AssembleRows in the OperationPage as a string.

Steps to reproduce

  • Set a batch of 1000 (or more) in your script
  • Run the script
  • Stop the run before completing
  • Go to the Operation list
  • Click on the script with the batch of 1000
  • Experience WSOD

Proposed resolution

Add (int) to pass $batch_size as an int on line 109 of
codit_batch_operations_ui/src/Controller/OperationPage.php

From

    $rows = $this->assembleRows($batch_op_class_name, $batch_size);

to

    $rows = $this->assembleRows($batch_op_class_name, (int)$batch_size);

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States skyriter

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

Comments & Activities

Production build 0.71.5 2024