Skip to content

fix: receipt_id の品目化を支出に限定 - #69

Merged
Ries630 merged 1 commit into
mainfrom
fix/issue-37-income-receipt-id
Sep 2, 2026
Merged

Ries630 merged 1 commit into
mainfrom
fix/issue-37-income-receipt-id

Conversation

@Ries630

@Ries630 Ries630 commented Sep 2, 2026

Copy link
Copy Markdown
Owner

概要

Issue #37 で収入 60 件にも receipt_id を後付けしたが、品目入力と receipt_id の効果を確認できているのは支出だけだった。支出 1,080 件の計画値を維持し、収入だけを安全に receipt_id = 0 へ戻せるようにする。

変更

  • --apply と canary の対象を支出だけに限定
  • --rollback-income を追加し、当初の固定計画から収入だけを復元
  • 各 PUT 後に全列を再取得し、receipt_id 以外の変化があれば中断
  • ADR-0030 を ADR-0035 で置換し、今後の移行時は支出の商品名・品目名を name に保存するときだけ採番
  • 運用手順と AGENTS.md の現在の判断を更新

検証

  • bun run check
  • 16 test files / 237 tests passed
  • format、lint、3 系統の typecheck、Worker・PWA build passed

マージ後

main で --rollback-income を実行して収入 60 件だけを戻し、同期後の本番 D1 で独自採番域が payment 1,080 件だけであることを確認する。実データ補正が完了するまで Issue #37 は閉じない。

Refs #37

🤖 Generated with Codex

収入60件だけを安全に復元するコマンドを追加し、支出の計画値を維持する。更新直後は全列を再取得し、receipt_id 以外の変化を検出する。

ADR-0030をADR-0035で置換し、今後は支出の品名をnameへ移行するときだけreceipt_idを採番する。

Assisted-By: OpenAI Codex 🤖
@Ries630 Ries630 added the enhancement New feature or request label Sep 2, 2026
@Ries630 Ries630 self-assigned this Sep 2, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-02T04:43:15.429355Z bac7f61 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Ries630
Ries630 merged commit c940e9e into main Sep 2, 2026
1 check passed
@Ries630
Ries630 deleted the fix/issue-37-income-receipt-id branch September 2, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant