- Aug 01, 2018
-
-
Zeger-Jan van de Weg authored
Our friends at GitHub show the programming languages for a long time, and inspired by that this commit means to create about the same functionality. Language detection is done through Linguist, as before, where the difference is that we cache the result in the database. Also, Gitaly can incrementaly scan a repository. This is done through a shell out, which creates overhead of about 3s each run. For now this won't be improved. Scans are triggered by pushed to the default branch, usually `master`. However, one exception to this rule the charts page. If we're requesting this expensive data anyway, we just cache it in the database. Edge cases where there is no repository, or its empty are caught in the Repository model. This makes use of Redis caching, which is probably already loaded. The added model is called RepositoryLanguage, which will make it harder if/when GitLab supports multiple repositories per project. However, for now I think this shouldn't be a concern. Also, Language could be confused with the i18n languages and felt like the current name was suiteable too. Design of the Project#Show page is done with help from @dimitrieh. This change is not visible to the end user unless detections are done.
-
- Jul 25, 2018
-
-
Yorick Peterse authored
This adds a database migration that creates routes for any projects and namespaces that don't already have one. We also remove the runtime code for dynamically creating routes, as this is no longer necessary.
-
- Jun 26, 2018
-
-
Lin Jen-Shin authored
-
- May 31, 2018
-
-
Kamil Trzcińśki authored
-
- May 04, 2018
-
-
Mario de la Ossa authored
-
- May 02, 2018
-
-
Dylan Griffith authored
-
- Apr 09, 2018
-
-
Dylan Griffith authored
-
- Apr 06, 2018
-
-
- Mar 06, 2018
-
-
Felipe Artur authored
-
- Mar 03, 2018
-
-
Felipe Artur authored
-
- Feb 07, 2018
-
-
Dylan Griffith authored
-
- Feb 06, 2018
-
-
Douwe Maan authored
-
Douwe Maan authored
-
-
- Feb 05, 2018
-
-
Nick Thomas authored
-
- Feb 02, 2018
-
-
Mario de la Ossa authored
-
- Jan 08, 2018
-
-
Yorick Peterse authored
This removes all usage of soft removals except for the "pending delete" system implemented for projects. This in turn simplifies all the query plans of the models that used soft removals. Since we don't really use soft removals for anything useful there's no point in keeping it around. This _does_ mean that hard removals of issues (which only admins can do if I'm not mistaken) can influence the "iid" values, but that code is broken to begin with. More on this (and how to fix it) can be found in https://gitlab.com/gitlab-org/gitlab-ce/issues/31114. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37447
-
- Jan 03, 2018
-
-
Douglas Barbosa Alexandre authored
-
Douglas Barbosa Alexandre authored
-
Douglas Barbosa Alexandre authored
-
- Dec 08, 2017
-
-
- Dec 04, 2017
-
-
Bob Van Landuyt authored
On the `show` of a project that is part of a fork network. We check if the user already created a fork of this project in their personal namespace. We do this in several places, so caching the result of this query in the request store prevents us from repeating it.
-
- Nov 27, 2017
-
-
Douwe Maan authored
-
- Nov 24, 2017
-
-
Douwe Maan authored
-
- Nov 06, 2017
-
-
Douwe Maan authored
-
- Oct 10, 2017
-
-
Bob Van Landuyt authored
-
- Oct 07, 2017
-
-
Bob Van Landuyt authored
-
- Sep 15, 2017
-
-
Yorick Peterse authored
Prior to this commit running Namespace#force_share_with_group_lock_on_descendants would result in updating _all_ namespaces in the namespaces table, not just the descendants. This is the result of ActiveRecord::Relation#update_all not taking into account the CTE. To work around this we use the CTE query as a sub-query instead of directly calling #update_all. To prevent this from happening the relations returned by Gitlab::GroupHierarchy are now marked as read-only, resulting in an error being raised when methods such as #update_all are used. Fortunately on GitLab.com our statement timeouts appear to have prevented this query from actually doing any damage other than causing a very large amount of dead tuples. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37916
-
- Sep 06, 2017
-
-
Michael Kozono authored
-
Michael Kozono authored
…when needed
-
- Aug 31, 2017
-
-
Zeger-Jan van de Weg authored
In this instance its subgroups, and given we can't deploy it, we shouldn't allow it to be shown. Fixes gitlab-org/gitlab-ce#34864
-
- Aug 14, 2017
-
-
Nick Thomas authored
-
- Aug 01, 2017
-
-
Gabriel Mazetto authored
-
Gabriel Mazetto authored
-
- Jul 17, 2017
-
-
Nick Thomas authored
In EE, we make use of `namespace#public?` in projects. When the project is in a personal namespace, this breaks as the `public?` helper isn't present.
-
- Jul 06, 2017
-
-
Yorick Peterse authored
This is allowed for existing instances so we don't end up 76 offenses right away, but for new code one should _only_ use this if they _have_ to remove non database data. Even then it's usually better to do this in a service class as this gives you more control over how to remove the data (e.g. in bulk).
-
- Jun 29, 2017
-
-
Stan Hu authored
Group#destroy would actually hard-delete all associated projects even though the acts_as_paranoia gem is used, preventing Projects::DestroyService from doing any work. We first noticed this while trying to log all projects deletion to the Geo log.
-
Tiago Botelho authored
-
- Jun 28, 2017
-
-
Tiago Botelho authored
-
- Jun 21, 2017
-
-
Grzegorz Bizon authored
-