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

feat:管理画面へメンテナンスモードを通知する #6026

Merged

Conversation

dotani1111
Copy link
Contributor

@dotani1111 dotani1111 commented Aug 1, 2023

概要(Overview・Refs Issue)

管理画面からメンテナンスモードか分かるようにしました。

関連Issue
メンテナンスモードであることを管理画面ですぐに確認できる #4271

方針(Policy)

「管理画面URLは、セキュリティのため推測されにくいものを設定してください」の実装を参考
(Controller側では判定のみ、templateで出し分けしている)

実装に関する補足(Appendix)

テスト(Test)

日本語ver
スクリーンショット 2023-08-01 17 25 02

英語ver
スクリーンショット 2023-08-01 17 27 13

相談(Discussion)

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

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

レビュワー確認項目

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

ji-eunsoo
ji-eunsoo previously approved these changes Aug 2, 2023
Copy link
Contributor

@kiy0taka kiy0taka left a comment

Choose a reason for hiding this comment

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

Issueにあるように、プラグイン操作しているときに自動的にメンテナンスモードになり、気づかずに放置してしまうので、トップページだけではなくどの管理画面でも表示できるようにした方が良いかと思います。

@dotani1111
Copy link
Contributor Author

@kiy0taka
ありがとうございます、そちらの仕様で再度コミット致します。

@codecov-commenter
Copy link

codecov-commenter commented Aug 20, 2023

Codecov Report

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

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more.

@@             Coverage Diff              @@
##                4.2    #6026      +/-   ##
============================================
- 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.47% <100.00%> (+<0.01%) ⬆️
Unit 79.74% <100.00%> (+<0.01%) ⬆️

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

Files Changed Coverage Δ
...rc/Eccube/EventListener/TwigInitializeListener.php 92.63% <100.00%> (+0.07%) ⬆️

... and 2 files with indirect coverage changes

@dotani1111 dotani1111 force-pushed the features/feat_maintenance_mode_in_admin branch from 33a2365 to 311768c Compare September 4, 2023 04:21
@dotani1111 dotani1111 force-pushed the features/feat_maintenance_mode_in_admin branch from 311768c to 5d0424d Compare September 4, 2023 04:26
@dotani1111 dotani1111 self-assigned this Oct 1, 2023
@dotani1111 dotani1111 added the improvement 機能改善 label Nov 27, 2023
@dotani1111 dotani1111 added this to the 4.2.x milestone Nov 27, 2023
@shinya
Copy link
Contributor

shinya commented Dec 11, 2023

動作確認で問題無ければ、次回VersionUP時に取り込む予定

@dotani1111 dotani1111 modified the milestones: 4.2.x, 4.3.0 Jan 17, 2024
@ji-eunsoo ji-eunsoo merged commit a292087 into EC-CUBE:4.3 Jan 24, 2024
@dotani1111 dotani1111 deleted the features/feat_maintenance_mode_in_admin branch May 22, 2024 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement 機能改善
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants