Improved prefix support for verified routes
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 42/100
調査の方向性
Start at Phoenix.VerifiedRoutes and trace how the existing path_prefixes option is parsed and applied to ~p routes. Define the route-dependent behavior for :locale prefixes, including coexistence with unprefixed routes and multiple prefixes, then verify the implementation against the proposed syntax.
索引モデルが issue の本文から書いたものです。
説明
use Phoenix.VerifiedRoutes currently supports path_prefixes: [{Gettext, :get_locale, []}] as an option. This is quite limiting though, because it's a static prefix set per module (per use call). ~p"/somewhere" implicitly gets the prefix applied based on context alone.
Often prefixes also happen to be mixed in with non prefixed routes in templates (e.g. in the app layout) and the need for distinct modules makes this confusing.
I'm proposing changing the option to path_prefixes: %{"locale" => {Gettext, :get_locale, []}}, which makes applying the prefix depend on the route provided like so: ~p"/:locale/somewhere". This clearly indicates the use of a prefix, while allowing for multiple prefixes as well as no prefix to coexist.
- 主要言語
- Elixir
- スター
- 23.2k
- フォーク
- 3.2k
- 平均マージ
- 22時間 45分
- マージ済み PR(30日)
- 21
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
phoenixframework/phoenix のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 56/100
phoenixframework/phoenix#6898 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
~p treats routes as static when they only start with a static directory name対応中かも @mandar1045 が 6 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
phoenixframework/phoenix#6895 ·
メンテナーはふだん 1 日以内に返信
-
Connection: close header not sent before closing HTTP 1.1 connection when a controller raises an exception対応中かも @javiergarea が 35 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
phoenixframework/phoenix#6859 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
phoenixframework/phoenix#6853 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
LongPoll session tokens are not bound to the mount path or socket handler対応中かも @SteffenDE が 80 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
phoenixframework/phoenix#6791 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
phoenixframework/phoenix の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
semaphoreio/semaphore#1391 ·
メンテナーはふだん 1 日以内に返信
-
agent-ready area:skills
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
jmbarzee/temporal-architect#588 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
intellij-elixir/intellij-elixir#4659 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
getsentry/sentry-elixir#1259 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信