[GH-ISSUE #614] [Bug]: Rule definition after category is deleted is bogus #7193

Closed
opened 2026-04-10 16:53:52 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @shall0pass on GitHub (Feb 3, 2023).
Original GitHub issue: https://github.com/actualbudget/actual/issues/614

Originally assigned to: @j-f1 on GitHub.

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

If a rule has been created using a category and then the category is deleted, the rule still exists in a weird state. The rule points at the old category is, which no longer exists. This will cause the rules search box to throw an error.

Screenshot_20230203-052619-792

Request: create a tool that automatically checks for an affected rule and deletes it when a category is deleted.

What error did you receive?

No response

Where are you hosting Actual?

Locally via Yarn

What browsers are you seeing the problem on?

Chrome

Operating System

Windows 11

Originally created by @shall0pass on GitHub (Feb 3, 2023). Original GitHub issue: https://github.com/actualbudget/actual/issues/614 Originally assigned to: @j-f1 on GitHub. ### Verified issue does not already exist? - [X] I have searched and found no existing issue ### What happened? If a rule has been created using a category and then the category is deleted, the rule still exists in a weird state. The rule points at the old category is, which no longer exists. This will cause the rules search box to throw an error. ![Screenshot_20230203-052619-792](https://user-images.githubusercontent.com/20625555/216593456-08a01895-10ae-4ecb-8b44-47d717fd521c.png) Request: create a tool that automatically checks for an affected rule and deletes it when a category is deleted. ### What error did you receive? _No response_ ### Where are you hosting Actual? Locally via Yarn ### What browsers are you seeing the problem on? Chrome ### Operating System Windows 11
GiteaMirror added the rulesbug labels 2026-04-10 16:53:52 -05:00
Author
Owner

@j-f1 commented on GitHub (Feb 3, 2023):

Looking into this, I think it would be pretty challenging to handle deleting rules (or stripping out conditions/actions) on delete of a category, since the category delete happens at a fairly low level. I think the best route would be to improve the display in the UI and fix the search crash.

<!-- gh-comment-id:1416242934 --> @j-f1 commented on GitHub (Feb 3, 2023): Looking into this, I think it would be pretty challenging to handle deleting rules (or stripping out conditions/actions) on delete of a category, since the category delete happens at a fairly low level. I think the best route would be to improve the display in the UI and fix the search crash.
Author
Owner

@shall0pass commented on GitHub (Feb 3, 2023):

Ok. FYI. If you delete a payee, it has the same behavior.

<!-- gh-comment-id:1416246262 --> @shall0pass commented on GitHub (Feb 3, 2023): Ok. FYI. If you delete a payee, it has the same behavior.
Author
Owner

@MatissJanis commented on GitHub (Feb 3, 2023):

👋 I've added "priority:high" label because IMO this is a blocker for the upcoming release as it will crash the rules page for some people.

<!-- gh-comment-id:1416251675 --> @MatissJanis commented on GitHub (Feb 3, 2023): 👋 I've added "priority:high" label because IMO this is a blocker for the upcoming release as it will crash the rules page for some people.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#7193