Provide option to exclude processed transitions from transition count on local tasks

Created on 30 May 2023, almost 2 years ago

Problem/Motivation

The "Scheduled transitions" local task on an entity displays the number of scheduled transitions for the entity in the task label. When the retain_processed option is enabled this includes both pending and already processed transitions. In most cases it is more useful to see the number of pending transitions only.

Steps to reproduce

  • Enabled retain_processed option
  • Create an entity with multiple scheduled transitions
  • Wait for one or more transitions to be processed

Proposed resolution

Provide an option to exclude processed transitions from the transition count.

Remaining tasks

Determine if this should be the default.

User interface changes

Transition count in local tasks will be lower when processed items are excluded.

API changes

Addition of \Drupal\scheduled_transitions\ScheduledTransitionsConfig::isIncludingProcessedTransitionsInLocalTaskCount

Data model changes

N/A

Feature request
Status

Closed: duplicate

Version

2.4

Component

Code

Created by

🇦🇺Australia mstrelan

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

Comments & Activities

Production build 0.71.5 2024