Go to file
Stan Hu 575dced5d7 If migrations are pending, make CurrentSettings use existing values and populate missing columns with defaults
master was failing because `ApplicationSetting.create_from_defaults` attempted
to write to a column that did not exist in the database. This occurred in a
`rake db:migrate` task, which was unable to perform the migration that would
have added the missing column in the first place.

In 9.3 RC2, we also had a bug where password sign-ins were disabled because
there were many pending migrations. The problem occurred because
`fake_application_settings` was being returned with an OpenStruct that did not
include the predicate method `signup_enabled?`. As a result, the value would
erroneously return `nil` instead of `true`. This commit uses the values of the
defaults to mimic this behavior.

This commit also refactors some of the logic to be clearer.
2017-06-19 09:54:48 -07:00
.github
.gitlab Ask for an example project for bug reports 2017-05-31 18:39:37 +08:00
app Merge branch 'mr-widget-memory-usage-tech-debt-fix' into 'master' 2017-06-17 08:27:42 +00:00
bin Add gitaly source installation instructions 2017-03-21 14:55:41 +01:00
builds
changelogs Merge branch 'mr-widget-memory-usage-tech-debt-fix' into 'master' 2017-06-17 08:27:42 +00:00
config Merge branch 'fix-atom-eslint' into 'master' 2017-06-18 07:52:18 +00:00
db Add table for files in merge request diffs 2017-06-16 18:30:01 +01:00
doc Add table for files in merge request diffs 2017-06-16 18:30:01 +01:00
docker Update README.md 2016-10-13 14:43:05 +00:00
features Don't include Capybara::DSL in the global scope 2017-06-15 18:33:44 -07:00
fixtures/emojis Added emoji description title to award emoji buttons 2017-04-24 14:24:48 +01:00
generator_templates Add remove_concurrent_index to database helper 2017-04-06 09:53:57 +11:00
lib If migrations are pending, make CurrentSettings use existing values and populate missing columns with defaults 2017-06-19 09:54:48 -07:00
locale Merge branch 'bvl-missing-translations' into 'master' 2017-06-16 16:16:35 +00:00
log
public shows go back link only when history is available 2017-04-07 14:24:04 +00:00
qa Dockerize headless chrome browser for GitLab QA 2017-05-25 09:36:39 +02:00
rubocop Require rubocop-rspec in the correct location 2017-06-14 17:08:34 -05:00
scripts Ignore CVE-2017-5029 in Nokogiri 2017-06-12 23:12:07 +02:00
shared Add GitLab Pages 2017-01-31 22:50:39 +00:00
spec If migrations are pending, make CurrentSettings use existing values and populate missing columns with defaults 2017-06-19 09:54:48 -07:00
tmp Move Prometheus presentation logic to PrometheusText 2017-06-02 19:45:58 +02:00
vendor Fix vendor/peek.js so that it can be bundled with Webpack 2017-06-09 17:21:39 +02:00
.babelrc Update droplab 2017-04-07 13:57:03 +00:00
.codeclimate.yml Exclude more path from codeclimate job 2017-06-14 19:26:35 +03:00
.csscomb.json Remove SCSS rules for short hex chars. 2016-10-03 20:40:22 -04:00
.eslintignore Started internationalising cycyle analytics 2017-04-15 16:07:31 +01:00
.eslintrc update linter to catch uses of commonjs syntax 2017-05-18 15:05:41 -05:00
.flayignore [Issue sorting]Addressed review comments 2017-03-14 14:11:59 +02:00
.foreman
.gitignore instruct yarn to utilize the persistant .yarn-cache directory 2017-05-16 00:18:45 -05:00
.gitlab-ci.yml Merge branch 'karma-headless-chrome-redux' into 'master' 2017-06-16 07:06:39 +00:00
.haml-lint.yml HAMLLint: Enable `MultilinePipe` rule 2017-01-24 10:09:28 -08:00
.mailmap
.pkgr.yml
.rspec
.rubocop.yml Enable RSpec/SingleLineHook cop 2017-06-14 13:19:05 -05:00
.rubocop_todo.yml Enable the Style/PreferredHashMethods cop 2017-06-02 19:11:26 +02:00
.ruby-version Bump ruby version 2016-12-03 15:57:20 +01:00
.scss-lint.yml Enable DuplicateProperty scss-lint 2017-05-26 20:31:07 +00:00
CHANGELOG.md Update CHANGELOG.md for 9.2.6 2017-06-16 08:08:50 +00:00
CONTRIBUTING.md Remove FE team label 2017-05-05 15:31:14 +01:00
GITALY_SERVER_VERSION Use gitaly 0.11.2 2017-06-12 14:45:03 +02:00
GITLAB_PAGES_VERSION Update GitLab Pages to v0.4.3 2017-06-06 12:45:06 +01:00
GITLAB_SHELL_VERSION Update GITLAB_SHELL_VERSION 2017-05-31 21:21:35 +00:00
GITLAB_WORKHORSE_VERSION Update gitlab-workhorse to v2.1.1 2017-06-09 17:14:02 +01:00
Gemfile Merge branch '29010-perf-bar' into 'master' 2017-06-12 19:23:49 +00:00
Gemfile.lock Merge branch '29010-perf-bar' into 'master' 2017-06-12 19:23:49 +00:00
LICENSE Update LICENSE to 2017 2017-02-08 22:58:40 +00:00
MAINTENANCE.md
PROCESS.md Improving copy of CONTRIBUTING.md, PROCESS.md, and code_review.md 2017-05-04 09:02:39 +02:00
Procfile remove changes to Procfile 2017-02-01 16:23:26 -06:00
README.md gitter badge in the readme pointing to gitlabhq/gitlabhq 2017-04-27 16:45:17 +01:00
Rakefile
VERSION Update VERSION to 9.3.0-pre 2017-05-22 15:32:40 +00:00
config.ru set ENV['prometheus_multiproc_dir'] in config/boot.rb instead of config.ru 2017-06-15 23:41:47 +02:00
doc_styleguide.md
docker-compose.yml
package.json upgrade jasmine to attempt to resolve browser timeout issues 2017-06-14 13:59:32 -05:00
yarn.lock upgrade jasmine to attempt to resolve browser timeout issues 2017-06-14 13:59:32 -05:00

README.md

GitLab

Build status Overall test coverage Code Climate Core Infrastructure Initiative Best Practices Gitter

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.md for details.

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.

Is it any good?

Yes

Is it awesome?

Thanks for asking this question Joshua. These people seem to like it.