You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The deleteOrganisation method sets isDeleted to true, but it does not filter out deleted organizations in other methods. This means that queries do not exclude soft-deleted organizations.
Steps to Reproduce
Call the deleteOrganisation method on an organization.
Try fetching organizations via the API.
The deleted organization is still included in the results.
Expected Behavior
The deleted organizations should not appear in query results.
Current Behavior
Deleted organizations still show up in queries.
Screenshots/Logs
Environment
OS: [e.g. Windows, macOS, Linux]
Browser/Device: [e.g. Chrome, Firefox, iPhone]
Version: [e.g. 22]
Possible Solution
Modify queries to exclude records where isDeleted = true.
Additional Context
The text was updated successfully, but these errors were encountered:
dainty92
changed the title
[FIX]
Soft Delete Not Applied: Deleted Organizations Still Appear in Queries
Feb 28, 2025
dainty92
changed the title
Soft Delete Not Applied: Deleted Organizations Still Appear in Queries
[FIX] Soft Delete Issue: Deleted Organizations Still Appear in Queries
Feb 28, 2025
Bug Description
The
deleteOrganisation
method setsisDeleted
totrue
, but it does not filter out deleted organizations in other methods. This means that queries do not exclude soft-deleted organizations.Steps to Reproduce
deleteOrganisation
method on an organization.Expected Behavior
Current Behavior
Screenshots/Logs
Environment
Possible Solution
isDeleted = true
.Additional Context
The text was updated successfully, but these errors were encountered: