summaryrefslogtreecommitdiff
path: root/lib/constraints
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc43GitLab Bot2021-04-201-1/+1
|
* Add latest changes from gitlab-org/gitlab@13-7-stable-eev13.7.0-rc42GitLab Bot2020-12-172-1/+29
|
* Add latest changes from gitlab-org/gitlab@13-4-stable-eeGitLab Bot2020-09-191-0/+9
|
* Add latest changes from gitlab-org/gitlab@12-10-stable-eeGitLab Bot2020-04-151-0/+25
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-241-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-081-2/+7
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-071-7/+2
|
* Fix git clone revealing private repo's presenceMark Chao2019-02-191-1/+2
| | | | | Ensure redirection to path with .git suffix regardless whether project exists or not.
* Pass on arguments passed to the FeatureConstrainerBob Van Landuyt2018-12-141-4/+4
| | | | | All arguments passed to the `FeatureConstrainer` will be passed on to the `Feature.enabled?` check.
* Enable GraphQL API endpointPhil Hughes2018-12-131-4/+4
|
* Enable more frozen string in lib/**/*.rbgfyoung2018-10-064-0/+8
| | | | | | | | | | | | | Enables frozen for the following: * lib/*.rb * lib/banzai/**/*.rb * lib/bitbucket/**/*.rb * lib/constraints/**/*.rb * lib/container_registry/**/*.rb * lib/declarative_policy/**/*.rb Partially addresses #47424.
* 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>