Find a file
Yorick Peterse 6ec53f5d48
Cache the number of open issues and merge requests
Every project page displays a navigation menu that in turn displays the
number of open issues and merge requests. This means that for every
project page we run two COUNT(*) queries, each taking up roughly 30
milliseconds on GitLab.com. By caching these numbers and refreshing them
whenever necessary we can reduce loading times of all these pages by up
to roughly 60 milliseconds.

The number of open issues does not include confidential issues. This is
a trade-off to keep the code simple and to ensure refreshing the data
only needs 2 COUNT(*) queries instead of 3. A downside is that if a
project only has 5 confidential issues the counter will be set to 0.

Because we now have 3 similar counting service classes the code
previously used in Projects::ForksCountService has mostly been moved to
Projects::CountService, which in turn is reused by the various service
classes.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/36622
2017-08-23 13:42:29 +02:00
.github
.gitlab Added a template for database changes 2017-08-10 13:04:08 +02:00
app Cache the number of open issues and merge requests 2017-08-23 13:42:29 +02:00
bin Merge branch '21949-add-type-to-changelog' into 'master' 2017-08-10 21:56:57 +00:00
builds
changelogs Cache the number of open issues and merge requests 2017-08-23 13:42:29 +02:00
config Setup repositories settings properly 2017-08-17 16:00:07 -07:00
db Merge branch 'rs-trailingwhitespace-cop' into 'master' 2017-08-16 10:27:46 +00:00
doc Merge branch 'docs/docker-entrypoint' into 'master' 2017-08-17 20:29:31 +00:00
docker
features Enable Layout/TrailingWhitespace cop and auto-correct offenses 2017-08-15 13:44:37 -04: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 Merge branch 'gitaly_ref_exists' into 'master' 2017-08-18 10:20:50 +00:00
locale Add support for i18n on Project Activity Page 2017-08-18 10:00:32 +00:00
log
public Remove public/ci/favicon.ico 2017-07-12 10:13:47 +09:00
qa Whitelist or fix additional Gitlab/PublicSend cop violations 2017-08-14 12:14:11 -04:00
rubocop Add SaferBooleanColumn cop 2017-08-14 07:57:57 -07:00
scripts Retrieve and sync flaky specs report from and to S3 2017-08-11 14:55:10 +02:00
shared
spec Cache the number of open issues and merge requests 2017-08-23 13:42:29 +02:00
tmp Move Prometheus presentation logic to PrometheusText 2017-06-02 19:45:58 +02:00
vendor Add two more project templates 2017-08-15 12:55:54 +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
.eslintignore Started internationalising cycyle analytics 2017-04-15 16:07:31 +01:00
.eslintrc Correct eslintrc comma dangle 2017-08-04 13:14:54 +01:00
.flayignore Store MergeWorker JID on merge request, and clean up stuck merges 2017-08-07 15:23:37 -03:00
.foreman
.gitignore Support multiple Redis instances based on queue type 2017-07-11 03:35:47 +00:00
.gitlab-ci.yml Update Git version for source installs to match Omnibus 2017-08-16 10:28:37 +00:00
.haml-lint.yml Add custom linter for inline JavaScript to haml_lint (!9742) 2017-08-07 11:37:16 +02:00
.mailmap
.nvmrc Update .nvmrc to 7.5 2017-06-22 13:43:59 +01:00
.pkgr.yml
.rubocop.yml Merge branch 'rs-more-public-send-whitelists' into 'master' 2017-08-16 11:25:26 +00:00
.rubocop_todo.yml Enable Layout/TrailingWhitespace cop and auto-correct offenses 2017-08-15 13:44:37 -04:00
.ruby-version
.scss-lint.yml Merge branch 'enable-scss-lint-declaration-order' into 'master' 2017-07-12 20:40:26 +00:00
CHANGELOG.md Update CHANGELOG.md for 9.4.5 2017-08-14 12:31:20 +01:00
config.ru set ENV['prometheus_multiproc_dir'] in config/boot.rb instead of config.ru 2017-06-15 23:41:47 +02:00
CONTRIBUTING.md Remove outdated ~Frontend label in CONTRIBUTING.md 2017-07-25 19:00:49 +02:00
doc_styleguide.md
docker-compose.yml
Gemfile Client Implementation: RefService::RefExists 2017-08-18 09:43:58 +01:00
Gemfile.lock Client Implementation: RefService::RefExists 2017-08-18 09:43:58 +01:00
GITALY_SERVER_VERSION Client Implementation: RefService::RefExists 2017-08-18 09:43:58 +01:00
GITLAB_PAGES_VERSION Upgrade GitLab Pages to v0.5.0 2017-07-04 12:40:48 +01:00
GITLAB_SHELL_VERSION Bump gitlab-shell version to 5.8.0 to fix Git for Windows 2.14 2017-08-07 08:04:45 -07:00
GITLAB_WORKHORSE_VERSION Migrate Workhorse SendBlob to Gitaly 2017-07-11 16:55:00 +02:00
LICENSE
MAINTENANCE.md
package.json update webpack to v3.5.4 2017-08-15 00:08:15 -05:00
PROCESS.md Document "Pick into Backports" label process 2017-08-10 17:54:45 +01:00
Procfile
Rakefile
README.md fix javascript test coverage badge in README.md 2017-07-14 15:25:29 +00:00
VERSION Update VERSION to 9.5.0-pre 2017-07-22 06:55:36 +01:00
yarn.lock update webpack to v3.5.4 2017-08-15 00:08:15 -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.

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.