Batch output in terminal when running hook_update confusing

Created on 18 March 2024, 12 months ago
Updated 22 March 2024, 12 months ago

Problem/Motivation

If the Batch Operation specifies a batch size other than one, the output to the terminal is confusion. It reports an item rather than a batch. This needs to be improved.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

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

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

Comments & Activities

  • Issue created by @swirt
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida

    I have the output cleaned up when not using batches

    Processed item_1. [8%] [1/12]
    Processed item_2. [16%] [2/12]
    Processed item_3. [25%] [3/12]
    Processed item_4. [33%] [4/12]
    Processed item_5. [41%] [5/12]
    Processed item_6. [50%] [6/12]
    Processed item_7. [58%] [7/12]
    Processed item_8. [66%] [8/12]
    Processed item_9. [75%] [9/12]
    Processed item_10. [83%] [10/12]
    Processed item_11. [91%] [11/12]
    Process completed: Bullwinkle annoyed Rocky with 12 out of 12 jokes.
    

    still working on the batched variety.

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

    And now batched items look like this

    drush codit-batch-operations:run TestDo10Things --allow-skip
    Processed item_1,item_2,item_3. [30%] [3/10]
    Processed item_4,item_5,item_6. [60%] [6/10]
    Processed item_7,item_8,item_9. [90%] [9/10]
    Process completed: Bullwinkle annoyed Rocky with 10 out of 10 jokes.
    
    • swirt β†’ committed f618e246 on 1.0.x
      Issue #3431361 by swirt: Make Batch output in terminal less confusing
      
  • Status changed to Fixed 12 months ago
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida

    This is merged and will go out with Beta1

  • Status changed to Fixed 12 months ago
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida
Production build 0.71.5 2024