summaryrefslogtreecommitdiff
path: root/app/models/concerns/routable.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix `Routable.find_by_full_path` on MySQLfix-routable-find-by-full-path-on-mysqlSean McGivern2017-05-061-1/+1
|
* Redirect from redirect routes to canonical routesMichael Kozono2017-05-051-4/+20
|
* Cache Routable#full_path in RequestStore to reduce duplicate route loadssh-optimize-duplicate-routable-full-pathStan Hu2017-04-241-2/+13
| | | | | | | | | We see in #27387 that a call to `polymorphic_path` will cause duplicate SELECT route calls for each merge request in a milestone. This happens because calling `project.namespace.becomes(Namespace)` will instantiate a new instance of a Namespace for each merge request, which causes a N+1 query on the routes table. This change caches the state of the route by the specific class and ID, which dramatically eliminates duplicate work.
* use more explicit and explanatory sql statementAlexis Reigel2017-04-061-1/+3
|
* check all groups for 2fa requirementAlexis Reigel2017-04-061-4/+2
|
* add method to get a full routable hierarchyAlexis Reigel2017-04-061-0/+68
|
* Remove repeated routes.path check for postgresql databasemhasbini2017-03-181-4/+6
|
* Store group and project full name and full path in routes tabledz-refactor-full-pathDmitriy Zaporozhets2017-02-081-4/+62
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add User#nested_groups and User#nested_projects methodsDmitriy Zaporozhets2017-01-251-0/+15
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Rename Routable.where_paths_in to Routable.where_full_path_indz-nested-group-improvements-2Dmitriy Zaporozhets2016-12-111-3/+3
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Validate presence of route by Routable concernDmitriy Zaporozhets2016-12-111-0/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add nested groups support on data leveldz-nested-groupsDmitriy Zaporozhets2016-12-081-0/+70
* add parent_id field to namespaces table to store relation with nested groups * create routes table to keep information about full path of every group and project * project/group lookup by full path from routes table Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>