Commit Graph

13 Commits

Author SHA1 Message Date
GitLab Bot f82d85a884 Add latest changes from gitlab-org/gitlab@master 2024-05-29 00:11:00 +00:00
GitLab Bot 5a18614e48 Add latest changes from gitlab-org/gitlab@master 2024-03-04 06:12:11 +00:00
GitLab Bot 010d26e381 Add latest changes from gitlab-org/gitlab@master 2023-11-30 06:11:20 +00:00
GitLab Bot 270fe37859 Add latest changes from gitlab-org/gitlab@master 2023-10-19 06:11:31 +00:00
GitLab Bot 04cc87ee46 Add latest changes from gitlab-org/gitlab@master 2023-06-13 21:09:09 +00:00
GitLab Bot ceb5cdd5c3 Add latest changes from gitlab-org/gitlab@master 2023-05-04 21:09:14 +00:00
GitLab Bot e1bfa7aef2 Add latest changes from gitlab-org/gitlab@master 2023-02-10 12:08:20 +00:00
GitLab Bot 84727c8209 Add latest changes from gitlab-org/gitlab@master 2019-09-16 15:06:26 +00:00
Nick Thomas 8973f32d42
Remove cleaned up OIDs from database and cache 2019-05-06 11:35:03 +01:00
Nick Thomas 013f7cd24c
Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
Oswaldo Ferreira 7cf4947792 Cache diff highlight in discussions
This commit handles note diffs caching, which considerably improves
the performance on merge requests with lots of comments.
Important to note that the caching approach taken here is different
from `Gitlab::Diff::HighlightCache`. We do not reset the whole cache
when a new push is sent or anything else. That's because discussions
diffs are persisted and do not change.
2018-12-21 16:59:21 -02:00
gfyoung 50abbd3e53 Enable frozen string in app/models/*.rb
Partially addresses #47424.
2018-07-26 16:55:41 -07:00
Oswaldo Ferreira bb8f2520b4 Persist truncated note diffs on a new table
We request Gitaly in a N+1 manner to build discussion diffs. Once the diffs are from different revisions, it's hard to make a single request to the service in order to build the whole response.
With this change we solve this problem and simplify a lot fetching this piece of info.
2018-05-24 15:34:43 -03:00