summaryrefslogtreecommitdiff
path: root/spec/lib/constraints
Commit message (Collapse)AuthorAgeFilesLines
* Add frozen_string_literal to spec/lib (part 1)Thong Kuah2019-07-264-0/+8
| | | | | Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
* Fix git clone revealing private repo's presenceMark Chao2019-02-191-0/+4
| | | | | Ensure redirection to path with .git suffix regardless whether project exists or not.
* Pass on arguments passed to the FeatureConstrainerBob Van Landuyt2018-12-141-0/+11
| | | | | All arguments passed to the `FeatureConstrainer` will be passed on to the `Feature.enabled?` check.
* [CE] Add Naming/FileName rule checking expected class/module per filenameGabriel Mazetto2018-03-083-3/+3
|
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-021-1/+1
|
* Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable2017-07-273-3/+3
| | | | | | services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
* Redirect from redirect routes to canonical routesMichael Kozono2017-05-053-6/+68
|
* Streamline the path validation in groups & projectsBob Van Landuyt2017-05-011-0/+7
| | | | | | | | | | | | `Project` uses `ProjectPathValidator` which is now a `NamespaceValidator` that skips the format validation. That way we're sure we are using the same collection of reserved paths. I updated the path constraints to reflect the changes: We now allow some values that are only used on a top level namespace as a name for a nested group/project.
* Use Namespace#full_path instead of #path where appropriatedm-more-namespace-full-pathDouwe Maan2017-02-231-2/+2
|
* Use `:empty_project` where possible throughout spec/librs-empty_project-libRobert Speicher2017-01-251-1/+1
|
* Add nested groups support on data leveldz-nested-groupsDmitriy Zaporozhets2016-12-081-0/+7
| | | | | | | | * 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>
* Add nested groups support to the routingdz-allow-nested-group-routingDmitriy Zaporozhets2016-11-234-35/+58
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add small improvements to constrainers and specsDmitriy Zaporozhets2016-11-082-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Refactor routing constraintsDmitriy Zaporozhets2016-11-074-42/+42
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add relative url support to routing contrainersDmitriy Zaporozhets2016-10-241-0/+10
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Make user constrainer lookup same as controller and add more constrainer testsDmitriy Zaporozhets2016-10-063-1/+20
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Change user & group landing page routing from /u/:name & /groups/:name to /:nameDmitriy Zaporozhets2016-10-061-0/+26
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>