Skip to content

Conversation

@ethantkoenig
Copy link
Member

@ethantkoenig ethantkoenig commented Mar 14, 2017

  • Replace the *User arguments to [aA]ccessLevel(..), [hH]asAccess(..) to int64 userID arguments to avoid unnecessary loads
  • Fix incorrect specifications for AccessLevel(..) HasAccess(..)
  • Add a getTeamUsersByTeamID(..) helper function to avoid unnecessary loads

models/access.go Outdated
Copy link
Member

Choose a reason for hiding this comment

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

if userID == 0 ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Added back.

@lunny
Copy link
Member

lunny commented Mar 14, 2017

LGTM

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 14, 2017
@lunny lunny added this to the 1.2.0 milestone Mar 14, 2017
@lunny lunny added type/refactoring Existing code has been cleaned up. There should be no new functionality. type/docs This PR mainly updates/creates documentation labels Mar 14, 2017
@appleboy
Copy link
Member

LGTM

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 14, 2017
@lunny lunny merged commit ec0ae5d into go-gitea:master Mar 15, 2017
@ethantkoenig ethantkoenig deleted the refactor/access branch March 15, 2017 00:53
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 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. type/docs This PR mainly updates/creates documentation type/refactoring Existing code has been cleaned up. There should be no new functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants