GET to APIv3 /projects returns wrong number of results
Created by: weisjohn
Attempting to GET all project my user has access to. In my web interface, I have 46 projects, cURLing throught the API, I see only 22.
I'm running gitlab 4.0 stable, Ubuntu 12.04 LTS:
$ curl --verbose -X GET http://gitlab/api/v3/projects?private_token=${GITLAB_PRIVATE_TOKEN} | jq '.[]["id"]'
* About to connect() to gitlab port 80 (#0)
* Trying xxx.xxx.xxx.xxx... % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0connected
* Connected to gitlab (xxx.xxx.xxx.xxx) port 80 (#0)
> GET /api/v3/projects?private_token=[..sic..] HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: gitlab
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.1.19
< Date: Mon, 14 Jan 2013 01:41:46 GMT
< Content-Type: application/json
< Content-Length: 7264
< Connection: keep-alive
< Status: 200 OK
< X-UA-Compatible: IE=Edge,chrome=1
< ETag: "a7c8f51249249995e69faa890750e476"
< Cache-Control: max-age=0, private, must-revalidate
< X-Request-Id: 883a0e4fbe97975ad264b64fb43a65d1
< X-Runtime: 0.029951
< X-Rack-Cache: miss
<
{ [data not shown]
100 7264 100 7264 0 0 63116 0 --:--:-- --:--:-- --:--:-- 99k* Connection #0 to host gitlab left intact
* Closing connection #0
1
2
3
4
5
6
7
8
9
10
11
13
14
16
17
18
19
20
21
22
($GITLAB_PRIVATE_TOKEN is a bash env variable, I'm piping into jq (http://stedolan.github.com/jq/) and then just grab the IDs and then filtering out to just the IDs, cause I don't want to clutter up the issue report... )
I'm attempting to update the community-provided "close issue" from commit-msg hook, but I can't because of the new namespaces. I need the above call to work so that I can look in the current repo, ask Gitlab what the project names and IDs are, match my repo to the ID, to build the URL.