summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | Use feature flag instead of application settigns to control if method calls ↵pawel/update_prometheus_gem_to_well_tested_versionPawel Chojnacki2017-11-232-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | should be instrumented
| * | | | | | Use only real duration to measure method call performance via PrometheusPawel Chojnacki2017-11-231-21/+6
| | | | | | |
| * | | | | | check method timing threshold when observing method performancePawel Chojnacki2017-11-231-2/+2
| | | | | | |
| * | | | | | Reenable prometheus metricsPawel Chojnacki2017-11-231-3/+3
| | | | | | |
| * | | | | | Move prometheus middle ware to prometheus initialized.Pawel Chojnacki2017-11-232-2/+11
| | | | | | |
* | | | | | | Fix hashed storage for attachments bugsJames Lopez2017-11-231-2/+1
| | | | | | |
* | | | | | | Merge branch 'dm-cleanup-fetch-and-mirror-methods' into 'master'Sean McGivern2017-11-235-41/+47
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up repository fetch and mirror methods See merge request gitlab-org/gitlab-ce!15424
| * | | | | | | Rename fetch_refs to refmapDouwe Maan2017-11-234-22/+23
| | | | | | | |
| * | | | | | | Clean up repository fetch and mirror methodsDouwe Maan2017-11-235-38/+43
| | |/ / / / / | |/| | | | |
* | | | | | | Merge branch 'jej-rename-legacy-protected-branches-api-service' into 'master'Rémy Coutable2017-11-231-2/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Renamed ProtectedBranches::ApiUpdateService to LegacyApiUpdateService See merge request gitlab-org/gitlab-ce!15575
| * | | | | | | Renamed ProtectedBranches::ApiUpdateService to LegacyApiUpdateServicejej-rename-legacy-protected-branches-api-serviceJames Edwards-Jones2017-11-231-2/+2
| | |_|/ / / / | |/| | | | |
* | | | | | | Merge branch '39887-move-identical-check-to-merged-branches' into 'master'Douwe Maan2017-11-232-4/+18
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move identical merged branch check to merged_branch_names Closes #39887 See merge request gitlab-org/gitlab-ce!15464
| * | | | | | | Move identical merged branch check to merged_branch_namesLin Jen-Shin2017-11-232-4/+18
| | |_|/ / / / | |/| | | | |
* | | | | | | Merge branch 'reviewing-db-changes' into 'master'Rémy Coutable2017-11-2313-0/+104
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added Rubocop config for background migrations See merge request gitlab-org/gitlab-ce!15576
| * | | | | | | Added Rubocop config for background migrationsreviewing-db-changesYorick Peterse2017-11-2313-0/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a Rubocop configuration file specific to lib/gitlab/background_migrations. This configuration will be used to (hopefully) make reviewing background migrations easier by enforcing stricter rules compared to the rest of GitLab. Because this configuration is directory specific it will only affect background migrations.
* | | | | | | | Merge branch 'use-merge-requests-diff-id-column' into 'master'Douwe Maan2017-11-232-1/+3
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use foreign key to get latest MR diff Closes #37631 See merge request gitlab-org/gitlab-ce!15126
| * | | | | | | | Use latest_merge_request_diff associationSean McGivern2017-11-232-1/+3
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compared to the merge_request_diff association: 1. It's simpler to query. The query uses a foreign key to the merge_request_diffs table, so no ordering is necessary. 2. It's faster for preloading. The merge_request_diff association has to load every diff for the MRs in the set, then discard all but the most recent for each. This association means that Rails can just query for N diffs from N MRs. 3. It's more complicated to update. This is a bidirectional foreign key, so we need to update two tables when adding a diff record. This also means we need to handle this as a special case when importing a GitLab project. There is some juggling with this association in the merge request model: * `MergeRequest#latest_merge_request_diff` is _always_ the latest diff. * `MergeRequest#merge_request_diff` reuses `MergeRequest#latest_merge_request_diff` unless: * Arguments are passed. These are typically to force-reload the association. * It doesn't exist. That means we might be trying to implicitly create a diff. This only seems to happen in specs. * The association is already loaded. This is important for the reasons explained in the comment, which I'll reiterate here: if we a) load a non-latest diff, then b) get its `merge_request`, then c) get that MR's `merge_request_diff`, we should get the diff we loaded in c), even though that's not the latest diff. Basically, `MergeRequest#merge_request_diff` is the latest diff in most cases, but not quite all.
* | | | | | | | Merge branch 'jk-group-mentions-fix' into 'master'Sean McGivern2017-11-231-1/+2
|\ \ \ \ \ \ \ \ | |_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix link text from group context Closes gitlab-ee#4100 See merge request gitlab-org/gitlab-ce!15565
| * | | | | | | Fix link text from group contextJarka Kadlecova2017-11-231-1/+2
| | |_|_|_|/ / | |/| | | | |
* | | | | | | Allow password authentication to be disabled entirelyMarkus Koller2017-11-236-15/+31
| |_|/ / / / |/| | | | |
* | | | | | Merge branch '40463-ee-compatibility-check-job-fails-unexpectedly' into 'master'Sean McGivern2017-11-231-6/+6
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolve "EE Compatibility Check Job Fails Unexpectedly" Closes #40463 See merge request gitlab-org/gitlab-ce!15555
| * | | | | In EeCompatCheck, always reset to canonical-ee/master when applying a patch40463-ee-compatibility-check-job-fails-unexpectedlyRémy Coutable2017-11-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | | | Generate the patch against `origin/#{branch}` instead of just `#{branch}`Rémy Coutable2017-11-221-1/+1
| | | | | |
| * | | | | Try to always find the merge base using `origin/#{branch}` instead of just ↵Rémy Coutable2017-11-221-1/+1
| | |_|/ / | |/| | | | | | | | | | | | | `#{branch}`
* | | | | Fix encoding bugs in Gitlab::Git::UserJacob Vosmaer (GitLab)2017-11-232-2/+11
|/ / / /
* | | | Merge branch '32620-speed-up-unicorn-specs' into 'master'Rémy Coutable2017-11-222-2/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Speed up Unicorn specs by using a dummy Rack application instead of GitLab Closes #32620 See merge request gitlab-org/gitlab-ce!15548
| * | | | Speed up Unicorn specs by using a dummy Rack application instead of GitLabNick Thomas2017-11-222-2/+1
| | | | |
* | | | | Merge branch 'pawel/disable_prometheus_metrics' into 'master'Stan Hu2017-11-221-3/+3
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Temporarily force disable prometheus metrics See merge request gitlab-org/gitlab-ce!15549
| * | | | Force disable Prometheus metricsPawel Chojnacki2017-11-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Until https://gitlab.com/gitlab-org/prometheus-client-mmap/merge_requests/11 is ready, Prometheus metrics will not work and cause issues such as #40457.
* | | | | Merge branch '40354-improve-ee_compat_check' into 'master'Sean McGivern2017-11-221-31/+38
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | Try to find the merge-base against the canonical master and name the remotes See merge request gitlab-org/gitlab-ce!15495
| * | | | Try to find the merge-base against the canonical masterRémy Coutable2017-11-221-31/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, name the remotes in Gitlab::EeCompatCheck Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | | | Merge branch '39720-group-milestone-sorting' into 'master'Sean McGivern2017-11-221-0/+40
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | Add Group Milestone sorting Closes #39720 See merge request gitlab-org/gitlab-ce!15230
| * | | | Add group milestone to feature spec and minor changesGeorge Andrinopoulos2017-11-071-7/+7
| | | | |
| * | | | Add Group Milestone sortingGeorge Andrinopoulos2017-11-071-0/+40
| | | | |
* | | | | Merge branch 'feature_add_mermaid' into 'master'Phil Hughes2017-11-225-32/+42
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support of Mermaid Closes #3711 See merge request gitlab-org/gitlab-ce!15107
| * | | | | Add support of MermaidVitaliy @blackst0ne Klachkov2017-11-225-32/+42
| | | | | |
* | | | | | Add FetchSourceBranch Gitaly callJacob Vosmaer (GitLab)2017-11-224-8/+45
| |_|_|/ / |/| | | |
* | | | | ignore hashed repos (for now) when using `rake gitlab:cleanup:repos`Brett Walker2017-11-211-1/+4
| | | | |
* | | | | Merge branch '39977-gitlab-shell-default-timeout' into 'master'Douwe Maan2017-11-211-2/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set the default gitlab-shell timeout to 3 hours Closes #39977 See merge request gitlab-org/gitlab-ce!15292
| * | | | | Set the default gitlab-shell timeout to 3 hoursNick Thomas2017-11-211-2/+1
| | |_|/ / | |/| | |
* | | | | Use `make install` for Gitaly setups in non-test environmentsAlejandro Rodríguez2017-11-211-3/+8
|/ / / /
* | | | Merge branch 'sh-optimize-read-only-check' into 'master'Douwe Maan2017-11-211-1/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Optimize read-only middleware so that it does not consume as much CPU Closes #40185 and gitlab-com/infrastructure#3240 See merge request gitlab-org/gitlab-ce!15504
| * | | | Revert "check for `read_only?` first before seeing if request is disallowed"digitalMoksha2017-11-211-1/+1
| | | | | | | | | | | | | | | | | | | | This reverts commit 91075c8237307e09c2be8a88ffb3711fd62417d1.
| * | | | check for `read_only?` first before seeing if request is disallowedsh-optimize-read-only-checkdigitalMoksha2017-11-211-1/+1
| | | | |
| * | | | use `Gitlab::Routing.url_helpers` instead of ↵digitalMoksha2017-11-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `Rails.application.routes.url_helpers` since `Rails.application.routes.url_helpers` creates a new anonymous module every time it's called
| * | | | Optimize read-only middleware so that it does not consume as much CPUStan Hu2017-11-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In !15082, we changed the behavior of the middleware to call `Rails.application.routes.recognize_path` whenever a new route arrived. However, this can be a CPU-intensive task because Rails needs to allocate memory and compile 850+ different regular expressions, which are complicated in GitLab. As a short-term fix, we can do a lightweight string match before we do the heavier comparison. Closes #40185, gitlab-com/infrastructure#3240
* | | | | Skip confirmation user apiDaniel Juarez2017-11-211-1/+2
| | | | |
* | | | | Merge branch ↵Sean McGivern2017-11-211-2/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '39461-notes-api-for-issues-no-longer-returns-label-additions-removals' into 'master' Resolve "Notes API for issues no longer returns label additions/removals" Closes #39461 See merge request gitlab-org/gitlab-ce!15080
| * | | | | add `#with_metadata` scope to remove a N+1 from the notes' APImicael.bergeron2017-11-211-2/+2
| | | | | |
* | | | | | Batchload blobs for diff generationZeger-Jan van de Weg2017-11-214-14/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After installing a new gem, batch-loader, a construct can be used to queue data to be fetched in bulk. The gem was also introduced in both gitlab-org/gitlab-ce!14680 and gitlab-org/gitlab-ce!14846, but those mrs are not merged yet. For the generation of diffs, both the old blob and the new blob need to be loaded. This for every file in the diff, too. Now we collect all these so we do 1 fetch. Three `.allow_n_plus_1_calls` have been removed, which I expect to be valid, but this needs to be confirmed by a full CI run. Possibly closes: - https://gitlab.com/gitlab-org/gitlab-ce/issues/37445 - https://gitlab.com/gitlab-org/gitlab-ce/issues/37599 - https://gitlab.com/gitlab-org/gitlab-ce/issues/37431