-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Extract large route namespace blocks to separate files #23914
Conversation
9b801db
to
860b109
Compare
This pull request has merge conflicts that must be resolved before it can be merged. |
860b109
to
4734f72
Compare
This pull request has resolved merge conflicts and is ready for review. |
83ac132
to
64647ca
Compare
64647ca
to
b06d39a
Compare
This pull request has merge conflicts that must be resolved before it can be merged. |
b06d39a
to
219a988
Compare
This pull request has resolved merge conflicts and is ready for review. |
219a988
to
57c16ce
Compare
This pull request has merge conflicts that must be resolved before it can be merged. |
57c16ce
to
7ef576b
Compare
This pull request has resolved merge conflicts and is ready for review. |
6f3d011
to
88f6841
Compare
f4ab014
to
74b2ab3
Compare
This pull request has merge conflicts that must be resolved before it can be merged. |
74b2ab3
to
6d65147
Compare
This pull request has resolved merge conflicts and is ready for review. |
8c47b67
to
a630485
Compare
This pull request has merge conflicts that must be resolved before it can be merged. |
Uses the rails `draw` method to move the three namespaces from the routes file which were over 50 LOC into their own separate files. Includes: - API (~275 LOC) - Admin (~200 LOC) - Settings (~60 LOC) The route generation should remain exactly the same since all the `draw` usage is in the exact spot the routes were pulled out from in the main routes.rb file.
a630485
to
b28d04c
Compare
This pull request has resolved merge conflicts and is ready for review. |
Uses the rails
draw
method to move the three namespaces from the routes file which were over 50 LOC into their own separate files.Includes:
The route generation should remain exactly the same since all the
draw
usage is in the exact spot the routes were pulled out from in the main routes.rb file.Opening as draft for discussion -- I generally dislike this method, and even the rails documentation about the feature -- https://guides.rubyonrails.org/routing.html#breaking-up-very-large-route-file-into-multiple-small-ones -- strongly disourages use in all except the largest routes files ... but I think this one might quality, hence the PR.
I tried to poke around previous PRs and discussion on github and couldn't find discussion on this approach specifically ... so apologies if there is something I missed there.