library
library copied to clipboard
Fix: Filter trashed documents in folder listings
Summary
- Fixes #357 - Trashed documents were showing up in folder listings but not in search results
- Added
trashed = falsefilter to ensure consistency between search and list functionality - Prevents trashed documents from appearing on the site until permanently deleted
Changes
-
server/list.js: Added
AND trashed = falseto the query string ingetOptions()function for folder drive type - test/unit/list.test.js: Added comprehensive tests to verify trashed documents are filtered for both team and folder drive types
Test Plan
- [x] Added unit tests for both team and folder drive types
- [x] All existing tests pass (115/119 - 4 pre-existing failures unrelated to this change)
- [x] Linter passes with no issues
- [x] Verified search functionality remains unchanged
🤖 Generated with Claude Code