Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying "uid" when search after repo doesnt work #83

Open
jmgiaever opened this issue Oct 20, 2017 · 0 comments
Open

Specifying "uid" when search after repo doesnt work #83

jmgiaever opened this issue Oct 20, 2017 · 0 comments

Comments

@jmgiaever
Copy link

When searching for repositories within a user, with e.g the user id 44, will return results for other users as well and not be restricted to the user with user id = 44.

Query example:
GET https://git.giaever.org/api/v1/repos/search?q=gogs&user=44&limit=10

Result example:

{"data":[{"id":41,"owner":{"id":2,"login":"GiaeverPubl","full_name":"Giaever Publishing","email":"","avatar_url":"https://git.giaever.org/avatars/2","username":"GiaeverPubl"},"name":"git.giaever.org","full_name":"GiaeverPubl/git.giaever.org","description":"Git.giaever.org Gogs setup","private":true,"fork":false,"parent":null,"empty":false,"mirror":false,"size":16381952,"html_url":"https://git.giaever.org/GiaeverPubl/git.giaever.org","ssh_url":"[email protected]:GiaeverPubl/git.giaever.org.git","clone_url":"https://git.giaever.org/GiaeverPubl/git.giaever.org.git","website":"https://git.giaever.org","stars_count":0,"forks_count":0,"watchers_count":2,"open_issues_count":0,"default_branch":"master","created_at":"2016-11-18T03:54:55+01:00","updated_at":"2016-11-18T06:45:06+01:00"},{"id":153,"owner":{"id":1,"login":"joachimmg","full_name":"Joachim Marthinsen Giæver","email":"[email protected]","avatar_url":"https://git.giaever.org/avatars/1","username":"joachimmg"},"name":"gogs-api-wpp","full_name":"joachimmg/gogs-api-wpp","description":"Gogs API wordpress plugin","private":true,"fork":false,"parent":null,"empty":false,"mirror":false,"size":90112,"html_url":"https://git.giaever.org/joachimmg/gogs-api-wpp","ssh_url":"[email protected]:joachimmg/gogs-api-wpp.git","clone_url":"https://git.giaever.org/joachimmg/gogs-api-wpp.git","website":"","stars_count":0,"forks_count":0,"watchers_count":1,"open_issues_count":0,"default_branch":"master","created_at":"2017-10-17T10:40:14+02:00","updated_at":"2017-10-20T09:40:35+02:00"},{"id":180,"owner":{"id":1,"login":"joachimmg","full_name":"Joachim Marthinsen Giæver","email":"[email protected]","avatar_url":"https://git.giaever.org/avatars/1","username":"joachimmg"},"name":"gogs-php-api-client","full_name":"joachimmg/gogs-php-api-client","description":"Gogs PHP API Client is a client written in PHP, to easily query a Gogs (Go Git Service) API client.","private":false,"fork":false,"parent":null,"empty":false,"mirror":false,"size":848896,"html_url":"https://git.giaever.org/joachimmg/gogs-php-api-client","ssh_url":"[email protected]:joachimmg/gogs-php-api-client.git","clone_url":"https://git.giaever.org/joachimmg/gogs-php-api-client.git","website":"","stars_count":0,"forks_count":0,"watchers_count":1,"open_issues_count":0,"default_branch":"master","created_at":"2017-10-19T16:44:04+02:00","updated_at":"2017-10-20T09:52:36+02:00"},{"id":183,"owner":{"id":30,"login":"bje007","full_name":"Birger Christoffer Jensen","email":"[email protected]","avatar_url":"https://secure.gravatar.com/avatar/12285f0af02782093a4d18c6fcdfb8a5","username":"bje007"},"name":"test-gogs-api-repo-70","full_name":"bje007/test-gogs-api-repo-70","description":"This is test repo #70 created with Gogs PHP API Client","private":false,"fork":false,"parent":null,"empty":false,"mirror":false,"size":0,"html_url":"https://git.giaever.org/bje007/test-gogs-api-repo-70","ssh_url":"[email protected]:bje007/test-gogs-api-repo-70.git","clone_url":"https://git.giaever.org/bje007/test-gogs-api-repo-70.git","website":"","stars_count":0,"forks_count":0,"watchers_count":2,"open_issues_count":0,"default_branch":"master","created_at":"2017-10-20T11:06:03+02:00","updated_at":"2017-10-20T13:30:02+02:00"}],"ok":true}

Contains at least 2 different owners and none of them has id = 44!

Gogs Version: 0.11.29.0727

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant