generalbots/src/drive/drive_monitor
Rodrigo Rodriguez (Pragmatismo) 7a1ec157f1
All checks were successful
BotServer CI/CD / build (push) Successful in 3m23s
Fix KB indexing: upsert kb_collections, consistent collection names, preserve indexed flag
- Bug 1: check_gbkb_changes now preserves indexed=true from previous
  state when etag matches, preventing redundant re-indexing every cycle
- Bug 2: USE KB fallback uses bot_id_short (8 chars) instead of random
  UUID, matching the collection name convention used by DriveMonitor
- Bug 3: handle_gbkb_change now upserts into kb_collections table after
  successful indexing, so USE KB can find the collection at runtime
- Changed ON CONFLICT DO NOTHING to DO UPDATE for kb_collections inserts
- Changed process_gbkb_folder return type to Result<IndexingResult>
2026-04-11 21:26:02 -03:00
..
mod.rs Fix KB indexing: upsert kb_collections, consistent collection names, preserve indexed flag 2026-04-11 21:26:02 -03:00