gitlab-org--gitlab-foss/spec/models
Dmitriy Zaporozhets 29b6d465a7 Merge branch 'rs-dev-issue-2355' into 'master'
MergeRequest#show performance improvements

This is a first pass on improving the performance of the `MergeRequests#show` page. Notable changes:

- The "Commits" tab is loaded lazily, so the initial page load should be much faster for MRs with many commits.
- Relative timestamps via `timeago` are only initialized once per load instead of `O(n^2)`. This greatly improves frontend rendering times for a large number of commits.
- Refactored `User.find_for_commit` to use a single ARel-generated SQL query instead of the old method which resulted in one query, and could result in up to three.

See merge request !838
2015-06-22 09:48:49 +00:00
..
concerns ensure_length_of -> validate_length_of 2015-06-10 01:31:26 -04:00
hooks Add support for Webhook note events 2015-05-21 23:48:16 -04:00
members Re-annotate models 2015-05-03 13:38:27 -07:00
project_services Look for .gitlab-ci.yml only if checkout_sha is present 2015-06-15 17:54:42 +02:00
application_setting_spec.rb session_expire_seconds => session_expire_delay 2015-06-10 22:10:00 -04:00
broadcast_message_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
commit_range_spec.rb Update CommitRange#to_reference to use full SHAs 2015-05-26 15:48:31 -04:00
commit_spec.rb Add `to_reference` for models that support references 2015-05-26 15:48:30 -04:00
deploy_key_spec.rb Re-annotate models 2015-05-03 13:38:27 -07:00
deploy_keys_project_spec.rb "expect { }.not_to raise_error" no longer takes a specific class 2015-06-10 01:31:27 -04:00
event_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
external_issue_spec.rb Add `to_reference` for models that support references 2015-05-26 15:48:30 -04:00
external_wiki_service_spec.rb Change `foo.should` syntax to `expect(foo).to` in specs 2015-06-13 18:37:30 -04:00
forked_project_link_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
group_spec.rb Add `to_reference` for models that support references 2015-05-26 15:48:30 -04:00
issue_spec.rb Minor model spec cleanups 2015-05-26 15:48:30 -04:00
key_spec.rb ensure_length_of -> validate_length_of 2015-06-10 01:31:26 -04:00
label_link_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
label_spec.rb Support only double quotes for multi-word label references 2015-05-26 15:49:20 -04:00
member_spec.rb Re-annotate models 2015-05-03 13:38:27 -07:00
merge_request_spec.rb Make use of to_reference in more specs 2015-05-26 15:49:22 -04:00
milestone_spec.rb Change percent_complete rescue value from 100 to 0 2015-05-26 14:57:53 -04:00
namespace_spec.rb Move files for moved namespaces. 2015-03-31 09:30:34 +02:00
note_spec.rb Update noteable after a new note is added 2015-06-05 15:22:55 +02:00
project_security_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
project_snippet_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
project_spec.rb ensure_length_of -> validate_length_of 2015-06-10 01:31:26 -04:00
project_team_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
project_wiki_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
protected_branch_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
repository_spec.rb Refactor repository specs 2015-03-22 11:01:45 -07:00
service_spec.rb Re-annotate models 2015-05-03 13:38:27 -07:00
snippet_spec.rb Make snippet filename optional. 2015-06-20 01:06:57 +02:00
user_spec.rb Merge branch 'rs-dev-issue-2355' into 'master' 2015-06-22 09:48:49 +00:00
wiki_page_spec.rb Fix dots in Wiki slug causing errors 2015-03-21 18:33:51 -07:00