[Tech debt] Local prefs - migration from metadata prefs #1463

Closed
opened 2026-02-28 19:44:13 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @MatissJanis on GitHub (Oct 3, 2024).

Originally assigned to: @MatissJanis on GitHub.

Creating an issue so I don't forget about this.

d0caf9f521/packages/desktop-client/src/hooks/useLocalPref.ts (L30-L39)

The above code snippet migrates metadata.json prefs to local storage. This works fine (for now). But we will want to remove this logic for v24.11.0 release.

The problem is: metadata.json is never cleaned up. For example: if you had previously set-up a specific budget month - this starting budget month will always be used as the "default". No matter if you open the budget today, tomorrow or a year from now (assuming it's a fresh session with no local storage).

For version v24.11.0 the migration snippet should be removed. We can assume that most people would have auto-magically migrated by then.

Originally created by @MatissJanis on GitHub (Oct 3, 2024). Originally assigned to: @MatissJanis on GitHub. Creating an issue so I don't forget about this. https://github.com/actualbudget/actual/blob/d0caf9f521edc7709966ba6d0c3f6fc46c19fde9/packages/desktop-client/src/hooks/useLocalPref.ts#L30-L39 The above code snippet migrates `metadata.json` prefs to local storage. This works fine (for now). **But we will want to remove this logic for v24.11.0 release**. The problem is: `metadata.json` is never cleaned up. For example: if you had previously set-up a specific budget month - this starting budget month will always be used as the "default". No matter if you open the budget today, tomorrow or a year from now (assuming it's a fresh session with no local storage). For version v24.11.0 the _migration_ snippet should be removed. We can assume that most people would have auto-magically migrated by then.
GiteaMirror added the tech debt label 2026-02-28 19:44:13 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#1463