An error occurred fetching the project authors.
  1. 01 Dec, 2020 1 commit
    • Markus Koller's avatar
      Generalize repository routing · abe3a8cf
      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.
      abe3a8cf
  2. 10 Nov, 2020 1 commit
    • Markus Koller's avatar
      Block LFS requests on snippets · 63e1fcb7
      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.
      63e1fcb7
  3. 05 Oct, 2020 1 commit
  4. 22 Jun, 2020 1 commit
  5. 04 Mar, 2020 1 commit
    • Francisco Javier López's avatar
      Add snippet git routes · e8ca2229
      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.
      e8ca2229
  6. 24 Jan, 2020 1 commit