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
2017-07-27Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable
services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-26Merge branch 'fix/gb/handle-max-pages-artifacts-size-correctly' into 'master'Kamil Trzciński
Handle maximum pages artifacts size correctly Closes #35317 See merge request !13072
2017-07-26Merge branch '29289-project-destroy-clean-up-after-failure' into 'master'Sean McGivern
Handle errors while a project is being deleted asynchronously. Closes #29289 See merge request !11088
2017-07-26Move exception handling to executeTiago Botelho
2017-07-25Fix rubocop offense in update pages service specsGrzegorz Bizon
2017-07-25Handle maximum pages artifacts size correctlyGrzegorz Bizon
2017-07-24Fix editing project with container images presentGrzegorz Bizon
2017-07-20Handle errors while a project is being deleted asynchronously.Timothy Andrew
1. Rescue all errors that `Projects::DestroyService` might throw, to prevent the worker from leaving things in an inconsistent state 2. Unmark the project as `pending_delete` 3. Add a `delete_error` text column to `projects`, and save the error message in there, to be shown to the project masters/owners.
2017-07-18Update specs for new upload pathBob Van Landuyt
2017-07-14Adds specs for renaming a project with container imagesGrzegorz Bizon
2017-07-14Add specs for changing default branch in a projectGrzegorz Bizon
2017-07-13Recover from renaming project that has container imagesGrzegorz Bizon
2017-07-11Support multiple Redis instances based on queue typePaul Charlton
2017-06-30Expires full_path cache after repository is transferredDouglas Barbosa Alexandre
2017-06-24Fixed DestroyService spec to actually test if removal was successfulGabriel Mazetto
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-06-20Merge branch '30213-project-transfer-move-rollback' into 'master'Douwe Maan
Rollback project folder move after error in Projects::TransferService Closes #30213 See merge request !11877
2017-06-20Rollback project folder move after error in Projects::TransferServiceJames Edwards-Jones
2017-06-14Correct RSpec/SingleLineHook cop offensesRobert Speicher
2017-06-08Bring in security changes from the 9.2.5 releaseDJ Mountney
Ran: - git format-patch v9.2.2..v9.2.5 --stdout > patchfile.patch - git checkout -b 9-2-5-security-patch origin/v9.2.2 - git apply patchfile.patch - git commit - [Got the sha ref for the commit] - git checkout -b upstream-9-2-security master - git cherry-pick <SHA of the patchfile commit> - [Resolved conflicts] - git cherry-pick --continue
2017-06-07Translate project & repository pagesBob Van Landuyt
2017-06-06Just let the user to create the namespaceLin Jen-Shin
2017-06-06Merge branch 'pull-mirror-overhaul-ce-backport' into 'master'Douwe Maan
backports changed import logic from pull mirroring feature into CE See merge request !11850
2017-06-06backports changed import logic from pull mirroring feature into CETiago Botelho
2017-06-02Allow manual bypass of auto_sign_in_with_providerMaxime Besson
This commit lets a user bypass the automatic signin on the login form, in order to login with a technical (admin, etc) account Closes #3786 Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-29Merge branch 'rework-authorizations-performance' into 'master'Douwe Maan
Rework project authorizations and nested groups for better performance See merge request !10885
2017-05-23Fix propagate service spec transient failureJames Lopez
2017-05-22minor adjustments to the specsJose Ivan Vargas
2017-05-22Renamed some messages and refactored the project_edit class to a functionJose Ivan Vargas
2017-05-22Prevent project transfer if a new group is not selectedJose Ivan Vargas
2017-05-17Use CTEs for nested groups and authorizationsYorick Peterse
This commit introduces the usage of Common Table Expressions (CTEs) to efficiently retrieve nested group hierarchies, without having to rely on the "routes" table (which is an _incredibly_ inefficient way of getting the data). This requires a patch to ActiveRecord (found in the added initializer) to work properly as ActiveRecord doesn't support WITH statements properly out of the box. Unfortunately MySQL provides no efficient way of getting nested groups. For example, the old routes setup could easily take 5-10 seconds depending on the amount of "routes" in a database. Providing vastly different logic for both MySQL and PostgreSQL will negatively impact the development process. Because of this the various nested groups related methods return empty relations when used in combination with MySQL. For project authorizations the logic is split up into two classes: * Gitlab::ProjectAuthorizations::WithNestedGroups * Gitlab::ProjectAuthorizations::WithoutNestedGroups Both classes get the fresh project authorizations (= as they should be in the "project_authorizations" table), including nested groups if PostgreSQL is used. The logic of these two classes is quite different apart from their public interface. This complicates development a bit, but unfortunately there is no way around this. This commit also introduces Gitlab::GroupHierarchy. This class can be used to get the ancestors and descendants of a base relation, or both by using a UNION. This in turn is used by methods such as: * Namespace#ancestors * Namespace#descendants * User#all_expanded_groups Again this class relies on CTEs and thus only works on PostgreSQL. The Namespace methods will return an empty relation when MySQL is used, while User#all_expanded_groups will return only the groups a user is a direct member of. Performance wise the impact is quite large. For example, on GitLab.com Namespace#descendants used to take around 580 ms to retrieve data for a particular user. Using CTEs we are able to reduce this down to roughly 1 millisecond, returning the exact same data. == On The Fly Refreshing Refreshing of authorizations on the fly (= when users.authorized_projects_populated was not set) is removed with this commit. This simplifies the code, and ensures any queries used for authorizations are not mutated because they are executed in a Rails scope (e.g. Project.visible_to_user). This commit includes a migration to schedule refreshing authorizations for all users, ensuring all of them have their authorizations in place. Said migration schedules users in batches of 5000, with 5 minutes between every batch to smear the load around a bit. == Spec Changes This commit also introduces some changes to various specs. For example, some specs for ProjectTeam assumed that creating a personal project would _not_ lead to the owner having access, which is incorrect. Because we also no longer refresh authorizations on the fly for new users some code had to be added to the "empty_project" factory. This chunk of code ensures that the owner's permissions are refreshed after creating the project, something that is normally done in Projects::CreateService.
2017-05-10Use relative paths for group/project/user avatarsblackst0ne
2017-05-06Merge branch 'fix/admin-integrations' into 'master' Sean McGivern
Fix new admin integrations not taking effect on existing project Closes #26376 See merge request !11069
2017-05-05refactor code based on feedbackJames Lopez
2017-05-05refactor code based on feedbackJames Lopez
2017-05-05add callbacks in bulkJames Lopez
2017-05-05Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into mia_backort[ci ↵Valery Sizov
skip]
2017-05-05fixed all issues - not doing bulk create.James Lopez
2017-05-04refactor a few things based on feedbackJames Lopez
2017-05-04add more examples for testing SQLJames Lopez
2017-05-04Backport of multiple_assignees_feature [ci skip]Valery Sizov
2017-05-04Merge branch '12910-uploader-pers-snippet' into 'master' Sean McGivern
Prepare uploaders for personal snippets comments See merge request !11022
2017-05-04refactor worker into serviceJames Lopez
2017-05-03Merge branch ↵Rémy Coutable
'29673-500-internal-server-error-when-enabling-a-deploy-key-more-than-once-through-api' into 'master' Detect already enabled DeployKeys in EnableDeployKeyService Closes #29673 See merge request !11010
2017-05-03Detect already enabled DeployKeys in EnableDeployKeyServiceMark Fletcher
Ensures deploy keys can't be re-added, which causes a validation error
2017-05-02Support uploaders for personal snippets commentsJarka Kadlecova
2017-05-01Auto-correct `RSpec/DescribedClass` violationsRobert Speicher
2017-04-27Make namespace owner master of project upon creationToon Claes
When an admin creates a project in the namespace of a user, that user automatically gains master access to that project.
2017-04-18Does not remove the GitHub remote when importing from GitHubDouglas Barbosa Alexandre
2017-04-14Improve error messages when a record is unable to be created for a projectStan Hu