Repository navigation
Commit 6cc55f3
fix: reset watermarks and all table hashes on admin reset-hashes (#49)
The previous implementation only reset body_hash in the issues table.
Without clearing watermarks (ETag + since), the poller skips repos with
no detected changes, so existing issues/releases/docs were never
re-embedded after a metadata index rebuild.
- src/store.ts: rename resetBodyHashes -> resetForReEmbed; also reset
release body_hash, delete all docs rows (blob_sha reset), and delete
all three watermark namespaces (issues, releases:{repo}, docs:{repo})
so the poller re-fetches from scratch on next cron run; return
structured summary {issueHashesReset, releaseHashesReset, docsDeleted,
watermarksDeleted} instead of a single count
- src/index.ts: update comment to describe full reset scope
- docs/0-requirements.md: update Admin API section with full reset
description and structured response schema
watermark を削除しないと ETag/since によるスキップが残り、既存 issue/release/doc が
再 embedding されないバグを修正。releases/docs のハッシュ・行も合わせてリセットする。
Refs #47
Co-authored-by: liplus-lin-lay <liplus-lin-lay@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f7472dc commit 6cc55f3
3 files changed
Lines changed: 69 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
205 | 211 | | |
206 | 212 | | |
207 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
208 | 223 | | |
209 | 224 | | |
210 | 225 | | |
| |||
237 | 252 | | |
238 | 253 | | |
239 | 254 | | |
240 | | - | |
| 255 | + | |
241 | 256 | | |
242 | 257 | | |
243 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
425 | 425 | | |
426 | 426 | | |
427 | | - | |
428 | | - | |
429 | | - | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
430 | 438 | | |
431 | | - | |
432 | | - | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
433 | 446 | | |
434 | 447 | | |
435 | 448 | | |
436 | | - | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
437 | 474 | | |
438 | 475 | | |
439 | 476 | | |
| |||
578 | 615 | | |
579 | 616 | | |
580 | 617 | | |
581 | | - | |
| 618 | + | |
582 | 619 | | |
583 | 620 | | |
584 | 621 | | |
585 | | - | |
586 | | - | |
| 622 | + | |
| 623 | + | |
587 | 624 | | |
588 | 625 | | |
589 | 626 | | |
| |||
0 commit comments