Skip to content

fix: Fix create schedule not inserting the next scheduled date.#195

Merged
bvanelli merged 3 commits into
mainfrom
193-fix-create-schedule
Apr 3, 2026
Merged

fix: Fix create schedule not inserting the next scheduled date.#195
bvanelli merged 3 commits into
mainfrom
193-fix-create-schedule

Conversation

@bvanelli
Copy link
Copy Markdown
Owner

@bvanelli bvanelli commented Apr 2, 2026

create_schedule creates the schedule and its rule/conditions correctly, but never inserts a row into the schedules_next_date table. The Actual frontend requires this row to compute and display the next occurrence date. Without it, the Next Date column is blank and the frontend crashes when attempting to edit the date field.

Here is the reference implementation from Actual: https://github.com/actualbudget/actual/blob/c0c2d1630ede6d58347af9e6a194dfa701f1fa37/packages/loot-core/src/server/schedules/app.ts#L288-L295

Closes #193

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.64%. Comparing base (983b463) to head (af138a2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #195      +/-   ##
==========================================
+ Coverage   97.60%   97.64%   +0.03%     
==========================================
  Files          21       21              
  Lines        3212     3222      +10     
==========================================
+ Hits         3135     3146      +11     
+ Misses         77       76       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bvanelli bvanelli merged commit 88d5780 into main Apr 3, 2026
9 checks passed
@bvanelli bvanelli deleted the 193-fix-create-schedule branch April 3, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

create_schedule does not populate schedules_next_date, causing missing Next Date and frontend crash

1 participant