fix(api): initialize recurring_interval_count in the admin price fixture #518
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/checks-workflow-443da76c"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The BUNYIP-517 test helper in
bunyip-api/src/handlers/admin.rsbuilt aStripePriceResponseliteral while, on a parallel branch, the dunite-stripe bump added therecurring_interval_countfield to that shared DTO. Both merged cleanly on their own, somainbroke on a semantic conflict:cargo test --workspace --all-targetsfails witherror[E0063]: missing field recurring_interval_count in initializer of bunyip_domain::models::StripePriceResponse(check.yml run #3005 at443da76c). The sibling fixture inhandlers/pricing.rshad already been updated, so only this one site was stale.Add the field to the fixture with
Some(1), matching the monthly price the helper already describes and the value the pricing.rs fixture uses. Test-only change; no production behaviour moves. Every remaining struct-literal site of the DTO (pricing.rs:522, admin.rs:3547) now initializes it, and rustc's E0063 is itself the mechanical guard against a third site regressing.#BUNYIP-522
Closing as redundant: the identical fix already landed on main via PR #514 (BUNYIP-516, merge
c099489), which carriedrecurring_interval_count: Some(1)in this samehandlers/admin.rsprice fixture. main already compiles its tests (the E0063 is resolved), and this branch's only change is the same one line, which is why it now shows a duplicate-change conflict. Nothing left to merge.Pull request closed