summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Rename ENV['PROTOCOL'] to ENV['GL_PROTOCOL'] to conform to what GitLab Shell ↵Patricio Cano2016-07-052-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | expects and make the `protocol` param in `GitAccess` mandatory.
* | | | | | Only allow Git Access on the allowed protocolPatricio Cano2016-07-054-5/+37
| | | | | |
* | | | | | Merge branch 'update-gemoji' into 'master' Robert Speicher2016-07-053-3/+24
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add lib/gitlab/emoji.rb instead of gitlab_emoji gem and upgrade Gemojione - No reason to split it into a separate gem when the gem barely did anything. We can use gemojione directly, making updating gemojione that much easier. Unless there's a particularly good reason we were using the gem? - Fixes the Rake task since it broke after all the AwardEmoji changes. - Update gemojione to 2.6.1. Spring Update changes! http://emojione.com/releases/#2.2.0 See merge request !4919
| * | | | | Add emoji.rb in lib/gitlab instead of using the gitlab_emoji gem.update-gemojiConnor Shea2016-06-293-3/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No reason to split it into a separate gem when the gem barely did anything. We can use gemojione directly, making updating gemojione that much easier. Also fix the Rake task and update gemojione to 2.6.1. This adds the EmojiOne Spring update. Changelog: https://github.com/jonathanwiesel/gemojione/blob/master/CHANGELOG.md
* | | | | | RailsCache metrics now includes fetch_hit/fetch_miss and read_hit/read_miss ↵Paco Guzman2016-07-051-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | info.
* | | | | | Instrument cache fetch hit and cache fetch missesPaco Guzman2016-07-051-0/+12
| | | | | |
* | | | | | Merge branch 'refactor/ci-config-move-global-entries' into 'master' Rémy Coutable2016-07-0519-139/+364
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move global ci entries handling from legacy to new config ## What does this MR do? This MR moves responsibility of handling global CI config entries (like `image`, `services`), from legacy `GitlabCiYamlProcessor` to new CI Config ## Why was this MR needed? This is the next iteration of CI configuration refactoring ## What are the relevant issue numbers? #15060 ## Does this MR meet the acceptance criteria? - Tests - [x] Added for this feature/bug - [x] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) See merge request !4820
| * | | | | Add minor improvements in readability in CI configrefactor/ci-config-move-global-entriesGrzegorz Bizon2016-07-043-4/+3
| | | | | |
| * | | | | Extract CI configuration entry node factory methodGrzegorz Bizon2016-07-041-8/+12
| | | | | |
| * | | | | Improve description of CI types node and in specsGrzegorz Bizon2016-06-301-1/+1
| | | | | |
| * | | | | Explicitly define entry node class in new CI configGrzegorz Bizon2016-06-292-11/+11
| | | | | |
| * | | | | Add CI config entry validator for allowed keysGrzegorz Bizon2016-06-294-18/+17
| | | | | |
| * | | | | Return compound value if CI config node is compositeGrzegorz Bizon2016-06-291-1/+6
| | | | | |
| * | | | | Move global CI cache configuration to new CI classesGrzegorz Bizon2016-06-292-29/+3
| | | | | |
| * | | | | Add global cache config entry to new CI configGrzegorz Bizon2016-06-295-6/+19
| | | | | |
| * | | | | Add CI config entry location info to error messageGrzegorz Bizon2016-06-292-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | This CI config entry location in configuration Hash.
| * | | | | Make it possible to set parent in CI config nodeGrzegorz Bizon2016-06-292-3/+4
| | | | | |
| * | | | | Merge branch 'master' into refactor/ci-config-move-global-entriesGrzegorz Bizon2016-06-2840-253/+557
| |\ \ \ \ \ | | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (352 commits) Display last commit of deleted branch in push events (!4699) add changelog add missing attribute to attr_encrypted so it is fully backwards-compatible Add "GitLab team members only" to diagram link doc: note that .gitattributes uses default branch use the conf lexer so we have highlighted comments first draft of docs support cgi style options, such as erb?parent=json move the path alias to a more appropriate location make #custom_language private appease rubocop add an alias for Snippet#path appease rubocop check the tag so that an instance will pass too fix the spec, using project.change_head Revert "bump the master sha for gitlab-test!9" bump the master sha for gitlab-test!9 add custom highlighting via .gitattributes Rename Licenses API to License Templates API Check for conflict with wiki projects when creating a new project. ...
| * | | | | Validate interface only with CI node validatorGrzegorz Bizon2016-06-272-15/+17
| | | | | |
| * | | | | Add new ci config entry that handles cache configGrzegorz Bizon2016-06-273-12/+58
| | | | | |
| * | | | | Add ci config entry that represents array of pathsGrzegorz Bizon2016-06-241-0/+18
| | | | | |
| * | | | | Add ci config class that represents a boolean valueGrzegorz Bizon2016-06-242-0/+28
| | | | | |
| * | | | | Add ci config class that represents a key valueGrzegorz Bizon2016-06-242-0/+28
| | | | | |
| * | | | | Fix ci config cache validation in legacy processorGrzegorz Bizon2016-06-241-2/+2
| | | | | |
| * | | | | Minor refactorings in new CI configuration classesGrzegorz Bizon2016-06-234-4/+8
| | | | | |
| * | | | | Move CI stages configuration to new CI configGrzegorz Bizon2016-06-238-22/+59
| | | | | |
| * | | | | Assume that unspecified CI config is undefinedGrzegorz Bizon2016-06-233-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We assume that when someone adds a key for the configuration entry, but does not provide a valid value, which causes entry to be `nil`, then entry should be considered as the undefined one. We also assume this is semantically correct, this is also backwards compatible with legacy CI config processor. See issue #18775 for more details.
| * | | | | Return default config value when entry is undefinedGrzegorz Bizon2016-06-226-20/+32
| | | | | |
| * | | | | Handle CI environment variables in a new CI configGrzegorz Bizon2016-06-225-6/+38
| | | | | |
| * | | | | Rename CI config null node entry to undefined nodeGrzegorz Bizon2016-06-223-16/+9
| | | | | |
| * | | | | Return CI entry config as value by defaultGrzegorz Bizon2016-06-214-14/+3
| | | | | |
| * | | | | Handle after script CI config in new classesGrzegorz Bizon2016-06-214-16/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also makes Script to return an array of commands instead of concatented command, which is our current direction.
| * | | | | Handle CI services config in new CI config classesGrzegorz Bizon2016-06-214-7/+28
| | | | | |
| * | | | | Move CI image configuration entry to new CI configGrzegorz Bizon2016-06-213-12/+13
| | | | | |
| * | | | | Add image configuration entry to new ci configGrzegorz Bizon2016-06-211-0/+22
| | | | | |
| * | | | | Use generic type validator in new ci configurationGrzegorz Bizon2016-06-212-4/+7
| | | | | |
* | | | | | Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhqDmitriy Zaporozhets2016-07-041-2/+0
|\ \ \ \ \ \
| * \ \ \ \ \ Merge branch 'master' into dev-masterTomasz Maczukin2016-07-0264-329/+517
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (98 commits) Enable Style/EmptyLines cop, remove redundant ones Update CHANGELOG Cache results from jQuery selectors to retrieve namespace name Fix import button when import fail due the namespace already been taken Fix snippets comments not displayed Fix emoji paths in relative root configurations Exclude requesters from Project#members, Group#members and User#members Upgrade Thin from 1.6.1 to 1.7.0. Many squashed commits Cache autocomplete results Upgrade Sidekiq from 4.1.2 to 4.1.4. Upgrade seed-fu from 2.3.5 to 2.3.6 use has_many relationship with events Support creating a todo on issuables via API Expose target, filter by state as string Add todos API documentation and changelog Improve the request / withdraw access button Metrics for Rouge::Plugins::Redcarpet and Rouge::Formatters::HTMLGitlab Groundwork for Kerberos SPNEGO (EE feature) Update CHANGELOG 8.9.5 for runners related fixes ...
| * \ \ \ \ \ \ Merge branch '19312-confidential-issue' into 'master' Douwe Maan2016-06-301-2/+0
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix privilege escalation issue with OAuth external users Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/19312 This MR fixes a privilege escalation issue, where manually set external users would be reverted back to internal users if they logged in via OAuth and that provider was not in the `external_providers` list. /cc @douwe See merge request !1975
| | * | | | | | | Fixed privilege escalation issue where manually set external users would be ↵Patricio Cano2016-06-291-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reverted back to internal users if they logged in via OAuth and that provider was not in the `external_providers` list.
* | | | | | | | | Merge branch 'more_descriptive_git_shell_messages' into 'master' Dmitriy Zaporozhets2016-07-041-2/+7
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle custom Git hook result in GitLab UI ## What does this MR do? This MR fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/19190 It allows to show messages from git custom hooks ## Screenshots (if relevant) ![joxi_screenshot_1467651998090](/uploads/7f814523c96712c07b4f4b52c843aab3/joxi_screenshot_1467651998090.png) See merge request !5073
| * | | | | | | | | Handle custom Git hook result in GitLab UIValery Sizov2016-07-041-2/+7
| | | | | | | | | |
* | | | | | | | | | Merge branch 'save-artifacts_sizes' into 'master' Rémy Coutable2016-07-041-2/+1
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Save artifacts sizes ## What does this MR do? Introduce ci_builds.artifacts_size as an integer, so that it's easier to access than reading from the file again. ## What are the relevant issue numbers? Closes #18869 See merge request !4964
| * | | | | | | | | Merge remote-tracking branch 'upstream/master' into save-artifacts_sizesLin Jen-Shin2016-07-0472-358/+591
| |\ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (175 commits) Document Repository#keep_around Don't garbage collect commits that have related DB records like comments Update CHANGELOG Update RedCloth to 4.3.2 for CVE-2012-6684 Fix typo in Merge Requests API documentation Downgrade to Redis 3.2.2 due to massive memory leak with Sidekiq Enable Style/EmptyLines cop, remove redundant ones Update CHANGELOG Cache results from jQuery selectors to retrieve namespace name Fix import button when import fail due the namespace already been taken Fix snippets comments not displayed Fix emoji paths in relative root configurations Exclude requesters from Project#members, Group#members and User#members Upgrade Thin from 1.6.1 to 1.7.0. Many squashed commits Cache autocomplete results Upgrade Sidekiq from 4.1.2 to 4.1.4. Upgrade seed-fu from 2.3.5 to 2.3.6 use has_many relationship with events Support creating a todo on issuables via API ...
| * | | | | | | | | Use AR callbacks as suggested by:Lin Jen-Shin2016-06-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12744656
| * | | | | | | | | Prefer Ci::Build#erase_artifacts!Lin Jen-Shin2016-06-281-2/+1
| | | | | | | | | |
| * | | | | | | | | Just save the size in total rather than individual filesLin Jen-Shin2016-06-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12741046
| * | | | | | | | | Introduce ci_builds.artifacts_sizes as JSON:Lin Jen-Shin2016-06-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We store the sizes as a hash from path to bytes like: ``` ruby {'ci_artifacts.txt' => 27, 'other_artifacts_0.1.2/another-subdirectory/banana_sample.gif' => 71759, 'other_artifacts_0.1.2/doc_sample.txt' => 1314, 'rails_sample.jpg' => 35255, 'tests_encoding/utf8 test dir ✓/regular_file_2' => 7} ``` So that it's easier to access than reading gzip file again.
* | | | | | | | | | Better message for git hooks and file locksValery Sizov2016-07-041-4/+9
| |/ / / / / / / / |/| | | | | | | |
* | | | | | | | | Enable Style/EmptyLines cop, remove redundant onesrubocop/enable-cops-for-empty-linesGrzegorz Bizon2016-07-0134-45/+0
| | | | | | | | |