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

Update Swagger API to match the return of /users/search #4847

Merged

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Sep 2, 2018

As per issue #4841 . The current implementation of the /users/search API does not return a UserList but rather an object similar to the SearchResults object returned by /repos/search. This pull request fixes swagger API so that it actually describes the reality of what is returned.

This pull-request requires go-gitea/go-sdk#119

The issue is that this API has been wrong for at least 10 months - therefore tools may have grown up using the incorrect API even though the SDK is incorrect. I have also created a pull request for the opposite solution #4846 - which if pulled would mean this request was unnecessary.

@zeripath zeripath force-pushed the Correct-Users-Search-Swagger-API-Description branch from 7456c5e to bd8842b Compare September 2, 2018 12:52
@zeripath zeripath force-pushed the Correct-Users-Search-Swagger-API-Description branch from bd8842b to 412c705 Compare September 7, 2018 09:32
@jonasfranz jonasfranz added the modifies/api This PR adds API routes or modifies them label Sep 18, 2018
@bkcsoft bkcsoft added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Sep 18, 2018
@jonasfranz jonasfranz added this to the 1.6.0 milestone Sep 18, 2018
@bkcsoft bkcsoft added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Sep 18, 2018
Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath force-pushed the Correct-Users-Search-Swagger-API-Description branch from 412c705 to 3046702 Compare September 20, 2018 19:49
@lafriks lafriks added type/docs This PR mainly updates/creates documentation and removed type/bug labels Sep 21, 2018
@codecov-io
Copy link

Codecov Report

Merging #4847 into master will increase coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4847      +/-   ##
=========================================
+ Coverage   37.39%   37.4%   +<.01%     
=========================================
  Files         306     306              
  Lines       45334   45343       +9     
=========================================
+ Hits        16954   16959       +5     
- Misses      25926   25931       +5     
+ Partials     2454    2453       -1
Impacted Files Coverage Δ
routers/api/v1/user/user.go 10.3% <0%> (-1.06%) ⬇️
models/repo_list.go 62.94% <0%> (+1.17%) ⬆️
modules/process/manager.go 81.15% <0%> (+4.34%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dab02b8...bddda5a. Read the comment docs.

@lunny lunny merged commit 36e7cb9 into go-gitea:master Sep 21, 2018
@zeripath zeripath deleted the Correct-Users-Search-Swagger-API-Description branch September 21, 2018 18:14
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/api This PR adds API routes or modifies them type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants