chore(server): improve ignored docs list & match (#12307)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **Bug Fixes**
	- Improved the accuracy of document matching by excluding ignored documents from search results.
- **Chores**
	- Updated internal handling of ignored document lists for better consistency and reliability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
darkskygit
2025-05-15 09:36:28 +00:00
parent 393458871d
commit 6224344a4f
5 changed files with 25 additions and 26 deletions
@@ -24,6 +24,10 @@ Generated by [AVA](https://avajs.dev).
'doc1',
]
> should not change if ignored doc exists
0
> should not add ignored doc again
[
@@ -34,7 +38,7 @@ Generated by [AVA](https://avajs.dev).
> should add new ignored doc
2
1
> should add ignored doc
@@ -74,7 +74,7 @@ test('should manage copilot workspace ignored docs', async t => {
workspace.id,
[docId]
);
t.is(count, 1, 'should not add ignored doc again');
t.snapshot(count, 'should not change if ignored doc exists');
const ret = await t.context.copilotWorkspace.listIgnoredDocs(workspace.id);
t.snapshot(cleanObject(ret), 'should not add ignored doc again');