Geo - Support Parameterized Routing for Replication
What/Why
Follow up for !30890 (comment 337811884)
We introduced a new routing paradigm for Geo Replication in the above MR:
proposal | routes |
---|---|
New Redirect |
admin/geo/replication => admin/geo/replication/projects
|
New Route | admin/geo/replication/projects |
New Route | admin/geo/replication/uploads |
New Route | admin/geo/replication/designs |
However, these routes are "hard-coded" and any new replicable items will need to be manually added. This will need to be changed to assist with fully supporting Geo Self Service.
Currently in the api we are already supporting a param called :replicable_name
. It would be nice to use this here too.
Proposal
- Replace the routing above with a parameterized route. Ex:
admin/geo/replication/:replicable_name
- Require 0 additional code to support a route once a new replicable type is added via Self Service
- future consideration: Auto populate the nav with new replicable type when added via Self-Service => #219315 (closed)
Edited by Zack Cuddy