Only seeing public projects using the API, not my own
Description of the problem
Trying to get the ID of one of my projects using
gitlab package in python, which is an API wrapper.
#!/usr/bin/env python3 import gitlab class GitlabController(): def __init__(self): self.gitlab_url = 'https://gitlab.com' self.private_token = '<from my Access Tokens in gitlab.com; the token has all rights>' self.gl = gitlab.Gitlab(self.gitlab_url, private_token=self.private_token) self.gl.auth() print("Init gl (%s)" % self.gl) def get_list_of_projects(self, v=False): # list all the projects projects = self.gl.projects.list() for project in projects: print(project.name) print("->Found (%s) projects." % (len(projects))) return projects if __name__ == '__main__': glc = GitlabController() projects = glc.get_list_of_projects(v=True)
prints exactly 20 projects, which I am not aware of (looking like some public projects on gitlab.com):
cs371p-collatz smart-home toggleBTN hundron java-courses-functional-programming cs371p-collatz-tests GadiTeck_Trail Oh my Arch TP1Gr01 undercvr basic-arm-control assignment2 panel Vue-learning MyHomeWork_2 desafio-tecnico-backend minecraft next.gitlab.com ravilabio.gitlab.io React To Do ->Found (20) projects.
Which Group/Project (with full path) is experiencing the issue?
https://gitlab.com/cgi1/market_db/ User: cgi1 with personal Access Token, granted with all privileges in the Access Tokens window:
So my question is:How is it possible, that I only see these 20 public projects? Are there only 20 public projects or is the response beeing limited? And is it possible that I configured it correctly and my personal projects are part of the limited projects? Thanks!
Approximate date/time when the error occurred.
I installed the token today to start implementing some CI
Describe what you were doing right before the issue occurred.
Playing with another problem