summaryrefslogtreecommitdiff
path: root/spec/routing
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'bvl-rename-routes-after-user-rename' into 'master'Jan Provaznik2019-07-121-5/+4
|\ | | | | | | | | Set the name of a user-namespace to the user name See merge request gitlab-org/gitlab-ce!23272
| * Use namespace#path for building urls in specsBob Van Landuyt2019-07-091-5/+4
| | | | | | | | | | | | Some of the specs were using namespace names instead of paths for building URLS. This would fail since we now build a namespace with a user's name instead of a user's username.
* | Add routing spec for deploy_tokens controllerDmitriy Zaporozhets2019-07-101-0/+6
|/ | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove `:graphql` feature flagcharlie ablett2019-07-091-23/+0
| | | | | | | | - Remove `FeatureConstrainer` call wrapping api endpoint - Remove `Feature.enabled?(:graphql)` conditionals in back and frontend - Modify graphql test to be graphql flag agnostic - Remove api routing spec - Remove frontend feature flag via `gon`
* Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhqMarin Jankovski2019-07-032-2/+31
|\
| * Merge branch 'osw-persist-tmp-snippet-uploads' into 'master'Marin Jankovski2019-07-021-2/+11
| |\ | | | | | | | | | | | | Persist tmp snippet uploads at users See merge request gitlab/gitlabhq!3138
| | * Persist tmp snippet uploadsOswaldo Ferreira2019-06-171-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It persist temporary personal snippets under user/:id namespaces temporarily while creating a upload record to track it. If an user gets removed while it's still a tmp upload, it also gets removed. If the tmp upload is sent, the upload gets moved to personal_snippets/:id as before. The upload record also gets updated to the new model type as well.
| * | Merge branch 'security-prevent-detection-of-merge-request-template-name' ↵Marin Jankovski2019-07-021-0/+20
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | into 'master' Guests can know whether merge request template name exists or not See merge request gitlab/gitlabhq!3117
| | * | Authorize access before serving project templateLuke Duncalfe2019-06-111-0/+20
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, if a user was a guest member of a private project, they could access the merge request template as we were not checking permission-levels of the user. When a issue template is asked for, the user must have :read_issue for the project; or :read_merge_request when a merge request template is asked for. We also now rescue_from FileNotFoundError and handle as 404. This is because RepoTemplateFinder can raise a FileNotFoundError exception, which Rails previously handled as a 500. Handling these in a way that is consistent with ActiveRecord::RecordNotFound exceptions, within controllers that inherit from Projects::ApplicationController at least, and returning a 404. https://gitlab.com/gitlab-org/gitlab-ce/issues/54943
* | | Remove deprecated /u/:username routesdz-remove-deprecated-user-routesDmitriy Zaporozhets2019-06-261-23/+7
|/ / | | | | | | | | | | Also release `u` from TOP_LEVEL_ROUTES Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Remove deprecated group routesdz-remove-deprecated-group-routesDmitriy Zaporozhets2019-06-141-104/+9
|/ | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'dz-scope-project-routes-3' into 'master'Lin Jen-Shin2019-05-311-5/+14
|\ | | | | | | | | Move some project routes under - scope See merge request gitlab-org/gitlab-ce!28830
| * Move some project routes under - scopeDmitriy Zaporozhets2019-05-291-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Affected project routes are: * services * boards * releases * forks * group_links * import * avatar * labels * milestones Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Setup Phabricator importBob Van Landuyt2019-05-311-0/+12
|/ | | | | | | | | | | | | | | | | | | | | | This sets up all the basics for importing Phabricator tasks into GitLab issues. To import all tasks from a Phabricator instance into GitLab, we'll import all of them into a new project that will have its repository disabled. The import is hooked into a regular ProjectImport setup, but similar to the GitHub parallel importer takes care of all the imports itself. In this iteration, we're importing each page of tasks in a separate sidekiq job. The first thing we do when requesting a new page of tasks is schedule the next page to be imported. But to avoid deadlocks, we only allow a single job per worker type to run at the same time. For now we're only importing basic Issue information, this should be extended to richer information.
* Move some project routes under - scopedz-scope-project-routes-2Dmitriy Zaporozhets2019-05-261-1/+9
| | | | | | | | | | | Affected routes are: * autocomplete_sources * project_members * deploy_keys * deploy_tokens Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add network and graphs to legacy routes toodz-scope-project-routesDmitriy Zaporozhets2019-05-211-0/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add legacy routes for modified project pathDmitriy Zaporozhets2019-05-211-0/+12
| | | | | | For settings, branches and tags Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix specs to match route changesDmitriy Zaporozhets2019-05-201-20/+21
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove the `comment_personal_snippet` permissionremove-comment-personal-snippet-permissionSean McGivern2019-05-021-0/+22
| | | | | | | | | This is now entirely handled by `create_note`: 1. Project snippets prevent `create_note`. 2. Uploads already only support routing for personal snippets. This simplifies some policies and access checks, too!
* Add specs to group routing specadd-specs-for-group-routing-specMałgorzata Ksionek2019-04-261-0/+14
|
* Fix spec for routes to the GraphqlControllerBrett Walker2019-03-151-11/+3
|
* Security Dashboard as default view for groupsGilbert Roulot2019-03-141-0/+4
| | | | | | | Add a supporting code to separate groups#show and groups#details which is required for the proper implementation of the Group Overview content and Security Dashboard option for it
* Improve the GitHub and Gitea import feature table interfaceLuke Bennett2019-02-131-2/+13
| | | | | | | | | | | These are backend changes. Use Vue for the import feature UI for "githubish" providers (GitHub and Gitea). Add "Go to project" button after a successful import. Use CI-style status icons and improve spacing of the table and its component. Adds ETag polling to the github and gitea import jobs endpoint.
* Add ability to resolve project id into pathDmitriy Zaporozhets2019-01-221-0/+4
| | | | | | | | | By visiting `projects/:id` you will be redirected to project page with path in it. projects/123 => foo/bar Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Revert "Resolve "[Rails5] `ActionView::MissingTemplate` in ↵Douwe Maan2018-12-031-12/+8
| | | | | | spec/features/projects/wiki/user_views_wiki_page_spec.rb"" This reverts commit 1292b99b742fd83438b011d3082662d354b3330e.
* Remove Koding integration and documentationStan Hu2018-10-121-7/+0
| | | | | | This integration no longer works and does not appear to be supported. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/39697
* Resolve "Drop down filter for project snippets"Fabian Schneider2018-10-051-1/+2
|
* Fix SpaceBeforeFirstArg copSemyon Pupkov2018-09-201-4/+4
|
* [master] Missing CSRF in System Hooks resend actionFrancisco Javier López2018-08-242-5/+5
|
* Spec instance statisticsBob Van Landuyt2018-07-271-0/+11
|
* Revert "Merge branch '41416-making-instance-wide-data-tools-more-accessible' ↵Sean McGivern2018-07-271-11/+0
| | | | | into 'master'" This reverts merge request !20679
* Merge branch '41416-making-instance-wide-data-tools-more-accessible' into ↵Sean McGivern2018-07-271-0/+11
|\ | | | | | | | | | | | | | | | | 'master' Resolve "Making instance-wide data tools more accessible" Closes #41416 and #48507 See merge request gitlab-org/gitlab-ce!20679
| * Spec instance statisticsBob Van Landuyt2018-07-271-0/+11
| |
* | Changing the hook test action to use POSTFrancisco Javier López2018-07-232-2/+2
|/
* Resolve "[Rails5] `ActionView::MissingTemplate` in ↵blackst0ne2018-06-121-8/+12
| | | | spec/features/projects/wiki/user_views_wiki_page_spec.rb"
* Initial setup GraphQL using graphql-ruby 1.8Bob Van Landuyt2018-06-061-0/+31
| | | | | | | | | - 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
* Export assigned issues in iCalendar feedImre Farkas2018-05-311-3/+7
|
* Add new repository archive routeJames Ramsay2018-04-061-7/+23
| | | | | | | | | | | | | Repository archives are always named `<project>-<ref>-<sha>` even if the ref is a commit. A consequence of always including the sha even for tags is that packaging a release is more difficult because both the ref and sha must be known by the packager. - add `<project>/-/archive/<ref>/<filename>.<format>` route using the `-` separator to prevent namespace collisions. If the filename is `<project>-<ref>` or the ref is a sha, the sha will be omitted, otherwise the default filename will be used. - deprecate previous archive route `repository/<ref>/archive`
* [CE] Add Naming/FileName rule checking expected class/module per filenameGabriel Mazetto2018-03-081-2/+2
|
* Fix user feature specs that were hardcoding 'user1'43495-spec-failure-spec-features-users_spec-rbRémy Coutable2018-02-221-0/+16
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Don't add a trailing slash in group redirects40230-groups-gitlab-org-labels-json-redirects-to-groups-gitlab-org-labels-jsonSean McGivern2017-11-161-11/+17
| | | | | | | | Because we ignored the format, a request to `/groups/foo/labels.json` would redirect to `/groups/foo/-/labels/.json`. But really, it's worse than that, because unless the request contained a trailing slash, we shouldn't add one. Now, we only _keep_ a trailing slash, but don't _add_ one.
* Merge branch 'feature-change-signout-route' into 'master'Douwe Maan2017-11-081-2/+4
|\ | | | | | | | | | | | | Change Sign Out route from a DELETE to a GET Closes #39708 See merge request gitlab-org/gitlab-ce!15231
| * Updates tests to reflect sign_out route changeJoe Marty2017-11-071-2/+4
| | | | | | | | - Also remove sign_out DELETE route from read-only whitelist routes
* | Check redirecting with a querystringBob Van Landuyt2017-11-071-0/+10
| |
* | Free up some group reserved wordsBob Van Landuyt2017-11-071-17/+56
| |
* | Free up `avatar`, `group_members` and `milestones` as pathsBob Van Landuyt2017-11-072-41/+71
| |
* | Free up `labels` as a group nameBob Van Landuyt2017-11-071-0/+18
|/
* Remove Private Token from User Settings > AccountDouwe Maan2017-11-021-5/+0
|
* Allow promoting project milestones to group milestonesFelipe Artur2017-10-311-7/+12
|
* Backport EE changes to group routesbackort_routes_group_routes_from_eeValery Sizov2017-10-221-9/+3
|