Skip to content

Add backend support for selecting custom templates by ID

Stan Hu requested to merge sh-use-template-project-id-backend into master

This is the first step to fixing #9146 (closed) and adds the backend support in !17205 (merged).

Previously if multiple project templates had similar names, it was possible the wrong template were used. For example, if you had three different templates with the names:

  1. docker
  2. docker-image
  3. docker-image-and-app

Clicking on docker would cause the search to match all three items, and CreateFromTemplateService would just pick the first one returned from the database.

Instead of using names, this commit uses the project ID to avoid this ambiguity.

The backend support is added first to avoid no-downtime issues with creating new projects.

Edited by 🤖 GitLab Bot 🤖

Merge request reports