Add events for important actions

Created on 9 May 2024, 7 months ago
Updated 30 May 2024, 7 months ago

Problem/Motivation

Right now its very hard to do minor adjustments to prompts, configurations prerun via code and impossible to get an overview of what built the results postrun. This makes testing off the best prompts and configurations hard on a large scale.

Proposed resolution

Add events that can be subscribed on the following steps during generation:

  • preFieldSelection - should the field be processed, an external module can opt out a field from processing even if it should or shouldn't.
  • preRunConfig - change the configuration before running it. This includes configs and prompts.
  • isValid - change whether a rule is allowed to be sued under certain circumstances.
  • verboseData - only information, this gives back information from the generation that the rule wants to share.
  • storeValues - change the created values before storing them.

Documentation changes

Document all events possible and what to expect here: https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib...

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany marcus_johansson

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

Comments & Activities

Production build 0.71.5 2024