-
Notifications
You must be signed in to change notification settings - Fork 661
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] インストーラでのプラグイン有効化/無効化時にキャッシュ削除が失敗する場合があるのを修正 #5764
[4.2] インストーラでのプラグイン有効化/無効化時にキャッシュ削除が失敗する場合があるのを修正 #5764
Conversation
なんと |
/** | ||
* {@inheritdoc} | ||
*/ | ||
public static function getSubscribedEvents() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nanasess
このコントローラでの局所的な処理だと思うので、eventListenerで処理したほうがよいかなと思いました。
以下のような記述になります。
https://github.com/EC-CUBE/ProductImagesUploader/blob/4.2/Controller/Admin/ConfigController.php#L50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修正してみました
Codecov Report
@@ Coverage Diff @@
## 4.2 #5764 +/- ##
============================================
+ Coverage 78.84% 78.86% +0.01%
- Complexity 6273 6274 +1
============================================
Files 469 469
Lines 21058 21076 +18
============================================
+ Hits 16604 16621 +17
- Misses 4454 4455 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@nanasess 有効化/無効化を複数回繰り返し、システムエラーは発生しませんでした。 |
概要(Overview・Refs Issue)
fixes #5498
インストーラでのプラグイン有効化/無効化時にキャッシュ削除が失敗する場合があるのを修正
方針(Policy)
KernelEvents::TERMINATE
でキャッシュファイルを強制的に物理削除する実装に関する補足(Appendix)
テスト(Test)
#5498 の再現手順の事象が再現しなくなるのを確認
相談(Discussion)
インストーラのE2Eテストが Step2 までしか無い...
マイナーバージョン互換性保持のための制限事項チェックリスト
レビュワー確認項目