Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-17Use cached readme blobs where appropriateNick Thomas
GitLab keeps a cache of the rendered HTML for a repository's README as stored in the HEAD branch. However, it was not used in all circumstances. In particular, the new blob viewer framework bypassed this cache entirely. This MR ensures a ::ReadmeBlob is returned instead of a ::Blob when asking a repository for an individual blob, if the commit and path match the readme for HEAD. This makes the cached HTML available to consumers, including the blob viewer. The ReadmeBlob is a simple delegator to the Blob, so should be compatible in all cases. Adding the rendered_markdown method is the only additional behaviour it contains.
2018-10-16Does not allow an import_url with SSH protocolDouglas Barbosa Alexandre
2018-10-08Clean up ActiveRecord code in TodosFinderYorick Peterse
This refactors the TodosFinder finder according to the new code reuse rules, as enforced by the CodeReuse cops. I also changed some of the methods to use regular if statements, instead of assignments and/or early returns. This results in a more natural flow when reading the code, and it makes it harder to accidentally return the wrong result.
2018-10-06Check disabled_services when finding a serviceBrett Walker
2018-10-04Don't build project services unneccesarilyBrett Walker
2018-10-03Merge branch 'remove-rugged' into 'master'Douwe Maan
Remove Gitlab::Git::Repository#rugged See merge request gitlab-org/gitlab-ce!22039
2018-10-02Remove Gitlab::Git::Repository#rugged and Gollum codeAlejandro Rodríguez
Cleanup code, and refactor tests that still use Rugged. After this, there should be no Rugged code that access the instance's repositories on non-test environments. There is still some rugged code for other tasks like the repository import task, but since it doesn't access any repository storage path it can stay.
2018-10-01Add Project#members_among to obtain only authorized users of the projectMark Chao
2018-09-21Merge branch '51725-push-mirrors-default-branch-reset-to-master' into 'master'Stan Hu
Doesn't synchronize default branch for push mirrors Closes #51725 See merge request gitlab-org/gitlab-ce!21861
2018-09-21Doesn't synchronize default branch for push mirrorsDouglas Barbosa Alexandre
We should not synchronize the source repository with the target root ref while updating a push mirror.
2018-09-21Allows to sort projects by most stars🙈 jacopo beschi 🙉
2018-09-18Resolve "Enable Auto DevOps by default for self managed instances of GitLab"Dylan Griffith
2018-09-10Synchronize the default branch when updating a remote mirrorDouglas Barbosa Alexandre
2018-09-07refactor code based on feedbackJames Lopez
2018-09-07refactor code based on feedbackJames Lopez
2018-09-06Refactor code to remove object storage flag from Import/ExportJames Lopez
Updated docs, refactor import/export code Fix AvatarUploader path issue Fix project export upload webhook error
2018-09-05Merge branch 'filter-web-hooks-by-branch' into 'master'Dmitriy Zaporozhets
Filter web hooks by branch See merge request gitlab-org/gitlab-ce!19513
2018-09-05Refactor: move active hook filter to TriggerableHooksDuana Saskia
2018-08-22Rename feature flag to skip_hashed_storage_upgrade to be less confusingGabriel Mazetto
2018-08-22Fixed `stub_feature_flag behavior` for `disabled?` flags.Gabriel Mazetto
Previous code would not work with `disabled?` because that method would send two parameters (second always `nil`) which we are not mocking. Instead of mock yet another state, I decide to fix it where it belongs.
2018-08-20Remove Gemnasium serviceGilbert Roulot
2018-08-20Refactor AutocompleteControllerYorick Peterse
This refactors the AutocompleteController according to the guidelines and boundaries discussed in https://gitlab.com/gitlab-org/gitlab-ce/issues/49653. Specifically, ActiveRecord logic is moved to different finders, which are then used in the controller. View logic in turn is moved to presenters, instead of directly using ActiveRecord's "to_json" method. The finder MoveToProjectFinder is also adjusted according to the abstraction guidelines and boundaries, resulting in a much more simple finder. By using finders (and other abstractions) more actively, we can push a lot of logic out of the controller. We also remove the need for various "before_action" hooks, though this could be achieved without using finders as well. The various finders related to AutcompleteController have also been moved into a namespace. This removes the need for calling everything "AutocompleteSmurfFinder", instead you can use "Autocomplete::SmurfFinder".
2018-08-16Resolve "Enable Auto DevOps instance-wide on GitLab.com"Dylan Griffith
2018-08-13Filter project hooks by branchDuana Saskia
Allow specificying a branch filter for a project hook and only trigger a project hook if either the branch filter is blank or the branch matches. Only supported for push_events for now.
2018-08-13Refactor tests for executing project hooksDuana Saskia
So that they test the negative case of hooks that don't have the specified hook scope
2018-08-10Merge branch '28930-add-project-reference-filter' into 'master'Sean McGivern
Resolve "GFM : provide 'project' reference in comment" Closes #28930 See merge request gitlab-org/gitlab-ce!20285
2018-08-07Resolve "Improve Auto DevOps settings flow for admin and project"Mike Greiling
2018-08-03Resolve "Hashed storage: extend "Enable hashed storage for all new projects" ↵Valery Sizov
to "for all new and renamed projects""
2018-08-01Add repository languages for projectsZeger-Jan van de Weg
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.
2018-07-30Create GPG commit signature in bulkFrancisco Javier López
2018-07-27Merge branch 'stop-dynamic-routable-creation' into 'master'Douwe Maan
Stop building Route rows on the fly See merge request gitlab-org/gitlab-ce!20313
2018-07-25Remove code for dynamically generating routesYorick Peterse
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.
2018-07-24Added SiteStatistics as counter cache for Projects and WikisGabriel Mazetto
2018-07-14Add dummy Google Hangouts Chat integrationKukovskii Vladimir
2018-07-12Improve project build time setting validationGrzegorz Bizon
2018-07-11Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao
2018-07-09Updates from `rubocop -a`Lin Jen-Shin
2018-07-06Update Import/Export to use object storage (based on aa feature flag)James Lopez
2018-07-04Add back the Project#to_reference_with_postfix function since it can be used ↵Reuben Pereira
in the ProjectReferenceFilter#link_to_project function
2018-07-04Merge branch '45739-add-metrics-to-operations-tab' into 'master'Filipa Lacerda
Resolve "Add Metrics to Operations Tab" Closes #45739 See merge request gitlab-org/gitlab-ce!20025
2018-07-04Makes production environment the default environment for a projectTiago Botelho
2018-07-03Remove the Project#to_reference_with_postfix method since it is only used in ↵Reuben Pereira
the project_reference_filter_spec
2018-06-30A working implementation of a project reference filter which links project ↵Reuben Pereira
references to project profile.
2018-06-27Rails5 fix MySQL milliseconds problem in specsJasper Maes
2018-06-19Eliminate N+1 queries in LFS file locks checks during a pushStan Hu
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.
2018-06-14Deny repository disk access in development and testJacob Vosmaer (GitLab)
2018-06-12Merge branch 'bvl-fix-maintainer-push-rejected' into 'master'Douwe Maan
Fixes rejected pushes from maintainers Closes #46337 See merge request gitlab-org/gitlab-ce!18968
2018-06-11Relax expectation in spec/models/project_spec.rbStan Hu
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`.
2018-06-11Merge branch 'sh-expire-content-cache-after-import' into 'master'Mayra Cabrera
Expire Wiki content cache after importing a repository Closes #47546 See merge request gitlab-org/gitlab-ce!19617
2018-06-11Fix Rubocop failure in spec/models/project_spec.rbStan Hu