diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-12-05 01:17:10 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-12-07 04:07:49 +0300 |
commit | 26b94bcc7d510482eea253b02dcc4ff22c48d68a (patch) | |
tree | 68a0f8dddb009b03af5de530fe4feb94a289dc6d /app/serializers/discussion_diff_file_entity.rb | |
parent | 9a78524f465488b2b5daa3fbdb2ec7c71c9641a6 (diff) |
Remove unused data from discussions endpoint
We don't need a series of attributes to render diff files on
discussions.json request. Therefore this MR removes lots of unnecessary
attributes from the request, mainly the highlighted diff lines, which
are pretty expensive.
Diffstat (limited to 'app/serializers/discussion_diff_file_entity.rb')
-rw-r--r-- | app/serializers/discussion_diff_file_entity.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/serializers/discussion_diff_file_entity.rb b/app/serializers/discussion_diff_file_entity.rb new file mode 100644 index 00000000000..419e7edf94f --- /dev/null +++ b/app/serializers/discussion_diff_file_entity.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +class DiscussionDiffFileEntity < DiffFileBaseEntity +end |