trypost/tests/Feature/Automation/Command
Paulo Castellano a129b6b5cd Denormalize automation trigger_type into an indexed column
The scheduler command ran every minute and loaded all active automations,
then filtered by trigger_type in PHP because that value lived buried in the
nodes JSON array — effectively a full-table scan plus a JSON decode per row
each minute, discarding every non-schedule automation.

Derive trigger_type into a real, indexed column on save (recomputed in the
existing saving() hook so it can never drift from nodes) and filter on it in
SQL. Applies to both the schedule firer and the post-trigger dispatcher.
2026-06-13 15:26:54 -03:00
..
FireScheduleTriggersTest.php Denormalize automation trigger_type into an indexed column 2026-06-13 15:26:54 -03:00
ProcessAutomationDelaysTest.php Enhance automation functionality: Introduce workflow variables and improve node validation 2026-06-11 15:47:29 -03:00
PruneDryRunAutomationRunsTest.php Harden automations module: full-post generation, reliable runs, editor UX 2026-06-10 20:45:01 -03:00
RecoverStuckAutomationRunsTest.php Harden automations module: full-post generation, reliable runs, editor UX 2026-06-10 20:45:01 -03:00