summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Check if GitHub rate limite API was reached before update Webhooksgh-disable-webhooksDouglas Barbosa Alexandre2016-06-071-0/+1
|
* Merge branch 'zj-workhorse-to-serve-diffs' into 'master' 14722-searching-for-usernames-should-only-be-possible-for-search-strings-with-a-valid-formatJacob Vosmaer (GitLab)2016-06-071-2/+15
|\ | | | | | | | | | | | | | | | | Workhorse to serve raw diffs Fixes (partially) #13999 Dependent on: gitlab-org/gitlab-workhorse!45 See merge request !4130
| * Workhorse to serve raw diffsZeger-Jan van de Weg2016-06-031-2/+15
| |
* | Merge branch 'rename-ci-commit-phase-3' into 'master' Douwe Maan2016-06-071-5/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | Rename ci_commit in application code This is third iteration of renaming `[ci_]commit(s)` in application code to `pipeline(s)`. See merge request !4464
| * \ Merge branch 'rename-ci-commit-phase-2' into rename-ci-commit-phase-3Kamil Trzcinski2016-06-072-4/+4
| |\ \
| * \ \ Merge branch 'rename-ci-commit-phase-2' into rename-ci-commit-phase-3Kamil Trzcinski2016-06-061-1/+1
| |\ \ \
| * \ \ \ Merge branch 'rename-ci-commit-phase-2' into rename-ci-commit-phase-3Kamil Trzcinski2016-06-0625-313/+316
| |\ \ \ \
| * | | | | Rename all ci_commit[s] in application code to pipeline[s]Kamil Trzcinski2016-06-031-5/+5
| | | | | |
* | | | | | Merge branch 'rename-ci-commit-phase-2' into 'master' Douwe Maan2016-06-075-10/+10
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename Ci::Commit in specs This is second iteration of renaming Ci::Commit occurences, this time I try to rename all `let's` and `factories` to match what type of object is created: 1. Rename factories: `ci_[...]_commit_[...]` to `ci_[...]_pipeline_[...]`, 2. Rename all `let's(:[ci_]commit)` to `let(:pipeline)`, 3. Rename all occurrences of `[ci_]commit` to `pipeline` if Pipeline object is created cc @grzesiek @DouweM See merge request !4463
| * | | | | Merge remote-tracking branch 'origin/master' into rename-ci-commit-phase-2Kamil Trzcinski2016-06-072-4/+4
| |\ \ \ \ \ | | |_|_|/ / | |/| | | |
| * | | | | Merge remote-tracking branch 'origin/master' into rename-ci-commitKamil Trzcinski2016-06-061-1/+1
| |\ \ \ \ \ | | |_|_|/ / | |/| | | | | | | | | | | | | | | | # Conflicts: # spec/features/builds_spec.rb
| * | | | | Merge remote-tracking branch 'origin/master' into rename-ci-commitKamil Trzcinski2016-06-0625-313/+316
| |\ \ \ \ \ | | |_|_|/ / | |/| | | |
| * | | | | Merge commit 'ca3c5c295ed653b483fe81c3918ffe60f46666b9' into rename-ci-commitKamil Trzcinski2016-06-034-4/+41
| |\ \ \ \ \ | | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ca3c5c295ed653b483fe81c3918ffe60f46666b9': Let contributors know where to start Ensure branch cleanup regardless of whether the import process succeeds Fix failing todo tests Reorder the todos because the use of the project finder attempts to order them differently Update target todo test to use a public project Use the project finder in the todos finder to limit todos to just ones within projects you have access to. Move filtering todos by projects not pending deletion into a scope on the todo model Reduce the filters on the todos joins project query by being explicit about the join Ensure we don't show TODOS for projects pending delete Fix deprecation warnings in spec/services/issues/bulk_update_service_spec.rb Remove unused Issuable#is_assigned? method fixup! Don't allow merges with new commits fixup! Add `sha` parameter to MR accept API Reduce Namespace queries in UserReferenceFilter Added ReferenceFilter#nodes Returning enums in ReferenceFilter#each_node Don't allow merges with new commits Add `sha` parameter to MR accept API
| * | | | | Fix other places where we still use commit attribute of BuildKamil Trzcinski2016-06-031-3/+3
| | | | | |
| * | | | | Use pipelines in context of ProjectKamil Trzcinski2016-06-032-3/+3
| | | | | |
| * | | | | Try to use `pipeline` where applicableKamil Trzcinski2016-06-031-1/+1
| | | | | |
| * | | | | Rename Ci::Commit to Ci::Pipeline and rename some of the ci_commit to pipelineKamil Trzcinski2016-06-023-3/+3
| | | | | |
* | | | | | Merge branch 'gh-disable-webhooks'Douwe Maan2016-06-072-4/+45
|\ \ \ \ \ \
| * | | | | | Disable Webhooks before proceeding with the GitHub importDouglas Barbosa Alexandre2016-06-062-4/+45
| | |_|_|/ / | |/| | | |
* | | | | | Merge branch 'gh-fix-comments-on-diff'Douwe Maan2016-06-071-0/+5
|\ \ \ \ \ \
| * | | | | | Fix importer for GitHub comments on diffgh-fix-comments-on-diffDouglas Barbosa Alexandre2016-06-061-0/+5
| |/ / / / / | | | | | | | | | | | | | | | | | | Fix comments on diff after LegacyDiffNote was extracted from Note
* | | | | | Merge branch 'gh-rate-limit'Douwe Maan2016-06-076-36/+96
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | |
| * | | | | Move create! method from formatters to the BaseFormatterDouglas Barbosa Alexandre2016-06-065-10/+14
| | | | | |
| * | | | | Import GitHub repositories respecting the API rate limitDouglas Barbosa Alexandre2016-06-065-36/+92
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While Octokit auto pagination set the page size to the maximum 100, and seek to not overstep the rate limit. When the rate limit is reached its raises an exception, and stop doing new requests. Here we use a custom pattern for traversing large lists, so we can check if we’ll reach the rate limit and wait the API to reset the rate limit before making new requests.
* | | | | Fix missed colorize methods.Connor Shea2016-06-061-1/+1
| | | | |
* | | | | Merge branch 'issue_3359' into 'master' Yorick Peterse2016-06-061-3/+3
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Remove duplicated notification settings and add unique index See merge request !4472
| * | | | change add_concurrent_index function argumentsissue_3359Felipe Artur2016-06-061-7/+3
| | | | |
| * | | | Add index to notification settingsFelipe Artur2016-06-031-1/+5
| | |/ / | |/| |
* | | | Add a `U2fRegistrations` table/model.Timothy Andrew2016-06-061-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - To hold registrations from U2F devices, and to authenticate them. - Previously, `User#two_factor_enabled` was aliased to the `otp_required_for_login` column on `users`. - This commit changes things a bit: - `User#two_factor_enabled` is not a method anymore - `User#two_factor_enabled?` checks both the `otp_required_for_login` column, as well as `U2fRegistration`s - Change all instances of `User#two_factor_enabled` to `User#two_factor_enabled?` - Add the `u2f` gem, and implement registration/authentication at the model level.
* | | Merge branch 'rubocop/enable-ambiguous-operator-rubocop-lint' into 'master' Robert Speicher2016-06-052-6/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable Lint/AmbiguousOperator rubocop cop Enforce using parentheses if ambiguous operators are detected, like `header *some_method` or `array.select &:even?`. See #17478 See merge request !4454
| * | | Enable Lint/AmbiguousOperator rubocop coprubocop/enable-ambiguous-operator-rubocop-lintGrzegorz Bizon2016-06-032-6/+6
| | |/ | |/| | | | | | | See #17478
* | | Replace colorize gem with rainbow.Connor Shea2016-06-0319-220/+220
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Colorize is a gem licensed under the GPLv2, so we can’t use it in GitLab without relicensing GitLab under the terms of the GPL. Rainbow is licensed under the MIT license and does the exact same thing as Colorize, so Rainbow was added in place of Colorize. The syntax is slightly different for Rainbow vs. Colorize, and was updated in accordance. The gem is still a dependency of Spinach, so it’s included in the development/test environments, but won’t be packaged with the actual product, and therefore doesn’t require we relicense the product. An attempt at relicensing Colorize was made, but didn’t succeed as the library owner never responded. Rainbow library: https://github.com/sickill/rainbow Relevant issue regarding licensing in GitLab's gems: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3775
* | | Merge branch 'rubocop/enable-empty-lines-around-access-modifier-cop' into ↵Robert Speicher2016-06-031-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'master' Enable Style/EmptyLinesAroundAccessModifier rubocop cop Keep blank lines around access modifiers. See #17478 See merge request !4452
| * | | Enable Style/EmptyLinesAroundAccessModifier rubocop coprubocop/enable-empty-lines-around-access-modifier-copGrzegorz Bizon2016-06-031-0/+1
| |/ / | | | | | | | | | See #17478
* | | Merge branch 'master' into awardablesawardablesZ.J. van de Weg2016-06-0345-319/+687
|\ \ \ | | |/ | |/|
| * | Merge branch 'gh-branch-cleanup' into 'master' Douwe Maan2016-06-031-2/+2
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure branch cleanup regardless of whether the GitHub import process succeeds Closes #17766 See merge request !4450
| | * | Ensure branch cleanup regardless of whether the import process succeedsgh-branch-cleanupDouglas Barbosa Alexandre2016-06-021-2/+2
| | |/
| * | Merge branch '14139-sha-parameter-in-accept-merge-request-api' into 'master' Douwe Maan2016-06-031-0/+5
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolve "SHA parameter in accept merge request API" Add a `sha` parameter to the MR merge API, which must match the source SHA for the branch to be merged. Also add the same parameter to the UI: ![MR_SHA](/uploads/616da728695dc19fa7ef7ef6a016ff81/MR_SHA.gif) @DouweM and I discussed adding some smart feature to that, like updating the source SHA on navigating to the diff tab, but for now it will just require a refresh :smiley: Closes #14139. See merge request !4414
| | * | fixup! Add `sha` parameter to MR accept APISean McGivern2016-06-021-1/+1
| | | |
| | * | Add `sha` parameter to MR accept APISean McGivern2016-06-011-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `sha` parameter is optional, and when present, must match the current HEAD SHA of the source branch. Otherwise, the API call fails with a 409 Conflict and a message containing the current HEAD for the source branch. Also tidy up some doc wording.
| * | | Merge branch 'banzai-user-filter-queries'Douwe Maan2016-06-032-2/+34
| |\ \ \ | | |_|/ | |/| |
| | * | Reduce Namespace queries in UserReferenceFilterbanzai-user-filter-queriesYorick Peterse2016-06-021-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes UserReferenceFilter so it operates using the following steps: 1. Grab all username references from the input document. 2. Query the corresponding Namespace objects using a single query. 3. Iterate over all nodes to build links while re-using the objects queried in step 2. The impact of these changes is that a comment mentioning 5 different usernames no longer runs 5 different queries (1 for every username), instead it only runs a single query.
| | * | Added ReferenceFilter#nodesYorick Peterse2016-06-021-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | This method returns an Array of the HTML nodes as yielded by ReferenceFilter#each_node. The method's return value is memoized to allow multiple calls without having to re-query the input document.
| | * | Returning enums in ReferenceFilter#each_nodeYorick Peterse2016-06-021-0/+2
| | |/ | | | | | | | | | | | | This changes ReferenceFilter#each_node so that when it's called without a block an Enumerator is returned.
| * | Fix serious performance bug with rendering Markdown with InlineDiffFilterStan Hu2016-06-011-4/+8
| |/ | | | | | | | | | | | | | | | | Nokogiri's `node.replace` was being unnecessarily called for every text node in the document due to a comparison bug. The code previously was comparing the HTML representation of the full document against the text node, which would always fail. Fix the comparison to just compare the modified text. Closes #18011
| * Merge branch 'style/enable-semicolon-rubocop-cop' into 'master' Robert Speicher2016-06-011-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | Enable Style/Semicolon rubocop style cop Don't use semicolons to terminate expressions. See #17478. See merge request !4351
| | * Enable Style/Semicolon rubocop style copstyle/enable-semicolon-rubocop-copGrzegorz Bizon2016-06-011-1/+1
| | | | | | | | | | | | See #17478
| * | Merge branch 'separate-banzai-references' into 'master' Douwe Maan2016-06-0129-276/+596
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Separate reference gathering from rendering This is a required step to allow batch processing when gathering references. This in turn would allow grabbing (for example) all mentioned users of an issue/merge request using a single query. cc @rspeicher @DouweM See merge request !3969
| | * | Split Markdown rendering & reference gatheringYorick Peterse2016-05-2628-276/+562
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This splits the Markdown rendering and reference extraction phases into two distinct code bases. The reference extraction phase no longer relies on the html-pipeline Gem (and any related code) and allows for extracting of references from multiple HTML nodes in a single pass. This means that if you want to extract user references from 200 comments you no longer need to run 200 times N number of queries, instead only a handful of queries may be needed.
| | * | Added Gitlab::LazyYorick Peterse2016-05-261-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This class can be used to lazy-evaluate blocks of code the first time they're called. This can be useful when a method performs a certain heavy operation (e.g. a SQL query) that you only want to perform whenever the result is used for the first time.