Skip to content

Create/update project: add parameter 'topics' in place of 'tag_list'

Introduction

In GitLab, a project can have topics and tags (git tags) on its repository. Unfortunately, topics appear in various places under the name tags, which leads to a lot of confusion. As discussed in #328226 (closed), this confusion is to be cleared up. So I submitted the MR !60834 (closed) for that. However, the MR was too big. So I closed the MR and will submit several separate MRs instead.

What does this MR do?

When creating and updating a project, the tag_list parameter had to be used for topics until now. As described in the introduction above, this parameter name is not correct.

This MR replaces the tag_list parameter with the topics parameter for create/update a project (frontend and API), but the deprecated tag_list parameter still works.

API request Before: request body After: request body
POST /api/v4/projects
PUT /api/v4/projects/1
{tag_list: 'topic1, topic2', ...} {topics: 'topic1, topic2', ...} or
{tag_list: 'topic1, topic2', ...} (deprecated)

🛠 with at Siemens

/cc @bufferoverflow

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Jonas Wälter

Merge request reports