Add backend support for selecting custom templates by ID
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:
- docker
- docker-image
- 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 🤖