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

Add Get/Update for api/v1/user/applications/oauth2 #11008

Merged
merged 2 commits into from
Apr 10, 2020
Merged

Add Get/Update for api/v1/user/applications/oauth2 #11008

merged 2 commits into from
Apr 10, 2020

Conversation

dmolik
Copy link
Contributor

@dmolik dmolik commented Apr 7, 2020

Add API methods for getting and updating user oauth2 applications.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 7, 2020
@dmolik
Copy link
Contributor Author

dmolik commented Apr 7, 2020

Had some fixups with registering the new endpoints and passing the tests.

@dmolik
Copy link
Contributor Author

dmolik commented Apr 7, 2020

looks like an unrelated postgres logging error

@6543
Copy link
Member

6543 commented Apr 7, 2020

@dmolik pleace read the Contributing Guidline for API: https://github.com/go-gitea/gitea/blob/master/CONTRIBUTING.md#api-v1

integrations/api_oauth2_apps_test.go Show resolved Hide resolved
routers/api/v1/api.go Outdated Show resolved Hide resolved
@6543
Copy link
Member

6543 commented Apr 7, 2020

@dmolik If you do not forcepush it's easier to review (pull get squash-merged at the end)

routers/api/v1/user/app.go Outdated Show resolved Hide resolved
Copy link
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

last nit

routers/api/v1/user/app.go Show resolved Hide resolved
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Apr 8, 2020
@6543
Copy link
Member

6543 commented Apr 8, 2020

Note for me: if merged, prepare UpdateOAuth2Application to return the app result back and handle errors

@GiteaBot GiteaBot 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 Apr 8, 2020
@lafriks lafriks added modifies/api This PR adds API routes or modifies them type/enhancement An improvement of existing functionality labels Apr 8, 2020
@lafriks lafriks added this to the 1.12.0 milestone Apr 8, 2020
@dmolik
Copy link
Contributor Author

dmolik commented Apr 8, 2020

Okie dokie, I went ahead and squashed the commits

@dmolik
Copy link
Contributor Author

dmolik commented Apr 8, 2020

Looks like there were some mysql and mssql test failures, unrelated to this change.

@dmolik dmolik requested a review from 6543 April 8, 2020 15:07
Copy link
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just push an empty commit to restart CI

Add api methods for getting and updating user oauth2 applications.

Signed-off-by: Dan Molik <[email protected]>
@dmolik
Copy link
Contributor Author

dmolik commented Apr 9, 2020

@6543 sweet the build passed! want to give it a once over?

@jolheiser
Copy link
Member

Ping lgtm

@jolheiser jolheiser merged commit 7430221 into go-gitea:master Apr 10, 2020
@6543
Copy link
Member

6543 commented Apr 10, 2020

created refactor #11034

zeripath pushed a commit that referenced this pull request Apr 30, 2020
Following on from #11008 refactor UpdateOAuth2Application
ydelafollye pushed a commit to ydelafollye/gitea that referenced this pull request Jul 31, 2020
Add api methods for getting and updating user oauth2 applications.

Signed-off-by: Dan Molik <[email protected]>

Co-authored-by: techknowlogick <[email protected]>
ydelafollye pushed a commit to ydelafollye/gitea that referenced this pull request Jul 31, 2020
Following on from go-gitea#11008 refactor UpdateOAuth2Application
@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/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants