discourse/plugins
Osama Sayegh 9ebf7c9c37
FIX: Preveint recurring automations from running before `start_date` (#26963)
Some combinations of start_date and frequency/interval values can cause a recurring automation rule to either trigger before its start_date or never trigger. Example repros:

- Configure a recurring automation with hourly recurrence and a start_date several days ahead. What this will do is make the automation start running hourly immediately even though the start_date is several days ahead.

-  Configure a recurring automation with a weekly recurrence and a start_date several weeks ahead. This will result in the automation never triggering even after the start_date.

These 2 scenarios share the same cause which is that the automation plugin doesn't use the start_date as the date for the first run and instead uses the frequency/interval values from the current time to calculate the first run date.

This PR fixes this bug by adding an explicit check for start_date and using it as the first run's date if it's ahead of the current time.
2024-05-10 11:45:23 +10:00
..
automation FIX: Preveint recurring automations from running before `start_date` (#26963) 2024-05-10 11:45:23 +10:00
chat DEV: bots are always allowed to chat (#26948) 2024-05-09 12:05:31 +02:00
checklist UX: loading spinner when clicking an item 2024-04-25 18:45:38 +02:00
discourse-details DEV: refactor morphed preview specs 2024-04-10 10:36:20 +02:00
discourse-lazy-videos DEV: Fix random typos (#26881) 2024-05-06 20:52:48 +02:00
discourse-local-dates DEV: Avoid using the old action helper (#26935) 2024-05-08 20:26:48 +02:00
discourse-narrative-bot Update translations (#26463) 2024-04-02 18:19:46 +02:00
discourse-presence DEV: Add appEvents for composer / DEditor toolbar events (#26517) 2024-04-05 08:35:25 -05:00
footnote FEATURE: Allow dismissing tooltips by clicking their button (#26668) 2024-04-18 13:16:55 +02:00
poll DEV: Avoid using the old action helper (#26935) 2024-05-08 20:26:48 +02:00
spoiler-alert DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
styleguide DEV: Avoid using the old action helper (#26935) 2024-05-08 20:26:48 +02:00