Repository navigation
fix(tauri): drop a routing comment that #2156 made untrue - #2169
Conversation
The comment above fetch_process_stats described #2154, where Process Stats was the only family routed through the dispatch boundary. #2156 routed the other raw archive families and removed it, but merging develop into that branch to resolve the squash conflict brought the hunk back, and it was merged. The functions above it do go through dispatch now.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: shm11C3/HardwareVisualizer/.coderabbit.yml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Limit details: You’ve used all 4 included reviews currently available. Your 61 included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour. 📝 WalkthroughWalkthroughThe change removes an outdated Process Stats routing comment from the archive history service. Process Stats functions and behavior remain unchanged. ChangesArchive History Cleanup
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~2 minutes Change: Other 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Rust Tauri Coverage ReportCoverage Details |
…patch (#2161) * feat(database): add the native backend dispatch boundary Adds one dispatch boundary in Core (`infrastructure::database::dispatch`) that answers every database consumer from whichever backend is durably selected, per #2134. The boundary holds a live `NativeDatabase` owner behind an `RwLock`, set only by explicit calls (`init` + `reobserve_authority`) rather than polled per call, so it never races `observe_authority`'s "no live owner" precondition and never goes stale between selections. App hands the boundary its `AuthorityPaths` and expected schema version once at startup, next to `db::init` in `src-tauri/src/lib.rs`, and asks it to observe whatever selection already exists on disk. With `duckdb-archive` disabled, every dispatch function is a direct, zero-overhead call into the existing SQLite function it fronts. Process Stats is the first family routed through the boundary, proving the not-selected, selected and mid-selection paths. The raw archive families, Cooling and Storage Health follow in stacked changes. * feat(database): route the raw archive families through dispatch Extends the #2134 dispatch boundary to DATA_ARCHIVE, GPU_DATA_ARCHIVE, Ambient and Fan, reusing the same boundary/DispatchError plumbing PR #2154 proved with Process Stats. Each family's insert, retention delete and bucketed series read now go through `dispatch::{data_archive, gpu_archive, ambient_archive, fan_archive}` instead of calling `infrastructure::database`/`archive_queries` directly. Cooling's six projections, both baselines, Storage Health and the cooling rollup persistence are not yet routed - tracked separately, per the issue's explicit allowance to say so rather than route silently to SQLite. * feat(database): route Cooling's projections and baselines through dispatch Extends the #2134 dispatch boundary to Cooling: the six rolled-up projections (daily, hourly, fan, thermal delta, both co-variate shapes), both baselines (absolute and ΔT) and the cooling rollup's own catch-up cursors and retention cleanup all go through `dispatch::cooling_*` instead of calling `infrastructure::database::cooling_*` directly. The rollup write keeps its single-transaction shape on both backends: `dispatch::cooling_rollup::persist_day_rollup` either runs the existing SQLite transaction (`persistence::cooling_rollup::persist_day_rollup_from_pool`, unchanged) or builds one `native_database::DayRollup` and writes it through one native transaction - never one projection at a time. Every `_from_pool`/`resolve_*_from_pool` helper that lost its last production caller (the "_from_pool split is for testability, not transactional consistency" pattern this repo already used) is marked `#[cfg(test)]` rather than deleted, since the differential test suites in `duckdb_cooling.rs` still exercise them directly against an in-memory SQLite pool. No src-tauri changes: `services/cooling_insight_service.rs` already calls through `hardviz_core::persistence::cooling_*`'s top-level functions and only needs their `Display` output, which `DispatchError` still provides. This closes out #2134's consumer list: Process Stats, the four raw archive families, Storage Health and now Cooling are all routed. * chore(tauri): leave archive_history_service.rs as it is on develop Replaying the pre-squash #2156 commit removed a stale comment that reached develop through an earlier merge. That fix is #2169's; keep this change to the eleven Cooling files.
Summary
Removes four comment lines above
fetch_process_statsinarchive_history_service.rs. They say Process Stats is the only family routed through the dispatch boundary and that the functions above still usearchive_queriesdirectly. That was true in #2154 and stopped being true in #2156, which routesDATA_ARCHIVE, GPU, Ambient and Fan and had deleted the comment.The comment came back when
developwas merged into the #2156 branch to resolve the conflict its squash-merged parent caused: git re-applied #2154's hunk because the branch side looked unchanged relative to the merge base. The verification at the time compared only the two conflicted files, so the resurrected hunk was missed and merged. No behavior change.Related Issues
Follow-up to #2156 (part of #2134).
Type of Change
fix/branch)feat/branch)refactor/branch)perf/branch)docs/branch)chore/branch)Screenshots / Videos
Not applicable.
Test Plan
core/srcandsrc-tauri/srcfor other stack-era remnants and found none that are untrue ondevelop.Checklist
Summary by CodeRabbit