- Apr 17, 2018
-
-
Bob Van Landuyt authored
This adds a method to track errors that can be recovered from in sentry. It is useful when debugging performance issues, or exceptions that are hard to reproduce.
-
- Apr 05, 2018
-
-
Douwe Maan authored
Port of "Fix XSS on commit diff view" for 10-6 See merge request gitlab/gitlabhq!2364
-
- Mar 16, 2018
-
-
Sean McGivern authored
These can be a `BatchLoader` which is proxying a nil, while not being concrete nils themselves.
-
- Mar 15, 2018
-
-
Sean McGivern authored
This may lead to some being evicted and having to be cached again, but many MRs get closed or updated in that time anyway.
-
Sean McGivern authored
Previously, we kept them all in the cache. We don't need the highlight results for older diffs - if someone does view that (which is rare), we can do the highlighting on the fly.
-
- Mar 09, 2018
-
-
Oswaldo Ferreir authored
-
- Mar 08, 2018
-
-
Oswaldo Ferreir authored
-
- Feb 22, 2018
-
-
Sean McGivern authored
Rugged sometimes chops a context line in between bytes, resulting in the context line having an invalid encoding: https://github.com/libgit2/rugged/issues/716 When that happens, we will try to detect the encoding for the diff, and sometimes we'll get it wrong. If that difference in encoding results in a difference in string lengths between the diff and the underlying blobs, we'd fail to highlight any inline diffs, and return a 500 status to the user. As we're using the underlying blobs, the encoding is 'correct' anyway, so if the string range is invalid, we can just discard the inline diff highlighting. We still report to Sentry to ensure that we can investigate further in future.
-
- Jan 11, 2018
-
-
- Jan 04, 2018
-
-
Sean McGivern authored
Old merge requests can have diffs without corresponding blobs. (This also may be possible for commit diffs in corrupt repositories.) We can't use the `&.` operator on the blobs, because the blob objects are never nil, but `BatchLoader` instances that delegate to `Blob`. We can't use `Object#try`, because `Blob` doesn't inherit from `Object`. `BatchLoader` provides a `__sync` method that returns the delegated object, but using `itself` also works because it's forwarded, and will work for non-`BatchLoader` instances too. So the simplest solution is to just use that with the `&.` operator.
-
- Dec 22, 2017
-
-
Douwe Maan authored
Improve performance of DiffDiscussion#truncated_diff_lines and DiffNote#diff_line by removing expensive diff position calculation and comparison
-
- Dec 07, 2017
-
-
Martin Nowak authored
- handle unchanged empty lines in inline diff
-
micael.bergeron authored
-
- Nov 21, 2017
-
-
Zeger-Jan van de Weg authored
After installing a new gem, batch-loader, a construct can be used to queue data to be fetched in bulk. The gem was also introduced in both gitlab-org/gitlab-ce!14680 and gitlab-org/gitlab-ce!14846, but those mrs are not merged yet. For the generation of diffs, both the old blob and the new blob need to be loaded. This for every file in the diff, too. Now we collect all these so we do 1 fetch. Three `.allow_n_plus_1_calls` have been removed, which I expect to be valid, but this needs to be confirmed by a full CI run. Possibly closes: - https://gitlab.com/gitlab-org/gitlab-ce/issues/37445 - https://gitlab.com/gitlab-org/gitlab-ce/issues/37599 - https://gitlab.com/gitlab-org/gitlab-ce/issues/37431
-
- Nov 16, 2017
-
-
Jacopo authored
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
-
- Oct 30, 2017
-
-
- Oct 15, 2017
-
-
Valery Sizov authored
-
- Oct 13, 2017
-
-
Alejandro Rodríguez authored
Having a distinct class just for that was a bit overkill
-
Alejandro Rodríguez authored
Rename classes to (hopefully) clearer names while we're doing that.
-
Alejandro Rodríguez authored
-
- Oct 07, 2017
-
-
- Sep 25, 2017
-
-
Douwe Maan authored
-
Douwe Maan authored
-
- Sep 21, 2017
-
-
Ahmad Sherif authored
Closes gitaly#524
-
- Sep 19, 2017
-
-
Andrew Newdigate authored
-
- Sep 12, 2017
-
-
micael.bergeron authored
updated the spec
-
- Aug 24, 2017
-
-
Sean McGivern authored
For some old merge requests, we don't have enough information to figure out the old blob and the new blob for the file. This means that we can't highlight the diff correctly, but we can still display it without highlighting.
-
- Aug 22, 2017
-
-
Sean McGivern authored
We didn't have a fallback case before, because we believed the conditions were exhaustive. They weren't, so we can always fallback to not previewing.
-
- Aug 14, 2017
-
-
Robert Speicher authored
An upcoming update to rubocop-gitlab-security added additional violations.
-
- Aug 08, 2017
-
-
Brian Neel authored
-
- Jul 31, 2017
-
-
Jacob Vosmaer (GitLab) authored
-
- Jun 19, 2017
-
-
Douwe Maan authored
-
- Jun 14, 2017
-
-
Douwe Maan authored
-
- Jun 08, 2017
-
-
Douwe Maan authored
-
Douwe Maan authored
-
- Jun 06, 2017
-
-
Douwe Maan authored
-
- May 31, 2017
-
-
Valery Sizov authored
-
- May 29, 2017
-
-
Douwe Maan authored
-
- May 25, 2017
-
-
Douwe Maan authored
-
- May 24, 2017
-
-
Douwe Maan authored
-