-
- Downloads
Refactor Gitlab::Identifier
This refactors Gitlab::Identifier so it uses fewer queries and is actually tested. Queries are reduced by caching the output as well as using 1 query (instead of 2) to find a user using an SSH key.
Showing
- CHANGELOG 1 addition, 0 deletionsCHANGELOG
- app/models/user.rb 5 additions, 0 deletionsapp/models/user.rb
- lib/gitlab/identifier.rb 50 additions, 8 deletionslib/gitlab/identifier.rb
- spec/lib/gitlab/identifier_spec.rb 123 additions, 0 deletionsspec/lib/gitlab/identifier_spec.rb
- spec/models/user_spec.rb 17 additions, 0 deletionsspec/models/user_spec.rb
- spec/workers/post_receive_spec.rb 3 additions, 1 deletionspec/workers/post_receive_spec.rb
Loading
Please register or sign in to comment