Find a file
Stan Hu 8690ca5c28 Eliminate N+1 queries in loading discussions.json endpoint
In #37955,we see that the profile had a number of N+1 queries from repeated
access to `cross_reference_not_visible_for?`. This was optimized in previous
versions of GitLab by rendering all notes at once, counting the number of
visible references, and then using that number to check whether a system note
should be fully redacted.

There was also another N+1 query calling `ProjectTeam#member?`, which did not
take advantage of an optimization in prepare_notes_for_rendering that would
preload the maximum access level per project.

Closes #37955
2017-09-18 06:53:33 -07:00
.github
.gitlab
app Eliminate N+1 queries in loading discussions.json endpoint 2017-09-18 06:53:33 -07:00
bin
builds
changelogs Eliminate N+1 queries in loading discussions.json endpoint 2017-09-18 06:53:33 -07:00
config Revert "Merge branch 'revert-f2421b2b' into 'master'" 2017-09-11 15:44:42 +00:00
db Merge branch 'master' into 'issue_37640' 2017-09-15 20:14:53 +00:00
doc Make the labels in the Compare form less confusing 2017-09-15 13:05:30 +02:00
docker
features Replace the 'profile/active_tab.feature' spinach test with an rspec analog 2017-09-13 10:01:44 +11:00
fixtures/emojis
generator_templates
lib Ensure we use Entities::User for non-admin users/:id API requests 2017-09-15 19:34:52 -04:00
locale
log
public
qa
rubocop
scripts
shared
spec Eliminate N+1 queries in loading discussions.json endpoint 2017-09-18 06:53:33 -07:00
tmp
vendor
.babelrc
.codeclimate.yml
.csscomb.json
.eslintignore
.eslintrc
.flayignore
.foreman
.gitignore
.gitlab-ci.yml Use a secret variable to define the repo suffix 2017-09-14 12:09:03 +02:00
.haml-lint.yml
.mailmap
.nvmrc
.pkgr.yml
.rubocop.yml Decrease Perceived Complexity threshold to 15 2017-09-12 17:27:29 +00:00
.rubocop_todo.yml
.ruby-version
.scss-lint.yml
CHANGELOG.md
config.ru
CONTRIBUTING.md add info about UX label to feature proposal to CONTRIBUTING.md 2017-09-14 20:07:17 +00:00
doc_styleguide.md
docker-compose.yml
Gemfile
Gemfile.lock Use grpc 1.6.0 2017-09-14 10:50:13 +02:00
GITALY_SERVER_VERSION
GITLAB_PAGES_VERSION
GITLAB_SHELL_VERSION
GITLAB_WORKHORSE_VERSION
LICENSE
MAINTENANCE.md
package.json
PROCESS.md
Procfile
Rakefile
README.md
VERSION
yarn.lock

GitLab

Build status Overall test coverage Dependency Status 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.