Export is limited to 20 variables
Currently the export command seems to be limited to the default of 20 entries listed by gitlab. Using curl it is possible to workaround this by adding "?page=1&per_page=100" to the URL, however I don't know how to achieve this in go. Would be really great if you could resolve this issue.
BR Fedor
I can confirm this issue.
The code completeley ignores the fact, that the GitLab API is paginated and by default will only return the first 20 enties, if nothing pagination related is provided.
See: https://docs.gitlab.com/ee/api/rest/index.html#pagination for details
While the idea of this repo is nice, the fact that pagination is unsupported renders it pretty much unuseable for real world usage. We tried to look at the code, but due lack of proper go-knowledge, we decided for hacking something together with Python.
Currently the export command seems to be limited to the default of 20 entries listed by gitlab. Using curl it is possible to workaround this by adding "?page=1&per_page=100" to the URL, however I don't know how to achieve this in go. Would be really great if you could resolve this issue.
BR Fedor
Thanks a lot for the suggestion. I did exactly this in my pull request #17. That way 100 variables can be exported instead of 20. While not a perfect solution the majority of projects including all the projects for which I need to use this tool for don’t have more than 100 variables and so it's good enough for now.