This page contains information related to upcoming products, features, and functionality. It is important to note that the information presented is for informational purposes only. Please do not rely on this information for purchasing or planning purposes. As with all projects, the items mentioned on this page are subject to change or delay. The development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.
Status Authors Coach DRIs Owning Stage Created
proposed -

This document is a work-in-progress and represents a very early state of the Cells design. Significant aspects are not documented, though we expect to add them in the future. This is one possible architecture for Cells, and we intend to contrast this with alternatives before deciding which approach to implement. This documentation will be kept even if we decide not to implement this so that we can document the reasons for not choosing this approach.

Cells: Snippets

Snippets will be scoped to an Organization. Initially it will not be possible to aggregate snippet collections across Organizations. See also issue #416954.

1. Definition

Two different types of snippets exist:

Snippets are backed by a Git repository.

2. Data flow

3. Proposal

3.1. Scoped to an organization

Both project and personal snippets will be scoped to an Organization.

  • Project snippets URLs will remain unchanged, as the URLs are routable.
  • Personal snippets URLs will need to change to be /-/organizations/<organization>/snippets/123, so that the URL is routeable

Creation of snippets will also be scoped to a User’s current Organization. Because of that, we recommend renaming personal snippets to organization snippets once the Organization is rolled out. A User can create many independent snippet collections across multiple Organizations.

4. Evaluation

Snippets are scoped to an Organization because Gitaly is confined to a Cell.

4.1. Pros

  • No need to have clusterwide Gitaly.

4.2. Cons

  • We will break snippet discovery.
  • Snippet access may become subordinate to the visibility of the Organization.