- 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 30, 2018
-
-
- 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.
-
- Jul 24, 2018
-
-
Gabriel Mazetto authored
-
- Jul 14, 2018
-
-
Kukovskii Vladimir authored
-
- Jul 12, 2018
-
-
Grzegorz Bizon authored
-
- Jul 11, 2018
-
-
Mark Chao authored
-
- Jul 09, 2018
-
-
Lin Jen-Shin authored
-
- Jul 06, 2018
-
-
James Lopez authored
-
- Jul 04, 2018
-
-
Tiago Botelho authored
-
- Jun 27, 2018
-
-
Jasper Maes authored
-
- Jun 18, 2018
-
-
Stan Hu authored
This significantly improves performance when a user pushes many references. project.path_locks.any? doesn't cache the output and runs `SELECT 1 AS one FROM "path_locks" WHERE project_id = N` each time. When there are thousands of refs being pushed, this can time out the unicorn worker. CE port for https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6159.
-
- Jun 14, 2018
-
-
- Jun 11, 2018
-
-
Stan Hu authored
Multiple Sidekiq workers can run in the spec, causing `Project.find` to be run in different places. Instead of setting a fixed number of calls, just use `allow`.
-
Stan Hu authored
-
Stan Hu authored
-
Bob Van Landuyt authored
Before the push git would make a call to `/:namespace/:project/git-receive-pack`. This would perform an access check without a ref. So the `Project#branch_allows_maintainer_push?` would return false. This adjusts `Project#branch_allows_maintainer_push?` to return true when passing no branch name if there are merge requests open that would allow the user to push. The actual check then happens when a call to `/api/v4/internal/allowed` is made from a git hook.
-
Stan Hu authored
The cache state for Wikis that were imported via GitHub or Bitbucket does not appear to have been flushed after a successful import. Closes #47546
-
-
- Jun 06, 2018
-
-
Tiago Botelho authored
-
- Jun 05, 2018
-
-
Alexis Reigel authored
-
- Jun 01, 2018
-
-
Mark Chao authored
"Maintainer" will be freed to be used for #42751
-
- May 31, 2018
-
-
Kamil Trzcińśki authored
-
Dylan Griffith authored
-
- May 22, 2018
-
-
Imre (Admin) authored
-
- May 16, 2018
-
-
Jan Provaznik authored
ObjectStore uploader requires presence of associated `uploads` record when deleting the upload file (through the carrierwave's after_commit hook) because we keep info whether file is LOCAL or REMOTE in `upload` object. For this reason we can not destroy uploads as "dependent: :destroy" hook because these would be deleted too soon. Instead we rely on carrierwave's hook to destroy `uploads` in after_commit hook. But in before_destroy hook we still have to delete not-mounted uploads (which don't use carrierwave's destroy hook). This has to be done in before_Destroy instead of after_commit because `FileUpload` requires existence of model's object on destroy action. This is not ideal state of things, in a next step we should investigate how to unify model dependencies so we can use same workflow for all uploads. Related to #45425
-
- May 08, 2018
-
-
Dylan Griffith authored
-
Tiago Botelho authored
-
- May 07, 2018
-
-
Tiago Botelho authored
-
Tiago Botelho authored
-
- May 04, 2018
-
-
Tiago Botelho authored
-
James Lopez authored
-
James Lopez authored
-
- May 03, 2018
-
-
Dylan Griffith authored
-
- Apr 27, 2018
-
-
Dylan Griffith authored
-
- Apr 26, 2018
-
-
Dylan Griffith authored
-
- Apr 25, 2018
-
-
Zeger-Jan van de Weg authored
Direct disk access is done through Gitaly now, so the legacy path was deprecated. This path was used in Gitlab::Shell however. This required the refactoring in this commit. Added is the removal of direct path access on the project model, as that lookup wasn't needed anymore is most cases. Closes https://gitlab.com/gitlab-org/gitaly/issues/1111
-
- Apr 24, 2018
-
-
Bob Van Landuyt authored
-
- Apr 23, 2018
-
-
-
Mayra Cabrera authored
-