- 10 Mar, 2016 1 commit
-
-
Yorick Peterse authored
The method Project#ci_services would load all services into memory (including _all_ their columns) and then use Enumerable#select to reduce the list. Project#ci_service in turn would further reduce this list down to just 1 Service instance. Instead of doing all this in Ruby we can just offload the work to the database, reducing the amount of time spent in these methods. These changes reduce the time of the first call to Project#ci_services from around 240 ms to around 10 ms, though the final timings will vary based on database load. Because Project#ci_service is memoized there's no further overhead introduced by using a database query. Fixes gitlab-org/gitlab-ce#14186
-
- 09 Mar, 2016 1 commit
-
-
Douglas Barbosa Alexandre authored
-
- 07 Mar, 2016 14 commits
-
-
tiagonbotelho authored
-
tiagonbotelho authored
removes automatic setting of main_language to project for it to set a main language you have now to make a commit to the project
-
tiagonbotelho authored
-
tiagonbotelho authored
-
tiagonbotelho authored
-
tiagonbotelho authored
-
tiagonbotelho authored
-
tiagonbotelho authored
-
tiagonbotelho authored
-
tiagonbotelho authored
-
tiagonbotelho authored
-
tiagonbotelho authored
-
Jacob Vosmaer authored
-
Rubén Dávila authored
-
- 05 Mar, 2016 1 commit
-
-
Rubén Dávila authored
Make methods return ActiveRecord Relations instead of Arrays.
-
- 03 Mar, 2016 1 commit
-
-
Jacob Vosmaer authored
-
- 02 Mar, 2016 1 commit
-
-
Rubén Dávila authored
-
- 26 Feb, 2016 1 commit
-
-
Yorick Peterse authored
This ensures that if a project is later re-created using the old path it doesn't end up re-using the old cache. This also ensures we don't keep the cache around until its expired by Redis itself. Fixes gitlab-org/gitlab-ce#13790
-
- 24 Feb, 2016 2 commits
-
-
James Lopez authored
-
James Lopez authored
-
- 23 Feb, 2016 1 commit
-
-
Yorick Peterse authored
This keeps all the cache expiration code in a single file/class instead of spreading it all across the codebase.
-
- 17 Feb, 2016 1 commit
-
-
Rémy Coutable authored
Fixes #13367.
-
- 16 Feb, 2016 1 commit
-
-
Yorick Peterse authored
The "default_branch" argument is never used and the "project" argument isn't optional.
-
- 11 Feb, 2016 1 commit
-
-
Kirill Zaitsev authored
- Add `avatar_url`, `description`, `git_ssh_url`, `git_http_url`, `path_with_namespace` and `default_branch` in `project` in push, issue, merge-request and note webhooks data - Deprecate the `ssh_url` in favor of `git_ssh_url` and `http_url` in favor of `git_http_url` in `project` for push, issue, merge-request and note webhooks data - Deprecate the `repository` key in push, issue, merge-request and note webhooks data, use `project` instead
-
- 08 Feb, 2016 1 commit
-
-
Yorick Peterse authored
This caches the output of the following methods: * Repository#empty? * Repository#has_visible_content? * Repository#root_ref The cache for Repository#has_visible_content? is flushed whenever a commit is pushed to a new branch or an existing branch is removed. The cache for Repository#root_ref is only flushed whenever a user changes the default branch of a project. The cache for Repository#empty? is never explicitly flushed as there's no need for it.
-
- 05 Feb, 2016 2 commits
-
-
James Lopez authored
-
James Lopez authored
-
- 03 Feb, 2016 3 commits
-
-
James Lopez authored
-
James Lopez authored
-
James Lopez authored
-
- 29 Jan, 2016 1 commit
-
-
Josh Frye authored
-
- 28 Jan, 2016 1 commit
-
-
Douwe Maan authored
-
- 27 Jan, 2016 2 commits
-
-
Douwe Maan authored
-
Yorick Peterse authored
By simply loading the first event from the already sorted set we save ourselves extra (slow) queries just to get the latest update timestamp. This removes the need for Event.latest_update_time and significantly reduces the time needed to build an Atom feed. Fixes gitlab-org/gitlab-ce#12415
-
- 26 Jan, 2016 1 commit
-
-
Yorick Peterse authored
By instead using a sub-query we save ourselves the overhead of loading any data into memory only to pass it on to another query.
-
- 22 Jan, 2016 2 commits
-
-
Rubén Dávila authored
-
Valery Sizov authored
-
- 20 Jan, 2016 1 commit
-
-
Rubén Dávila authored
-