Ensure all Serializers receive `current_user`
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1711 passes current_user
to the MergeRequestSerializer
, which passes current_user
the it's Entity leafs (e.g. PipelineSerializer
). The problem is that new leafs were added while https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1711 wasn't merged, causing conflicts and more overhead about current_user
or user
usage.
This MR makes ensures all entities receive current_user
, avoiding errors and overhead.
-
Changelog entry added, if necessary -
Documentation created/updated -
API support 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 it does - rebase it please) -
Squashed related commits together