summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | | | Improve EE compatibility with protected branch access levels.Timothy Andrew2016-08-162-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Change a few incorrect `access_level` to `access_levels.first` that were missed in e805a64. 2. `API::Entities` can iterate over all access levels instead of just the first one. This makes no difference to CE, and makes it more compatible with EE.
| | * | | | | | | | Backport changes from gitlab-org/gitlab-ee!581 to CE.Timothy Andrew2016-08-161-2/+2
| | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | !581 has a lot of changes that would cause merge conflicts if not properly backported to CE. This commit/MR serves as a better foundation for gitlab-org/gitlab-ee!581. = Changes = 1. Move from `has_one {merge,push}_access_level` to `has_many`, with the `length` of the association limited to `1`. This is _effectively_ a `has_one` association, but should cause less conflicts with EE, which is set to `has_many`. This has a number of related changes in the views, specs, and factories. 2. Make `gon` variable loading more consistent (with EE!581) in the `ProtectedBranchesController`. Also use `::` to prefix the `ProtectedBranches` services, because this is required in EE. 3. Extract a `ProtectedBranchAccess` concern from the two access level models. This concern only has a single `humanize` method here, but will have more methods in EE. 4. Add `form_errors` to the protected branches creation form. This is not strictly required for EE compatibility, but was an oversight nonetheless.
| | * | | | | | | Merge branch 'akismet-submittable' into 'master' Robert Speicher2016-08-152-49/+0
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submit to Akismet Part 1 (Issues) Related to #5932 #5573 gitlab-com/infrastructure#14 See merge request !5538
| | | * | | | | | | Refactored AkismetHelper into AkismetService and cleaned up `Spammable`Patricio Cano2016-08-152-83/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Refactored SpamCheckService into SpamService
| | | * | | | | | | Allow `SpamLog` to be submitted as hamPatricio Cano2016-08-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added `submitted_as_ham` to `SpamLog` to mark which logs have been submitted to Akismet. - Added routes and controller action.
| | | * | | | | | | Refactored spam related code even furtherPatricio Cano2016-08-152-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Removed unnecessary column from `SpamLog` - Moved creation of SpamLogs out of its own service and into SpamCheckService - Simplified code in SpamCheckService. - Moved move spam related code into Spammable concern
| | | * | | | | | | Complete refactor of the `Spammable` concern and tests:Patricio Cano2016-08-152-1/+35
| | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Merged `AkismetSubmittable` into `Spammable` - Clean up `SpamCheckService` - Added tests for `Spammable` - Added submit (ham or spam) options to `AkismetHelper`
| * | | | | | | | Merge branch 'fix-failing-tests' into pipeline-hooks-without-slackKamil Trzcinski2016-08-1510-69/+296
| |\ \ \ \ \ \ \ \ | | |/ / / / / / /
| * | | | | | | | Merge remote-tracking branch 'origin/master' into pipeline-hooks-without-slackKamil Trzcinski2016-08-153-7/+7
| |\ \ \ \ \ \ \ \ | | | |/ / / / / / | | |/| | | | / / | | |_|_|_|_|/ / | |/| | | | | |
| * | | | | | | Merge branch 'improve-pipeline-processing' into pipeline-hooks-without-slackKamil Trzcinski2016-08-125-23/+52
| |\ \ \ \ \ \ \ | | | |_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # app/models/ci/pipeline.rb # app/models/commit_status.rb # app/services/ci/create_pipeline_service.rb # spec/models/ci/pipeline_spec.rb
| * | | | | | | Simplify the name for data builder, feedback:Lin Jen-Shin2016-08-124-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13671791
| * | | | | | | Prefer extend self over module_function, feedback:Lin Jen-Shin2016-08-124-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13672004 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13810498
| * | | | | | | Remove stage parameter from send payloadKamil Trzcinski2016-08-111-5/+1
| | | | | | | |
| * | | | | | | Merge remote-tracking branch 'origin/master' into pipeline-hooks-without-slackKamil Trzcinski2016-08-1120-840/+303
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # app/models/ci/pipeline.rb # app/services/ci/create_pipeline_service.rb # spec/models/project_services/hipchat_service_spec.rb
| * \ \ \ \ \ \ \ Merge remote-tracking branch 'upstream/master' into pipeline-hooks-without-slackLin Jen-Shin2016-08-1152-354/+618
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (233 commits) Fix awardable button mutuality loading spinners Update CHANGELOG for 8.10.5 Clean up project destruction Small refactor of doc/development/README.md Avoid commit lookup on diff_helper Removed extra newline from redis_spec.rb Used cached value of project count to reduce DB load Remove duplicate link_to statements Mention add_column_with_default in downtime guide Add missing space to generic badge template Rename `run` task helper method to prevent conflict with StateMachine Add a method in Project to return a cached value of total count of projects spellcheck Add svg guidelines to ui guide Add Changelog entry for Grape upgrade [ci skip] Fix Grape tests. Retain old behavior Update Grape from 0.13.0 to 0.15.0. adds second batch of tests changed to active tense fixes part1 of files to start using active tense ...
| * | | | | | | | | We still need to skip loading config_processor if skip_ci?Lin Jen-Shin2016-08-051-1/+1
| | | | | | | | | |
| * | | | | | | | | Move those builders to their own namespace, feedback:Lin Jen-Shin2016-08-043-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13540099
| * | | | | | | | | Implement pipeline hooks, extracted from !5525Lin Jen-Shin2016-08-023-2/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #20115
* | | | | | | | | | Merge branch 'master' into mc-uiDouwe Maan2016-08-1513-76/+303
|\ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|/ / / / | |/| | | | | | | |
| * | | | | | | | | Add small corrections to test coverage report badgeGrzegorz Bizon2016-08-151-2/+2
| | | | | | | | | |
| * | | | | | | | | Add metadata and template methods for coverage badgeGrzegorz Bizon2016-08-151-0/+8
| | | | | | | | | |
| * | | | | | | | | Extract base abstract template for badgesGrzegorz Bizon2016-08-153-35/+51
| | | | | | | | | |
| * | | | | | | | | Add template class for coverage report badgeGrzegorz Bizon2016-08-151-0/+69
| | | | | | | | | |
| * | | | | | | | | Extract the abstract base class of badge metadataGrzegorz Bizon2016-08-153-22/+42
| | | | | | | | | |
| * | | | | | | | | Add coverage report badge metadata classGrzegorz Bizon2016-08-151-0/+38
| | | | | | | | | |
| * | | | | | | | | Implement the main class of test coverage badgeGrzegorz Bizon2016-08-151-1/+30
| | | | | | | | | |
| * | | | | | | | | Refactor badge template and metadata classesGrzegorz Bizon2016-08-154-14/+19
| | | | | | | | | |
| * | | | | | | | | Move badges to separate modules and add base classGrzegorz Bizon2016-08-157-49/+74
| | | | | | | | | |
| * | | | | | | | | Add empty test coverage badge class and specsGrzegorz Bizon2016-08-151-0/+17
| | |_|_|_|/ / / / | |/| | | | | | |
| * | | | | | | | Merge branch '20842-todos-queries-cache' into 'master' Yorick Peterse2016-08-151-5/+3
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Try to get back todo's cache or at least avoid hitting the database See merge request !5789
| | * | | | | | | | Recover usage of Todos counter cache20842-todos-queries-cachePaco Guzman2016-08-121-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We’re being kept up to date the counter data but we’re not using it. The only thing which is not real if is the number of projects that the user read changes the number of todos can be stale for some time. The counters will be sync just after the user receives a new todo or mark any as done
| | * | | | | | | | Use cache for todos counter calling TodoServicePaco Guzman2016-08-121-1/+1
| | | |_|_|/ / / / | | |/| | | | | |
| * | | | | | | | Merge branch 'change-access-update' into 'master' Yorick Peterse2016-08-151-1/+1
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the order of the access rules to check simpler first, and add specs See merge request !5799
| | * | | | | | | | Change the order of the access rules to check simpler first, and add specschange-access-updateAlejandro Rodríguez2016-08-121-1/+1
| | |/ / / / / / /
| * | | | | | | | Fix a memory leak caused by Banzai::Filter::SanitizationFilterfix/sanitization-filter-leakAhmad Sherif2016-08-141-1/+3
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Banzai::Filter::SanitizationFilter#customize_whitelist, we append three lambdas that has reference to the SanitizationFilter instance, which in turn (potentially) has a reference to the following chain: context hash -> Project instance -> Repository instance -> lookup hash -> various Rugged instances -> various mmap-ed git pack files. All of the above is not garbage collected because the array we append the lambdas to is the constant HTML::Pipeline::SanitizationFilter::WHITELIST.
* | | | | | | | Fix bug where conflict view would have one too many context sectionsDouwe Maan2016-08-121-2/+4
| | | | | | | |
* | | | | | | | Find match line headers by backtrackingSean McGivern2016-08-121-11/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is more efficient for large files than performing a regex match on every single line.
* | | | | | | | Add more tests for conflictsSean McGivern2016-08-121-1/+1
| | | | | | | |
* | | | | | | | Move resolving code to ResolveServiceSean McGivern2016-08-122-29/+0
| | | | | | | |
* | | | | | | | Clarify Conflict::File#sections methodSean McGivern2016-08-121-3/+19
| | | | | | | |
* | | | | | | | Don't allow resolving invalid conflictsSean McGivern2016-08-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An MR can only be resolved in the UI if: - It has conflicts. - It has valid diff_refs (in other words, it supports new diff notes). - It has no conflicts with one side missing. - It has no conflicts in binary files. - It has no conflicts in files too large to display. - It has no conflicts containing invalid conflict markers.
* | | | | | | | Add blob_icon to conflict file JSONSean McGivern2016-08-121-2/+4
| | | | | | | |
* | | | | | | | Add blob_path to conflict file JSONSean McGivern2016-08-122-4/+10
| | | | | | | |
* | | | | | | | Use same resolution format on FE and BESean McGivern2016-08-122-4/+5
| | | | | | | |
* | | | | | | | Fix specsSean McGivern2016-08-124-18/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add match line header to expected result for `File#sections`. - Lowercase CSS colours. - Remove unused `diff_refs` keyword argument. - Rename `parent` -> `parent_file`, to be more explicit. - Skip an iteration when highlighting.
* | | | | | | | Fix match line headers at start / end of fileSean McGivern2016-08-121-16/+33
| | | | | | | |
* | | | | | | | Handle case where one side deleted the fileSean McGivern2016-08-121-3/+5
| | | | | | | |
* | | | | | | | Highlight files based on merged fileSean McGivern2016-08-121-2/+5
| | | | | | | |
* | | | | | | | Remove unneeded raiseSean McGivern2016-08-121-3/+0
| | | | | | | |
* | | | | | | | Add match line headersSean McGivern2016-08-121-1/+8
| | | | | | | |