Skip to content

Send GitLab project name with namespace with Repository

From https://gitlab.com/gitlab-org/gitlab-ce/issues/48527#note_116028788, when hashed storage is in effect, all we see in the log messages are opaque hashes of the path:

image

We pass along gl_repository in many gRPC messages, but for the CreateRepository we don't have this because it's blank here: https://gitlab.com/gitlab-org/gitlab-ce/blob/7a506e3957eca46c202388bb98f0554893b7348a/lib/gitlab/shell.rb#L79

Since the repository is created around the same time as the database entry, the project ID is likely nil. Instead, we should be able to pass in something like gl_project_path so we don't need to do another lookup from the hashed path to the human-readable name.

/cc: @andrewn

Edited by Stan Hu
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information