Feature/snapshot for index#78
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (22)
📝 WalkthroughWalkthroughRemoves the ChangesWorkspace Auto-Repair Pipeline
Sequence Diagram(s)sequenceDiagram
participant Caller
participant WorkspaceWatcher
participant WorkspaceIndexRepository
participant SnapshotManager
participant RepairEngine
participant VaultContext
Caller->>WorkspaceWatcher: on_change()
WorkspaceWatcher->>WorkspaceIndexRepository: rebuild_index()
WorkspaceIndexRepository-->>WorkspaceWatcher: new_index
WorkspaceWatcher->>SnapshotManager: previous()
SnapshotManager-->>WorkspaceWatcher: Option<&WorkspaceIndex>
alt previous snapshot exists
WorkspaceWatcher->>WorkspaceIndexRepository: detect_moves(old_index, new_index)
WorkspaceIndexRepository->>WorkspaceIndexRepository: IndexDiff::diff()
WorkspaceIndexRepository-->>WorkspaceWatcher: Vec<FileMove>
WorkspaceWatcher->>RepairEngine: apply_moves(moves)
RepairEngine->>VaultContext: resolve_note_path(from)
RepairEngine->>VaultContext: resolve_note_path(to)
RepairEngine->>VaultContext: invalidate_notes(from)
RepairEngine->>VaultContext: load_notes(to)
RepairEngine-->>WorkspaceWatcher: usize applied
end
WorkspaceWatcher->>SnapshotManager: update(new_index)
WorkspaceWatcher-->>Caller: FrilVaultResult<()>
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Add snapshot for index and Add repair engin for #47
Type of Change
Required
cargo checkpassescargo fmt --all --checkpassescargo clippy --workspace --all-targets -- -D warningspassescargo testpassesChecklist
Summary by CodeRabbit
New Features
Refactor