-
- Downloads
Truncate tree to max 1,000 items and display notice to users
Rendering ten thousands of tree items consumes a lot of server time and can cause timeouts in extreme cases. Realistically, displaying more than 1,000 files is probably not useful so truncate and show the user a notice instead. 'Find files' can be used to locate specific files beyond the 1,000 limit.
Showing
- app/assets/stylesheets/pages/tree.scss 6 additions, 1 deletionapp/assets/stylesheets/pages/tree.scss
- app/helpers/tree_helper.rb 12 additions, 3 deletionsapp/helpers/tree_helper.rb
- app/views/projects/tree/_truncated_notice_tree_row.html.haml 7 additions, 0 deletionsapp/views/projects/tree/_truncated_notice_tree_row.html.haml
- changelogs/unreleased/tree_item_limit.yml 5 additions, 0 deletionschangelogs/unreleased/tree_item_limit.yml
- spec/helpers/tree_helper_spec.rb 29 additions, 3 deletionsspec/helpers/tree_helper_spec.rb
changelogs/unreleased/tree_item_limit.yml
0 → 100644
Please register or sign in to comment