Temp fix for missing accountables on self hosted instances #1071

Merged
zachgoll merged 2 commits from zachgoll/temp-crash-fix-accountable-series into main 2024-08-10 01:31:32 +08:00
zachgoll commented 2024-08-10 00:35:33 +08:00 (Migrated from github.com)

Based on the current info, it appears #1068 is caused by self-hosted instances having corrupt data where the Account has an entryable_type and entryable_id populated, but the corresponding Entryable does not exist in the database.

This causes an error when Account delegates the value and series methods to the accountable.

Adding this fix so we can fix crashed instances, but would prefer to get a better long-term solution (and potential destructive migration) published when we identify the root cause of the issue.

Based on the current info, it appears #1068 is caused by self-hosted instances having corrupt data where the `Account` has an `entryable_type` and `entryable_id` populated, but the corresponding `Entryable` does not exist in the database. This causes an error when `Account` delegates the `value` and `series` methods to the accountable. Adding this fix so we can fix crashed instances, but would prefer to get a better long-term solution (and potential destructive migration) published when we identify the root cause of the issue.
Sign in to join this conversation.