Find a file
Toon Claes 6823e7defb Work around a bug in Rails 5, where LIMIT causes trouble
The original code caused Rails to generate invalid SQL. The problem
lays in the `.arel` method in `ActiveRecord::Relation`. When there was
a `limit` on the relation, the `LIMIT` statement was taken over to
Arel, but the value wasn't.

```ruby
relation = Event.limit(2)
relation.to_sql
#=> "SELECT  `events`.* FROM `events` LIMIT 2"
relation.arel.to_sql
#=> "SELECT  `events`.* FROM `events` LIMIT ?"
```

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/51729
2018-09-25 11:49:57 +02:00
.github
.gitlab Add @mkozono to CODEOWNERS for LDAP 2018-09-07 16:32:45 +00:00
app Merge branch 'deploy-tokens' into 'master' 2018-09-25 09:37:08 +00:00
bin Correct Gitlab Capitalization in code files 2018-09-21 12:05:37 +00:00
builds
changelogs Use Vue component for job artifacts, Commit and Trigger Variables 2018-09-25 08:07:47 +00:00
config Remove background job throttling feature 2018-09-24 18:41:14 +03:00
danger Relax the subject line requirements for commits 2018-09-19 15:27:50 +02:00
db Remove background job throttling feature 2018-09-24 18:41:14 +03:00
doc Merge branch 'patch-28' into 'master' 2018-09-25 09:40:10 +00:00
docker
fixtures/emojis
generator_templates
lib Work around a bug in Rails 5, where LIMIT causes trouble 2018-09-25 11:49:57 +02:00
locale Use Vue component for job artifacts, Commit and Trigger Variables 2018-09-25 08:07:47 +00:00
log
plugins/examples
public Update robots.txt (#51167) 2018-09-07 07:27:29 +00:00
qa QA: Fix failure in merge_merge_request_from_fork_spec.rb 2018-09-20 15:48:38 +00:00
rubocop Fix leading slash in redirects and add cop 2018-09-21 14:10:20 +00:00
scripts Refactor scripts/trigger-build and post a commit note with the downstream pipeline URL for omnibus triggers 2018-09-24 18:24:13 +02:00
shared
spec Use Vue component for job artifacts, Commit and Trigger Variables 2018-09-25 08:07:47 +00:00
symbol
tmp
vendor Vendor Auto-DevOps.gitlab-ci from gitlab-ci-yml 2018-09-17 09:19:47 -05:00
.babelrc
.codeclimate.yml
.csscomb.json
.eslintignore
.eslintrc.yml Resolve eslint-plugin-vue errors 2018-09-20 02:39:50 -05:00
.foreman
.gitattributes
.gitignore Generate JUnit report for Karma tests 2018-09-11 21:03:05 +00:00
.gitlab-ci.yml Refactor scripts/trigger-build and post a commit note with the downstream pipeline URL for omnibus triggers 2018-09-24 18:24:13 +02:00
.haml-lint.yml Enable Lint/UselessAssignment for haml-lint 2018-08-31 18:24:18 -07:00
.mailmap
.nvmrc
.pkgr.yml
.prettierignore
.prettierrc
.rubocop.yml Correct Gitlab Capitalization in code files 2018-09-21 12:05:37 +00:00
.rubocop_todo.yml Fix rubocop Style/ZeroLengthPredicate 2018-09-18 14:31:17 +05:00
.ruby-version
.scss-lint.yml
CHANGELOG.md Correct Gitlab Capitalization in code files 2018-09-21 12:05:37 +00:00
config.ru
CONTRIBUTING.md Resolve character encodings in CONTRIBUTING 2018-09-17 17:10:09 +00:00
Dangerfile Added Danger file to lint commit messages 2018-09-10 14:12:58 +02:00
docker-compose.yml
Gemfile Remove background job throttling feature 2018-09-24 18:41:14 +03:00
Gemfile.lock Remove background job throttling feature 2018-09-24 18:41:14 +03:00
Gemfile.rails5
Gemfile.rails5.lock Remove background job throttling feature 2018-09-24 18:41:14 +03:00
GITALY_SERVER_VERSION Update Gitlay server version to 0.121.0 2018-09-13 15:36:14 -03:00
GITLAB_PAGES_VERSION Bump GitLab Pages to v1.1.0 2018-08-29 17:15:10 -07:00
GITLAB_SHELL_VERSION Update GitLab Shell to v8.3.3 2018-09-14 17:09:42 +01:00
GITLAB_WORKHORSE_VERSION Fix attachments not displaying inline with Google Cloud Storage 2018-09-05 17:01:54 -07:00
INSTALLATION_TYPE
LICENSE properly wrap LICENSE file 2018-09-08 13:19:35 +02:00
MAINTENANCE.md
package.json Upgrade webpack-bundle-analyzer to latest 2018-09-24 11:13:50 -05:00
PROCESS.md Document the need for feature flags 2018-09-18 16:52:44 +02:00
Procfile
Rakefile
README.md Merge branch 'patch-28' into 'master' 2018-08-20 11:44:45 +00:00
VERSION Update VERSION to 11.4.0-pre 2018-09-21 11:38:10 +00:00
yarn.lock Upgrade webpack-bundle-analyzer to latest 2018-09-24 11:13:50 -05:00

GitLab

Test coverage

  • Ruby coverage Ruby
  • JavaScript coverage JavaScript

Canonical source

The canonical source of GitLab Community Edition is hosted on GitLab.com.

Open source software to collaborate on code

To see how GitLab looks please see the features page on our website.

  • Manage Git repositories with fine grained access controls that keep your code secure
  • Perform code reviews and enhance collaboration with merge requests
  • Complete continuous integration (CI) and CD pipelines to builds, test, and deploy your applications
  • Each project can also have an issue tracker, issue board, and a wiki
  • Used by more than 100,000 organizations, GitLab is the most popular solution to manage Git repositories on-premises
  • Completely free and open source (MIT Expat license)

Hiring

We're hiring developers, support people, and production engineers all the time, please see our jobs page.

Editions

There are two editions of GitLab:

  • GitLab Community Edition (CE) is available freely under the MIT Expat license.
  • GitLab Enterprise Edition (EE) includes extra features that are more useful for organizations with more than 100 users. To use EE and get official support please become a subscriber.

Website

On about.gitlab.com you can find more information about:

Requirements

Please see the requirements documentation for system requirements and more information about the supported operating systems.

Installation

The recommended way to install GitLab is with the Omnibus packages on our package server. Compared to an installation from source, this is faster and less error prone. Just select your operating system, download the respective package (Debian or RPM) and install it using the system's package manager.

There are various other options to install GitLab, please refer to the installation page on the GitLab website for more information.

You can access a new installation with the login root and password 5iveL!fe, after login you are required to set a unique password.

Contributing

GitLab is an open source project and we are very happy to accept community contributions. Please refer to Contributing to GitLab page for more details.

Licensing

GitLab Community Edition (CE) is available freely under the MIT Expat license.

All third party components incorporated into the GitLab Software are licensed under the original license provided by the owner of the applicable component.

All Documentation content that resides under the doc/ directory of this repository is licensed under Creative Commons: CC BY-SA 4.0.

Install a development environment

To work on GitLab itself, we recommend setting up your development environment with the GitLab Development Kit. If you do not use the GitLab Development Kit you need to install and setup all the dependencies yourself, this is a lot of work and error prone. One small thing you also have to do when installing it yourself is to copy the example development unicorn configuration file:

cp config/unicorn.rb.example.development config/unicorn.rb

Instructions on how to start GitLab and how to run the tests can be found in the getting started section of the GitLab Development Kit.

Software stack

GitLab is a Ruby on Rails application that runs on the following software:

  • Ubuntu/Debian/CentOS/RHEL/OpenSUSE
  • Ruby (MRI) 2.3
  • Git 2.8.4+
  • Redis 2.8+
  • PostgreSQL (preferred) or MySQL

For more information please see the architecture documentation.

UX design

Please adhere to the UX Guide when creating designs and implementing code.

Third-party applications

There are a lot of third-party applications integrating with GitLab. These include GUI Git clients, mobile applications and API wrappers for various languages.

GitLab release cycle

For more information about the release process see the release documentation.

Upgrading

For upgrading information please see our update page.

Documentation

All documentation can be found on docs.gitlab.com/ce/.

Getting help

Please see Getting help for GitLab on our website for the many options to get help.

Why?

Read here

Is it any good?

Yes

Is it awesome?

These people seem to like it.