An error occurred fetching the project authors.
- 01 Dec, 2020 1 commit
-
-
Markus Koller authored
Previously we used both a `:namespace_id` and a `:repository_id` in the repository routes, which originally made sense for project repositories, but was confusing with personal snippets where `:namespace_id` was just the `/snippets` prefix and not an actual namespace. For group wiki repositories we also need to support toplevel groups, where we only have a namespace path. So we combine `:namespace_id` and `:repository_id` into a single `:repository_path` route argument, and refactor the related controllers and internal APIs accordingly. The repository path is mainly used in `Gitlab::RepoPath` to determine the container for the repository. In the `GitAccess` classes it's only used in `GitAccessProject` when auto-creating project repositories, where we need to know in which namespace to create the new project.
-
- 10 Nov, 2020 1 commit
-
-
Markus Koller authored
The repository routes for project repositories are ambiguous and also match project snippet repositories, so LFS requests for project snippets will work but snippets are not ready yet to properly support LFS. We can work around this by checking `#lfs_enabled?` on the `container` instead of the `project`, which for snippets will be the snippet itself, and `Snippet#lfs_enabled?` is currently hard-coded to return `false`. To simplify things, we also remove the project-specific access check and use `lfs_download_access?` instead to determine wether to expose the existence of the project (404 response) or not (403 response), when sending an error response. When LFS is disabled on the container we now also send a 404 instead of a 403.
-
- 05 Oct, 2020 1 commit
-
-
Sean McGivern authored
-
- 22 Jun, 2020 1 commit
-
-
Bob Van Landuyt authored
This moves the loading of the user earlier in the callback chain. So it is available when we log a request.
-
- 04 Mar, 2020 1 commit
-
-
Francisco Javier López authored
In this commit we add the snippet git commit routes that will allow us to perform git operations on snippets. It also refactors the Repositories controllers to allow working with containers and making them project agnostic.
-
- 24 Jan, 2020 1 commit
-
-
Francisco Javier López authored
In https://gitlab.com/gitlab-org/gitlab/issues/39176 we're allowing resources other than projects to have repositories attached. Therefore, it doesn't make a lot of sense to have git requests handled by controllers in the Projects namespace. This commit introduces the new namespace Repositories.
-