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

[TEMP] 管理者はメンテナンスモードを回避可能に変更 #4966

Closed
wants to merge 3 commits into from

Conversation

izayoi256
Copy link
Contributor

@izayoi256 izayoi256 commented Mar 16, 2021

概要(Overview・Refs Issue)

#4961 を参考までに実装

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

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

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか

新機能追加に伴う競合確認

  • プラグインとの競合がないか
  • プラグインからのマイグレーションが必要か

@izayoi256 izayoi256 changed the title 管理者はメンテナンスモードを回避可能に変更 [TEMP] 管理者はメンテナンスモードを回避可能に変更 Mar 16, 2021
@okazy okazy added the enhancement 機能追加 label Mar 16, 2021
@okazy okazy added this to the 4.1 milestone Mar 16, 2021
@chihiro-adachi
Copy link
Contributor

@izayoi256
ありがとうございます。メンテナンス中のアラートがでるのいいですね。

image

@chihiro-adachi
Copy link
Contributor

メンテナンス管理からの動作は確認しました。
#4960 の記載通り動作しています。

プラグインインストール時の動作を確認していきます。

Copy link
Contributor

@okazy okazy left a comment

Choose a reason for hiding this comment

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

管理画面ログアウト時の挙動が変わっています。
今まではログアウト後にログイン画面に遷移していましたが、フロント画面のロップページに遷移するようになっています。

E2Eテストの以下のところで落ちてしまいます。

$I->see('ログイン', '#form1 > button');

特に理由がなければ遷移先は変えたくありません。

app/config/eccube/packages/security.yaml Outdated Show resolved Hide resolved
@matsuoshi
Copy link
Contributor

既存のメンテナンスプラグインをインストール・有効化した状態で動作させてみましたが、特に問題はありませんでした

*/
public function switchMaintenance($isEnable = false, $mode = self::AUTO_MAINTENANCE)
public function switchMaintenance($isEnable = false, $mode = self::AUTO_MAINTENANCE, bool $force = false): void
Copy link
Contributor

@nanasess nanasess Apr 13, 2021

Choose a reason for hiding this comment

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

public メソッドの互換性維持のため、 既存メソッドに対する返り値の型指定追加は避けた方が良いと思われます

Suggested change
public function switchMaintenance($isEnable = false, $mode = self::AUTO_MAINTENANCE, bool $force = false): void
public function switchMaintenance($isEnable = false, $mode = self::AUTO_MAINTENANCE, bool $force = false)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

修正してpushしました。

@okazy
Copy link
Contributor

okazy commented Apr 19, 2021

対応ありがとうございます!
画面遷移に関わる変更なので、E2Eテストも実装しておきたいと思いました。

@izayoi256
Copy link
Contributor Author

izayoi256 commented Apr 21, 2021

@okazy

案件が入り、立て込んでしまっているため、E2Eテストの着手までしばらくかかりそうです。

@chihiro-adachi chihiro-adachi modified the milestones: 4.1, 4.1.x Sep 3, 2021
@chihiro-adachi chihiro-adachi changed the base branch from 4.1-feature to 4.1 September 6, 2021 05:19
@matsuoshi matsuoshi added this to Doing in 4.1.1 Nov 12, 2021
@matsuoshi matsuoshi moved this from Doing to To Do in 4.1.1 Nov 12, 2021
@matsuoshi matsuoshi moved this from To Do to no status in 4.1.1 Nov 15, 2021
@matsuoshi matsuoshi modified the milestones: 4.1.x, 4.1.1 Nov 15, 2021
@matsuoshi matsuoshi moved this from no status to To Do in 4.1.1 Nov 15, 2021
@matsuoshi matsuoshi moved this from To Do to Doing in 4.1.1 Nov 22, 2021
@matsuoshi matsuoshi self-assigned this Nov 22, 2021
@chihiro-adachi
Copy link
Contributor

@izayoi256

#5123 のPRを取り込ませていただきました。
ご対応ありがとうございました。

@chihiro-adachi chihiro-adachi modified the milestones: 4.1.x, 4.1.2 Jan 27, 2022
@izayoi256 izayoi256 deleted the feature/traverse-maintenance branch January 31, 2022 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 機能追加
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants