Skip to content

Commit

Permalink
Do not allow hiding income category group (#2581)
Browse files Browse the repository at this point in the history
* Do not allow hiding income category group

* add release note

* rename file

* Migrate DB so income groups are not hidden

* Update migration to explicitly match on is_income = 1
  • Loading branch information
psybers authored Apr 12, 2024
1 parent b879518 commit d89a016
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function SidebarGroup({
}}
items={[
{ name: 'add-category', text: 'Add category' },
{
!group.is_income && {
name: 'toggle-visibility',
text: group.hidden ? 'Show' : 'Hide',
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BEGIN TRANSACTION;

UPDATE category_groups
SET
hidden = 0
WHERE is_income = 1;

COMMIT;
6 changes: 6 additions & 0 deletions upcoming-release-notes/2581.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [psybers]
---

Do not allow hiding the income category group.

0 comments on commit d89a016

Please sign in to comment.