-
- Downloads
Improved large commit handling.
Previously, only number of changed files mattered. Now, number of lines to render in the diff are also taken into account. A hard limit is set, above which diffs are not rendered and users are not allowed to override that. This prevents high server resource usage with huge commits. Related to #1745, #2259 In addition, handle large commits for MergeRequests and Compare controllers. Also fixes a bug where diffs are loaded twice, if user goes directly to merge_requests/:id/diffs URL.
parent
7c13d3e6
No related branches found
No related tags found
Showing
- app/assets/javascripts/merge_requests.js.coffee 1 addition, 1 deletionapp/assets/javascripts/merge_requests.js.coffee
- app/contexts/commit_load_context.rb 2 additions, 1 deletionapp/contexts/commit_load_context.rb
- app/controllers/projects/commit_controller.rb 1 addition, 0 deletionsapp/controllers/projects/commit_controller.rb
- app/controllers/projects/compare_controller.rb 4 additions, 0 deletionsapp/controllers/projects/compare_controller.rb
- app/controllers/projects/merge_requests_controller.rb 4 additions, 0 deletionsapp/controllers/projects/merge_requests_controller.rb
- app/models/commit.rb 41 additions, 2 deletionsapp/models/commit.rb
- app/views/projects/commits/_diffs.html.haml 18 additions, 4 deletionsapp/views/projects/commits/_diffs.html.haml
- features/project/commits/commits.feature 8 additions, 0 deletionsfeatures/project/commits/commits.feature
- features/steps/project/project_browse_commits.rb 20 additions, 0 deletionsfeatures/steps/project/project_browse_commits.rb
- features/support/env.rb 1 addition, 1 deletionfeatures/support/env.rb
- spec/support/big_commits.rb 8 additions, 0 deletionsspec/support/big_commits.rb
spec/support/big_commits.rb
0 → 100644
Please register or sign in to comment