Unverified Commit 68249f23 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Prevent Compare page timout for large amount of commits

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 4f727e0258f4
v 6.6.0
- Permissions: Developer now can manage issue tracker (modify any issue)
- Improve Code Compare page performance
v 6.5.1
- Fix branch selectbox when create merge request from fork
......@@ -23,6 +23,12 @@
&.warning-row {
background-color: #fcf8e3;
border-color: #faebcc;
color: #8a6d3b;
&.smoke { background-color: #f5f5f5; }
&:hover {
......@@ -15,7 +15,14 @@
Commits (#{@commits.count})
%ul.well-list= render Commit.decorate(@commits), project: @project
- if @commits.size > MergeRequestDiff::COMMITS_SAFE_SIZE
- Commit.decorate(@commits.first(MergeRequestDiff::COMMITS_SAFE_SIZE)).each do |commit|
= render "projects/commits/inline_commit", commit: commit, project: @project
other #{@commits.size - MergeRequestDiff::COMMITS_SAFE_SIZE} commits hidden to prevent performance issues.
- else
%ul.well-list= render Commit.decorate(@commits), project: @project
- unless @diffs.empty?
%h4 Diff
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment