Is there an existing issue for this?
Current behavior
When a custom project state is deleted, it is correctly soft-deleted in the database (deleted_at is set). However, two API endpoints do not filter on deleted_at__isnull=True, so they return soft-deleted states alongside active ones. The frontend populates its state store from these endpoints, causing deleted states to reappear after navigating away and back to the page even though the delete appeared to succeed in the UI.
Steps to reproduce
- Go to Project Settings → States
- Create a custom state (e.g. "Rainy Day")
- Delete it. It disappears from the view
- Navigate away (e.g. to the board view) and navigate back to Settings → States
- "Rainy Day" reappears
Environment
Production
Browser
Google Chrome
Variant
Self-hosted
Version
stable v1.2.3
Is there an existing issue for this?
Current behavior
When a custom project state is deleted, it is correctly soft-deleted in the database (deleted_at is set). However, two API endpoints do not filter on
deleted_at__isnull=True, so they return soft-deleted states alongside active ones. The frontend populates its state store from these endpoints, causing deleted states to reappear after navigating away and back to the page even though the delete appeared to succeed in the UI.Steps to reproduce
Environment
Production
Browser
Google Chrome
Variant
Self-hosted
Version
stable v1.2.3