Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 14 commits into from Oct 2, 2023

Conversation

shinya
Copy link
Contributor

@shinya shinya commented Aug 4, 2023

概要(Overview・Refs Issue)

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

方針(Policy)

バグの対処のみの変更

実装に関する補足(Appendix)

テスト(Test)

相談(Discussion)

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

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

レビュワー確認項目

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

@shinya
Copy link
Contributor Author

shinya commented Aug 4, 2023

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

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

codecov-commenter commented Aug 7, 2023

Codecov Report

Merging #6029 (5dbaaa0) into 4.2 (1a39672) will decrease coverage by 0.01%.
Report is 15 commits behind head on 4.2.
The diff coverage is 100.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@             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.05%) ⬆️
Unit 79.74% <100.00%> (+<0.01%) ⬆️

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

Files Coverage Δ
...ontroller/Admin/Product/ProductClassController.php 90.29% <100.00%> (+0.04%) ⬆️

... and 2 files with indirect coverage changes

@dotani1111
Copy link
Contributor

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

@dotani1111
Copy link
Contributor

dotani1111 commented Sep 21, 2023

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

Copy link
Contributor

@nanasess nanasess left a comment

Choose a reason for hiding this comment

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

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

codeception/acceptance/EA03ProductCest.php Outdated Show resolved Hide resolved
codeception/acceptance/EA03ProductCest.php Outdated Show resolved Hide resolved
codeception/acceptance/EA03ProductCest.php Show resolved Hide resolved
@chihiro-adachi
Copy link
Contributor

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

@dotani1111
Copy link
Contributor

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

@dotani1111 dotani1111 merged commit a56668d into EC-CUBE:4.2 Oct 2, 2023
194 checks passed
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.

None yet

7 participants