fix(catalog-backend-module-gitlab): use correct GitLab API parameter 'topic' instead of 'topics'

The GitLab Projects API expects the query parameter 'topic' (singular),
but the GitlabDiscoveryEntityProvider was passing 'topics' (plural),
causing project filtering by topics to silently fail.

- Updated ListProjectOptions interface to use 'topic' instead of 'topics'
- Updated GitlabDiscoveryEntityProvider to send 'topic' parameter
- Added regression test verifying topic parameter is passed correctly
- Fixed template literal formatting in client.ts

Fixes #33110

Signed-off-by: AmateurMind <suhail17mohammad@gmail.com>
This commit is contained in:
AmateurMind
2026-03-05 07:22:50 +05:30
parent a5ff77fcbe
commit 8df079681e
4 changed files with 71 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend-module-gitlab': patch
---
Fixed GitLab project topic filtering by using correct API parameter 'topic' instead of 'topics'