Skip to content

chore: remove unused IsActive soft-delete from Habit entity - #12

Merged
thomasluizon merged 1 commit into
mainfrom
chore/remove-habit-isactive
Mar 21, 2026
Merged

chore: remove unused IsActive soft-delete from Habit entity#12
thomasluizon merged 1 commit into
mainfrom
chore/remove-habit-isactive

Conversation

@thomasluizon

Copy link
Copy Markdown
Owner

Summary

  • AI chat delete used Deactivate() (soft delete) while UI used hard delete, causing invisible ghost children that blocked auto-completion of parent tasks
  • Remove IsActive property, Deactivate()/Activate() methods, all query filters, and database index
  • Includes migration to drop the column

Test plan

  • Run migration on dev database
  • Create a task group with sub-tasks, complete all sub-tasks, verify parent auto-completes
  • Delete a sub-task via AI chat, complete remaining sub-tasks, verify parent auto-completes

Generated with Claude Code

The AI chat delete was using Deactivate() (soft delete) while the UI
used hard delete, causing invisible ghost children that blocked
auto-completion of parent tasks when all visible sub-habits were done.

Remove IsActive property, Deactivate/Activate methods, all query
filters referencing IsActive, and the database index. All deletes
now consistently hard-delete.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant