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

URLからuser_data消す #4412

Open
wants to merge 2 commits into
base: 4.0
Choose a base branch
from
Open

URLからuser_data消す #4412

wants to merge 2 commits into from

Conversation

tao-s
Copy link
Contributor

@tao-s tao-s commented Dec 12, 2019

概要(Overview・Refs Issue)

ref: #4411
コンテンツ管理からページ作った時にuser_data消す

実装に関する補足(Appendix)

annotationだとroutingのmatchの優先順位が設定できないので、routes.ymlの最後に記述した。
他でmatchしなかったらチェックする感じ。

懸念事項

プラグインがrouteを追加する場合、該当のURLが既にページ管理から作成されているURLと競合した場合に問題起きそう。
/faqとかありそう

テスト(Test)

shoppingなど既に存在しているURLは作成不可なのは確認しました。

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

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

レビュワー確認項目

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

@chihiro-adachi chihiro-adachi added this to the 4.0.x milestone Dec 23, 2019
@chihiro-adachi chihiro-adachi added the enhancement 機能追加 label Dec 26, 2019
@okazy
Copy link
Contributor

okazy commented Mar 3, 2020

公式ドキュメントにannotations, YAML以外からルーティングをロードする方法が紹介されていました。
https://symfony.com/doc/3.4/routing/custom_route_loader.html#creating-a-custom-loader
こちら使えないでしょうか。

Copy link
Contributor

@genzouw genzouw left a comment

Choose a reason for hiding this comment

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

コメントを追記しました。

@@ -1,7 +1,7 @@
parameters:
# EC-CUBE default env parameters
env(ECCUBE_ADMIN_ROUTE): 'admin'
env(ECCUBE_USER_DATA_ROUTE): 'user_data'
env(ECCUBE_USER_DATA_ROUTE): ''
Copy link
Contributor

Choose a reason for hiding this comment

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

デフォルト値を変更した場合、既存のサイトへの影響があるため
こちらは変更しないでおきたいです。

@chihiro-adachi chihiro-adachi modified the milestones: 4.0.x, 4.x Apr 19, 2022
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.

None yet

4 participants