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

[4.2] パスワード未入力時のエラーメッセージが重複するのを修正 #5467

Merged
merged 1 commit into from
Jul 22, 2022

Conversation

nanasess
Copy link
Contributor

概要(Overview・Refs Issue)

closes #5461
パスワード未入力時のエラーメッセージが重複するのを修正

方針(Policy)

  • RepeatedType には元々必須入力チェックが入っていた
  • second_options に NotBlank を設定することで対応

実装に関する補足(Appendix)

テスト(Test)

エラーメッセージが重複しないのを確認
image

相談(Discussion)

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

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

レビュワー確認項目

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

- RepeatedType には元々必須入力チェックが入っていた
- second_options に NotBlank を設定することで対応
@chihiro-adachi
Copy link
Contributor

@nanasess
ありがとうございます。
動作上は問題なさそうです。
テスト通りましたらマージします。

@codecov-commenter
Copy link

Codecov Report

Merging #5467 (fca448b) into 4.2 (34fd173) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                4.2    #5467      +/-   ##
============================================
- Coverage     77.50%   77.49%   -0.02%     
  Complexity     6247     6247              
============================================
  Files           468      468              
  Lines         21004    21004              
============================================
- Hits          16279    16276       -3     
- Misses         4725     4728       +3     
Flag Coverage Δ
E2E 49.48% <100.00%> (-0.02%) ⬇️
Unit 76.95% <100.00%> (-0.06%) ⬇️

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

Impacted Files Coverage Δ
src/Eccube/Form/Type/RepeatedPasswordType.php 84.21% <100.00%> (ø)
...be/Service/PurchaseFlow/Processor/TaxProcessor.php 75.43% <0.00%> (-3.51%) ⬇️
...ontroller/Admin/Product/ProductClassController.php 90.28% <0.00%> (-0.58%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 34fd173...fca448b. Read the comment docs.

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.

3 participants