Repository navigation
Commit 73c509f
committed
fix(mcp): report an unreadable count as an error, not an empty project
The store change alone does not close DeusData#2012. handle_index_status reads
the counts directly and renders status as `nodes > 0 ? "ready" : "empty"`,
so a negative count from a failed read still answered "empty" — now with
a bare -1 printed as the count, and with no hint at all, because the
"Project is empty" branch is guarded on `nodes == 0`.
The guard cited earlier lives in build_index_success_response, which is
index_repository's response builder, not this path.
Treat a negative node or edge count as a failed read: report status
"error", suppress the negative numbers rather than emitting them as
counts, and replace the re-index hint with one that names the table that
could not be read.
Closes DeusData#2012
Signed-off-by: kavish-19 <[email protected]>1 parent 99c3bb4 commit 73c509f
2 files changed
Lines changed: 82 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6668 | 6668 | | |
6669 | 6669 | | |
6670 | 6670 | | |
| 6671 | + | |
| 6672 | + | |
| 6673 | + | |
| 6674 | + | |
| 6675 | + | |
| 6676 | + | |
6671 | 6677 | | |
6672 | | - | |
6673 | | - | |
6674 | | - | |
| 6678 | + | |
| 6679 | + | |
| 6680 | + | |
| 6681 | + | |
6675 | 6682 | | |
6676 | 6683 | | |
6677 | 6684 | | |
| |||
6688 | 6695 | | |
6689 | 6696 | | |
6690 | 6697 | | |
6691 | | - | |
| 6698 | + | |
| 6699 | + | |
| 6700 | + | |
| 6701 | + | |
| 6702 | + | |
| 6703 | + | |
| 6704 | + | |
| 6705 | + | |
| 6706 | + | |
| 6707 | + | |
| 6708 | + | |
| 6709 | + | |
| 6710 | + | |
| 6711 | + | |
6692 | 6712 | | |
6693 | 6713 | | |
6694 | 6714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3384 | 3384 | | |
3385 | 3385 | | |
3386 | 3386 | | |
| 3387 | + | |
| 3388 | + | |
| 3389 | + | |
| 3390 | + | |
| 3391 | + | |
| 3392 | + | |
| 3393 | + | |
| 3394 | + | |
| 3395 | + | |
| 3396 | + | |
| 3397 | + | |
| 3398 | + | |
| 3399 | + | |
| 3400 | + | |
| 3401 | + | |
| 3402 | + | |
| 3403 | + | |
| 3404 | + | |
| 3405 | + | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
| 3410 | + | |
| 3411 | + | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
| 3420 | + | |
| 3421 | + | |
| 3422 | + | |
| 3423 | + | |
| 3424 | + | |
| 3425 | + | |
| 3426 | + | |
| 3427 | + | |
| 3428 | + | |
| 3429 | + | |
| 3430 | + | |
| 3431 | + | |
| 3432 | + | |
| 3433 | + | |
| 3434 | + | |
| 3435 | + | |
| 3436 | + | |
| 3437 | + | |
| 3438 | + | |
| 3439 | + | |
| 3440 | + | |
| 3441 | + | |
| 3442 | + | |
| 3443 | + | |
3387 | 3444 | | |
3388 | 3445 | | |
3389 | 3446 | | |
| |||
19827 | 19884 | | |
19828 | 19885 | | |
19829 | 19886 | | |
| 19887 | + | |
19830 | 19888 | | |
19831 | 19889 | | |
19832 | 19890 | | |
| |||
0 commit comments