mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 13:29:02 +08:00
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:
+5
-1
@@ -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
|
||||
|
||||
|
||||
BIN
Binary file not shown.
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user