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.1beta3: パッケージに初期インストールプラグインを追加 #5103

Merged
merged 3 commits into from
Aug 13, 2021

Conversation

okazy
Copy link
Contributor

@okazy okazy commented Aug 12, 2021

概要(Overview・Refs Issue)

パッケージに初期インストールプラグインを追加しました。
4.1-beta3 のブランチにプルリクを出しています。

方針(Policy)

初期インストール対象は以下です。

  • おすすめ商品管理プラグイン
  • クーポンプラグイン
  • メルマガ管理プラグイン
  • 売上集計プラグイン
  • 関連商品プラグイン
  • セキュリティチェックプラグイン
  • 商品レビュー管理プラグイン
  • Web APIプラグイン
  • Site Kitプラグイン
  • Google Merchant Center 連携プラグイン

image

Site Kitプラグインと Google Merchant Center 連携プラグインは 4.1 対応がまだのためこのプルリクには含まれていません。

実装に関する補足(Appendix)

初期インストール対象のプラグインがまだオーナーズストアで公開されていないため、 package-api の接続先を package-api-41beta.ec-cube.net に変更しています。
検証キーなどでオーナーズストアとの連携のテストをする際は環境変数で設定を変更してテストをお願いします。

ECCUBE_PACKAGE_API_URL=https://package-api-c2.ec-cube.net

Webインストーラでのプラグイン有効化時にインストール処理がされていませんでしたので #5104 にプルリクを出しています。
テストは #5104 を取り込んだ状態で行なっています。

テスト(Test)

以下のパッケージにて正常にプラグインがインストールされることを確認しました。
https://github.com/okazy/ec-cube/releases/tag/4.1-testp3

相談(Discussion)

初めからプラグインが入っている状態にした影響でプラグイン関連の自動テストが落ちています。
ソースコードの変更はありませんので問題ないかと思いますが、何かいい方法があれば教えていください。

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

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

レビュワー確認項目

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

@okazy okazy added the enhancement 機能追加 label Aug 12, 2021
@okazy okazy added this to the 4.1 milestone Aug 12, 2021
@chihiro-adachi
Copy link
Contributor

@okazy
プラグインのインストールのテストが落ちているようですが確認できますか?

@codecov-commenter
Copy link

Codecov Report

Merging #5103 (6f1e0ba) into 4.1-beta3 (dba64e7) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##           4.1-beta3    #5103      +/-   ##
=============================================
- Coverage      68.08%   68.07%   -0.01%     
=============================================
  Files            457      457              
  Lines          24972    24972              
=============================================
- Hits           17002    17000       -2     
- Misses          7970     7972       +2     
Flag Coverage Δ
tests 68.07% <ø> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
src/Eccube/Service/PluginApiService.php 33.04% <0.00%> (-6.09%) ⬇️
...be/Service/PurchaseFlow/Processor/TaxProcessor.php 73.77% <0.00%> (+3.27%) ⬆️
src/Eccube/Exception/PluginApiException.php 85.71% <0.00%> (+21.42%) ⬆️

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 dba64e7...6f1e0ba. Read the comment docs.

@chihiro-adachi
Copy link
Contributor

@okazy
テスト通りましたのでマージします。

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.

3 participants