You are doing a Standards-axis code review of an uncommitted diff in the Rust repo at…
- User
You are doing a Standards-axis code review of an uncommitted diff in the Rust repo at
/Users/mseele/dev/sve/sve-backend.Fixed point: commit
1deb7d4(the merge-base / branch tip before the work). The diff is the working-tree changes against that commit. There are no commits yet — the work exists only as edits.Command to retrieve the full diff:
codegit diff 1deb7d4Run it from the repo root with
SQLX_OFFLINE=trueif you cargo anything.Per the implement/spec history, this refactor (GitHub issue #77 "Extract events::notifications into its own module to improve notification tests"):
- Splits
src/logic/events.rs(2351 LOC) intosrc/logic/events/mod.rs(remaining ~14 functions) andsrc/logic/events/notifications.rs(4 notification functions:send_event_email,send_event_reminders,send_payment_reminders,send_participation_confirmation+ thecreate_prebooking_linkhelper). - Updates call sites in
src/api.rsandsrc/logic/tasks.rstoevents::notifications::*. - Moves notification tests next to
notifications.rs. - Lifts the shared test helpers
mock_gateway_discardingandmock_gateway_timesfromevents.rs's test mod intosrc/test_utils.rsaspub(crate). - Adjusts
include_str!paths (one dir deeper).
Standards sources in this repo
AGENTS.mdat the repo root — the engineering standards file. Read it. It documents:- Import order:
std::, external crates,crate::(blank lines between groups). pub(crate)for crate-wide items. PascalCase types, snake_case fns, SCREAMING_SNAKE_CASE constants.anyhow::Result<T>,?,bail!,.context()for errors.i32for DB IDs,BigDecimalfor money,DateTime<Utc>for timestamps.- Compile-time checked SQLx queries;
QueryBuilderfor dynamic queries. - Inline
#[cfg(test)]modules; usepretty_assertions. - Structure: Logic in , models in , routes in , DB in .
- Import order:
- Splits
Assistant