Skip to content

[bug]: Soft-deleted states returned by workspace and project state endpoints, causing deleted states to reappear in UI #8829

@gitJamoo

Description

@gitJamoo

Is there an existing issue for this?

  • I have searched the existing issues

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

  1. Go to Project Settings → States
  2. Create a custom state (e.g. "Rainy Day")
  3. Delete it. It disappears from the view
  4. Navigate away (e.g. to the board view) and navigate back to Settings → States
  5. "Rainy Day" reappears

Environment

Production

Browser

Google Chrome

Variant

Self-hosted

Version

stable v1.2.3

Metadata

Metadata

Labels

planesync issues to Plane🐛bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions