Allow tasks to return a not run state

Created on 3 April 2024, 3 months ago
Updated 17 April 2024, 2 months ago

Problem/Motivation

Tasks currently return bool|array<string, bool>, meaning that if a task does not meet the correct requirements it must return a failure.

Proposed resolution

Allow tasks to return null|bool|array<string, bool>, with null indicating a not run state.

API changes

The return signature for tasks will change to null|bool|array<string, bool>.
The method \Drupal\reviewer\Reviewer\Status\StatusFactory::createNoResults will be renamed createNotRun.
The method \Drupal\reviewer\Reviewer\Status\StatusEvaluator::isNoResults will be renamed isNotRun.

✨ Feature request
Status

Fixed

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States benabaird

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024