- 16 6月, 2017 40 次提交
-
-
由 Yorick Peterse 提交于
This changes ProjectsFinder#init_collection so it no longer relies on a UNION. For example, to get starred projects of a user we used to run: SELECT projects.* FROM projects WHERE projects.pending_delete = 'f' AND ( projects.id IN ( SELECT projects.id FROM projects INNER JOIN users_star_projects ON users_star_projects.project_id = projects.id INNER JOIN project_authorizations ON projects.id = project_authorizations.project_id WHERE projects.pending_delete = 'f' AND project_authorizations.user_id = 1 AND users_star_projects.user_id = 1 UNION SELECT projects.id FROM projects INNER JOIN users_star_projects ON users_star_projects.project_id = projects.id WHERE projects.visibility_level IN (20, 10) AND users_star_projects.user_id = 1 ) ) ORDER BY projects.id DESC; With these changes the above query is turned into the following instead: SELECT projects.* FROM projects INNER JOIN users_star_projects ON users_star_projects.project_id = projects.id WHERE projects.pending_delete = 'f' AND ( EXISTS ( SELECT 1 FROM project_authorizations WHERE project_authorizations.user_id = 1 AND (project_id = projects.id) ) OR projects.visibility_level IN (20,10) ) AND users_star_projects.user_id = 1 ORDER BY projects.id DESC; This query in turn produces a better execution plan and takes less time, though the difference is only a few milliseconds (this however depends on the amount of data involved and additional conditions that may be added).
-
由 Rémy Coutable 提交于
Add French translations for Cycle Analytics, Project, and Repository pages. Closes #32998 and #33140 See merge request !12200
-
由 Rémy Coutable 提交于
Speed up used languages calculation on charts page See merge request !12212
-
由 Robert Speicher 提交于
set ENV['prometheus_multiproc_dir'] in config/boot.rb instead of config.ru See merge request !12201
-
由 Sean McGivern 提交于
We removed calls from our code to Rugged::Repository#fetch_attributes: <https://gitlab.com/gitlab-org/gitlab_git/commit/340e111e040ae847b614d35b4d3173ec48329015> However, we didn't remove calls from within Linguist. This method is only called when calculating the languages for a repository on the Charts page: <https://github.com/github/linguist/blob/v4.7.0/lib/linguist/lazy_blob.rb#L33-L36> We can safely use our own Gitlab::Git::Attributes here. On staging, for the GitLab CE repo, this makes the calculation take about a third of the time: # Before Benchmark.realtime do Linguist::Repository.new(repository.rugged, repository.rugged.head.target_id).languages end #=> 23.67193900188431 # After Benchmark.realtime do Linguist::Repository.new(repository.rugged, repository.rugged.head.target_id).languages end #=> 8.945212290156633
-
由 Rémy Coutable 提交于
Wait for all Ajax and Vue requests to complete in JavaScript tests Closes #33756 See merge request !12203
-
由 Achilleas Pipinellis 提交于
Convdev docs See merge request !12189
-
由 Rémy Coutable 提交于
Clarify job selection algorithm docs See merge request !12199
-
由 Rémy Coutable 提交于
Use the same way to invalidate cache from EE See merge request !12187
-
由 Achilleas Pipinellis 提交于
-
由 Dmitriy Zaporozhets 提交于
Expose correct path to group See merge request !12176
-
由 Alfredo Sumaran 提交于
-
由 Grzegorz Bizon 提交于
Fix intermittent spec failures in spec/finders/pipelines_finder_spec.rb See merge request !12207
-
由 Timothy Andrew 提交于
[ci skip]
-
由 Tim Zallmann 提交于
Replace PhantomJS with Chrome in Karma test runner (2nd attempt) Closes #33633 See merge request !12144
-
由 Achilleas Pipinellis 提交于
Issue board docs See merge request !12197
-
由 Achilleas Pipinellis 提交于
Jira integ docs See merge request !12196
-
由 Victor Wu 提交于
-
由 Achilleas Pipinellis 提交于
Confidential issues redesign docs See merge request !12195
-
由 Stan Hu 提交于
The spec was trying to sort pipelines by user ID, but the same user ID was being used for each pipeline in the spec. This is similar to #33001.
-
由 Stan Hu 提交于
-
由 Stan Hu 提交于
-
由 Stan Hu 提交于
-
由 Stan Hu 提交于
From logs in #33756, we that it's possible for an Ajax call to be made before the middleware receives it. To prevent stray Ajax calls from breaking other specs, we need to wait for all scheduled calls to finish. Closes #33756
-
由 Jacob Schatz 提交于
Update ruby metrics endpoint text to be clearer See merge request !12157
-
由 Joshua Lambert 提交于
-
由 Pawel Chojnacki 提交于
-
由 Mike Greiling 提交于
-
由 Erwan GEORGET 提交于
-
由 Erwan GEORGET 提交于
-
由 Robert Speicher 提交于
Unify email layouts: devise emails See merge request !10483
-
由 Robert Speicher 提交于
Support a configurable Rails asset_host to allow for CDNs See merge request !12102
-
由 Grzegorz Bizon 提交于
Add a link to spec/migrations/README.md in the testing documentation See merge request !12191
-
由 Stan Hu 提交于
[ci skip]
-
由 Robert Speicher 提交于
Deserialize custom notifications Closes #24892 See merge request !12055
-
由 Joe Marty 提交于
-
由 Stan Hu 提交于
-
由 Victor Wu 提交于
-
由 Victor Wu 提交于
-
由 Robert Speicher 提交于
Try to use the same pattern as other spec in this file Closes #33614 See merge request !12192
-