Skip to content

Raise on pipe_through if route or scope previously defined in scope#6720

Open
wondr-wclabs wants to merge 2 commits into
phoenixframework:mainfrom
wondr-wclabs:fix-pipe-through-order
Open

Raise on pipe_through if route or scope previously defined in scope#6720
wondr-wclabs wants to merge 2 commits into
phoenixframework:mainfrom
wondr-wclabs:fix-pipe-through-order

Conversation

@wondr-wclabs

Copy link
Copy Markdown

Fixes #6139. This ensures pipe_through must be placed before any routes or sub-scopes within a scope block, preventing confusing behavior where a pipeline is only applied to routes declared after it in the same scope.

@SteffenDE

Copy link
Copy Markdown
Member

This would be a breaking chance, so it should warm about being deprecated. Also, it’s only about routes, not scopes.

@SteffenDE

Copy link
Copy Markdown
Member

Also, remove unrelated commits please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pipe_through pipeline should always be first in scope

2 participants