Repository navigation
Commit e81a44f
fix(objectql): the unserved single knowledge_source warning says the item is not loaded (#38167)
Fixes #38063
## 维护者速读
- 用户能看到什么变化:只有一个知识源条目、又没挂知识服务的部署,启动警告原先说"它已加载、已索引、可搜索",现在如实说"未加载"。
- 为什么做:该句与事实相反,会让人误以为知识源在工作。
- 出错会怎样:只是一行日志文字,可直接撤回。
- 要你做什么:无。
## What changes
`describeUnservedKnowledgeSources` rendered `it is loaded, indexed or
searched` for exactly one item; it now renders `it is not loaded,
indexed or searched`. The plural `none is` arm is unchanged. A patch
changeset for `@objectstack/objectql` is included.
Clause-②: no
Metadata-protocol: none
## Tests
- `packages/objectql/src/knowledge-source-unserved.test.ts`: the
singular pin is the negated text, plus `not.toContain('it is loaded')`.
- Red on the old source: 1 failed | 6 passed (expected the line to
contain 'it is not loaded, indexed or searched').
- Green on the fix: 7 passed (7); `pnpm --filter @objectstack/objectql
typecheck` exit 0, both under `os-verify-lock.sh` (VERDICT command-exit
0).
## Acceptance notes
No other test, doc or fixture quotes the old singular sentence (`git
grep "it is loaded, indexed"` hit only the test pin).
## Verification
`pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2
src/knowledge-source-unserved.test.ts` expects 7 passed.
---
_Generated by [Claude
Code](https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent 5253e16 commit e81a44f
3 files changed
Lines changed: 13 additions & 2 deletions
File tree
- .changeset
- packages/objectql/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments