Refactor Gitlab::Identifier
What does this MR do?
This refactors Gitlab::Identifier
so that it:
- Has tests
- Caches output in an instance variable to reduce queries
- Uses only a single query to find a user by an SSH key, instead of 2
Why was this MR needed?
This code was untested and would execute more SQL queries than needed.
Does this MR meet the acceptance criteria?
-
CHANGELOG entry added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if you do - rebase it please) -
Squashed related commits together