library icon indicating copy to clipboard operation
library copied to clipboard

Fix: Filter trashed documents in folder listings

Open cv opened this issue 6 months ago • 0 comments

Summary

  • Fixes #357 - Trashed documents were showing up in folder listings but not in search results
  • Added trashed = false filter 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 = false to the query string in getOptions() 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

cv avatar Aug 22 '25 17:08 cv