Merge pull request #8404 from minnsoe/feat/prepare-for-gitlab-org-and-add-tests

Add tests for the GitLab client in catalog-backend and refactor
This commit is contained in:
Johan Haals
2021-12-08 14:48:16 +01:00
committed by GitHub
3 changed files with 323 additions and 21 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend': patch
---
The `pagedRequest` method in the GitLab ingestion client is now public for re-use and may be used to make other calls to the GitLab API. Developers can now pass in a type into the GitLab `paginated` and `pagedRequest` functions as generics instead of forcing `any` (defaults to `any` to maintain compatibility). The `GitLabClient` now provides a `isSelfManaged` convenience method.