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.
Last modified August 23, 2024: Ensure frontmatter is consistent (e47101dc)