Find a file
Yorick Peterse 709dd23760
Added partial index for merge requests
This index is added on `(target_project_id, iid)` and has a `WHERE state
= 'opened'` condition. Using this index we can drastically improve the
performance of the query used to count the total number of merge
requests in a group. Without this index the query would eventually
perform the following:

    ->  Index Scan using index_merge_requests_on_target_project_id_and_iid on merge_requests  (cost=0.43..4.89 rows=7 width=4) (actual time=0.058..0.353 rows=6 loops=228)
          Index Cond: (target_project_id = projects.id)
          Filter: ((state)::text = 'opened'::text)
          Rows Removed by Filter: 141
          Buffers: shared hit=34351 dirtied=1

Out of the ~180 milliseconds the entire query would take, around 170
milliseconds was spent in just this segment. With the index in place,
the above segment is turned into the following:

    ->  Index Only Scan using yorick_test on merge_requests  (cost=0.42..0.55 rows=7 width=4) (actual time=0.004..0.010 rows=6 loops=228)
          Index Cond: (target_project_id = projects.id)
          Heap Fetches: 419
          Buffers: shared hit=1381

The index also reduces the total query time to roughly 10 milliseconds.
2018-05-28 13:52:41 +02:00
.github
.gitlab Improve the squash step in the 'Database Changes' MR template 2018-05-15 10:55:47 +02:00
app Reduce queries in GroupProjectsFinder 2018-05-28 13:52:37 +02:00
bin Merge branch 'blackst0ne-remove-spinach' into 'master' 2018-05-15 09:43:55 +00:00
builds
changelogs Merge branch 'sh-fix-admin-page-counts-take-2' into 'master' 2018-05-28 10:36:26 +00:00
config Merge branch '45190-create-notes-diff-files' into 'master' 2018-05-28 09:47:06 +00:00
db Added partial index for merge requests 2018-05-28 13:52:41 +02:00
doc Add docs for frontend accessibility 2018-05-27 19:24:12 +00:00
docker
fixtures/emojis
generator_templates
lib Eager load project routes for issue references 2018-05-28 13:38:20 +02:00
locale Fix sentence for i18n 2018-05-21 14:03:46 -07:00
log
plugins/examples
public
qa Merge branch 'master' into bootstrap4 2018-05-21 09:17:16 -05:00
rubocop Introduce spec/fast_spec_helper.rb to run spec files that don't rely on the whole Rails env 2018-04-23 12:20:30 +02:00
scripts Merge branch 'dz-no-ee-check' into 'master' 2018-05-22 16:26:30 +00:00
shared
spec Merge branch 'sh-fix-admin-page-counts-take-2' into 'master' 2018-05-28 10:36:26 +00:00
symbol
tmp
vendor Merge branch '5779_rename_code_quality_job_and_artifact' into 'master' 2018-05-24 15:58:28 +00:00
.babelrc only apply rewire plugin when running karma tests 2018-04-23 00:54:21 -05:00
.codeclimate.yml
.csscomb.json
.eslintignore
.eslintrc
.flayignore Add handling for commit/tags with big messages 2018-05-18 20:51:10 +02:00
.foreman
.gitignore Ignore knapsack and rspec_flaky 2018-05-04 20:51:03 +08:00
.gitlab-ci.yml Do not update project's .gitlab-ci.yml right now 2018-05-23 19:26:57 -04:00
.haml-lint.yml
.mailmap
.nvmrc
.pkgr.yml
.prettierignore
.prettierrc
.rubocop.yml
.rubocop_todo.yml Move spec helpers/matchers/shared examples/contexts to their relevant folder 2018-04-23 12:20:30 +02:00
.ruby-version
.scss-lint.yml
CHANGELOG.md Update CHANGELOG.md for 10.8.1 2018-05-23 14:07:58 -05:00
config.ru
CONTRIBUTING.md Merge branch 'update-ux-section' into 'master' 2018-05-17 21:46:20 +00:00
doc_styleguide.md
docker-compose.yml
Gemfile Use Gitaly's DeleteAllRepositories RPC during backup restore 2018-05-28 09:58:14 +00:00
Gemfile.lock Use Gitaly's DeleteAllRepositories RPC during backup restore 2018-05-28 09:58:14 +00:00
Gemfile.rails5
Gemfile.rails5.lock Update Gemfile.rails5.lock 2018-05-14 18:56:38 +11:00
GITALY_SERVER_VERSION Use Gitaly's DeleteAllRepositories RPC during backup restore 2018-05-28 09:58:14 +00:00
GITLAB_PAGES_VERSION Use GitLab Pages v0.9.1 2018-04-30 11:39:02 +01:00
GITLAB_SHELL_VERSION
GITLAB_WORKHORSE_VERSION Upgrade workhorse to v4.2.1 2018-05-22 17:39:16 +02:00
LICENSE edit GitLab license info in regards to CC licensing 2018-05-15 15:04:48 -07:00
MAINTENANCE.md
package.json Merge branch 'master' into bootstrap4 2018-05-24 16:48:54 -05:00
PROCESS.md
Procfile
Rakefile
README.md Remove Gemnasium badge from project README.md 2018-05-25 01:40:33 +09:00
VERSION Update VERSION to 11.0.0-pre 2018-05-21 11:25:29 -05:00
yarn.lock Merge branch 'master' into bootstrap4 2018-05-24 16:48:54 -05:00

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.

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.

Is it any good?

Yes

Is it awesome?

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