-
Notifications
You must be signed in to change notification settings - Fork 94
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
Refactor admin/*
routing logic from LeftAndMain
into its own abstract class
#1761
Closed
7 tasks done
Comments
Unfortunately most classes that subclass |
This was referenced Oct 14, 2024
Merged
Merged
Merged
Merged
Merged
Merged
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We often subclass
LeftAndMain
just to get controllers routed in the admin section, and then hide them because they're not actually left and main sections.We should instead have an abstract controller class we can use as the superclass for those which doesn't include all of the complexity of
LeftAndMain
.Related
Notes
AdminController
for now, as it's less likely to be confused withAdminRootController
.Acceptance criteria
AdminRouteController
class is createdAdminRootController
checks for (non-abstract) subclasses of the new class instead of subclasses ofLeftAndMain
to set up routing rulesLeftAndMain
to the new class (see this comment for recommendations about this)LeftAndMain
subclasses the new classLeftAndMain
but only needs the routing and permissions logic is made to subclass the new class instead.LeftAndMain
is made a subclass of the new class instead./admin/
routePRs
kitchen sink run
Compare with CI run in silverstripe/recipe-kitchen-sink
The text was updated successfully, but these errors were encountered: