summaryrefslogtreecommitdiff
path: root/lib/constraints
Commit message (Collapse)AuthorAgeFilesLines
* Initial setup GraphQL using graphql-ruby 1.8Bob Van Landuyt2018-06-061-0/+13
| | | | | | | | | - All definitions have been replaced by classes: http://graphql-ruby.org/schema/class_based_api.html - Authorization & Presentation have been refactored to work in the class based system - Loaders have been replaced by resolvers - Times are now coersed as ISO 8601
* [CE] Add Naming/FileName rule checking expected class/module per filenameGabriel Mazetto2018-03-083-19/+25
|
* Validate User username only on Namespace, and bubble up appropriatelyDouwe Maan2018-02-061-1/+1
|
* Reallow project paths ending in periodsdm-reallow-project-path-ending-in-periodDouwe Maan2017-11-063-3/+3
|
* Enable Layout/TrailingWhitespace cop and auto-correct offensesRobert Speicher2017-08-151-1/+1
|
* Explain why we use select all for project_url_constrainer.rbDmitriy Zaporozhets2017-08-091-0/+2
|
* Revert "Remove changes that are not absolutely necessary"Douwe Maan2017-05-243-5/+9
| | | This reverts commit b0498c176fa134761d899c9b369be12f1ca789c5
* Remove changes that are not absolutely necessarydm-fix-routesDouwe Maan2017-05-233-9/+5
|
* Fix ambiguous routing issues by teaching router about reserved wordsDouwe Maan2017-05-233-6/+10
|
* Redirect from redirect routes to canonical routesMichael Kozono2017-05-053-3/+3
|
* Minor style adjustmentsBob Van Landuyt2017-05-011-3/+1
|
* The dynamic path validator can block out partial pathsBob Van Landuyt2017-05-012-2/+2
| | | | So we can block `objects` only when it is contained in `info/lfs` or `gitlab-lfs`
* Rename `NamespaceValidator` to `DynamicPathValidator`Bob Van Landuyt2017-05-012-2/+2
| | | | This reflects better that it validates paths instead of a namespace model
* Use the namespace validator for validating all pathsBob Van Landuyt2017-05-011-1/+1
| | | | | Since the namespacevalidator now knows the difference between a top-level and another path, this could all be handled there.
* Streamline the path validation in groups & projectsBob Van Landuyt2017-05-011-9/+1
| | | | | | | | | | | | `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.
* replace `find_with_namespace` with `find_by_full_path`Adam Pahlevi2017-02-031-1/+1
| | | | add complete changelog for !8949
* Add nested groups support on data leveldz-nested-groupsDmitriy Zaporozhets2016-12-081-1/+1
| | | | | | | | * 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/+25
| | | | 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-32/+39
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add relative url support to routing contrainersDmitriy Zaporozhets2016-10-241-1/+12
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Make user constrainer lookup same as controller and add more constrainer testsDmitriy Zaporozhets2016-10-061-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Change user & group landing page routing from /u/:name & /groups/:name to /:nameDmitriy Zaporozhets2016-10-063-0/+27
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>