Restore has_visible_content? to improve performance (cache)
What does this MR do?
It restores the has_visible_content?
method that was removed as part of !13773 (merged)
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
The method was moved to ::Git
but it is not cached there (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13773/diffs#149543c1229cd4353b9ad020503ffb49dedf5f1f_734_834). That's why we encountered big performance problems after the deployment of 10.0
.
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added -
Tests added for this feature/bug - Review
-
Has been reviewed by UX -
Has been reviewed by Frontend -
Has been reviewed by Backend -
Has been reviewed by Database
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Squashed related commits together