Skip to content

重複して在庫が登録されてしまう問題に対処 - #6029

Merged
dotani1111 merged 14 commits into
EC-CUBE:4.2from
shinya:issue_6028/duplicate_stock
Oct 2, 2023
Merged

dotani1111 merged 14 commits into
EC-CUBE:4.2from
shinya:issue_6028/duplicate_stock

Conversation

@shinya

@shinya shinya commented Aug 4, 2023

Copy link
Copy Markdown
Contributor

概要(Overview・Refs Issue)

#6028 でissueが上がっていた在庫情報が重複して登録されてしまい、
在庫情報がズレてしまう問題に対処。

方針(Policy)

バグの対処のみの変更

実装に関する補足(Appendix)

テスト(Test)

相談(Discussion)

マイナーバージョン互換性保持のための制限事項チェックリスト

  • 既存機能の仕様変更はありません
  • フックポイントの呼び出しタイミングの変更はありません
  • フックポイントのパラメータの削除・データ型の変更はありません
  • twigファイルに渡しているパラメータの削除・データ型の変更はありません
  • Serviceクラスの公開関数の、引数の削除・データ型の変更はありません
  • 入出力ファイル(CSVなど)のフォーマット変更はありません

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか
    • 権限を超えた操作が可能にならないか
    • 不要なファイルアップロードがないか
    • 外部へ公開されるファイルや機能の追加ではないか
    • テンプレートでのエスケープ漏れがないか

@shinya

shinya commented Aug 4, 2023

Copy link
Copy Markdown
Contributor Author

テスト結果を後ほど追記します。

@shinya shinya added the bug label Aug 4, 2023
@shinya shinya added this to the 4.2.3 milestone Aug 4, 2023
@codecov-commenter

codecov-commenter commented Aug 7, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.56%. Comparing base (1a39672) to head (2fc2b81).
Report is 113 commits behind head on 4.2.

Additional details and impacted files
@@             Coverage Diff              @@
##                4.2    #6029      +/-   ##
============================================
- Coverage     82.56%   82.56%   -0.01%     
  Complexity     6425     6425              
============================================
  Files           475      475              
  Lines         25855    25860       +5     
============================================
+ Hits          21347    21351       +4     
- Misses         4508     4509       +1     
Flag Coverage Δ
E2E 69.53% <100.00%> (+0.06%) ⬆️
Unit 79.74% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dotani1111

Copy link
Copy Markdown
Contributor

@shinya
DBに値が二つ登録されていない事が確認できるような、テストコードを追加お願い致します。

@dotani1111

dotani1111 commented Sep 21, 2023

Copy link
Copy Markdown
Contributor

追加したテストが落ちていますね。。
どうやらDBに新規でデータを投入する場合では、Productから取得しているstockがズレているようです。

@nanasess nanasess left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

何故この改修で改善できるかを実装の補足へ記載していただくと、後々なぜこんな修正入れたんだっけ?となった時に助かるかと思います

Comment thread codeception/acceptance/EA03ProductCest.php Outdated
Comment thread codeception/acceptance/EA03ProductCest.php Outdated
Comment thread codeception/acceptance/EA03ProductCest.php
@chihiro-adachi

Copy link
Copy Markdown
Contributor

@dotani1111
テスト仕様書の方にもテスト追加お願いします。
https://github.com/EC-CUBE/eccube-specification/tree/4.2/IntegrationTest

Comment thread codeception/acceptance/EA03ProductCest.php
@dotani1111

Copy link
Copy Markdown
Contributor

テスト仕様書に追加しました。
EC-CUBE/eccube-specification#112

Comment thread app/DoctrineMigrations/Version20230928014611.php
Comment thread app/DoctrineMigrations/Version20230928014611.php Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants