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
2019-01-18Cleanup stale +deleted repo paths on project removalOswaldo Ferreira
1. When removing projects, we can end-up leaving the +deleted repo path dirty and not successfully removing the non-deleted namespace (mv process is not atomic and can be killed without fully moving the path). 2. In order to solve that, we're adding a clean-up phase on ensure which will schedule possible staled +deleted path deletion. Note that we don't check the current state (if there is or not a repo) in order to schedule the deletion. That's intentional in order to leverage Gitlab::GitalyClient::NamespaceService#remove idempotency and ensure consistency.
2018-12-19Leave object pools when destroying projectsZeger-Jan van de Weg
This action doesn't lean on reduplication, so a short call can me made to the Gitaly server to have the object pool remove its remote to the project pending deletion. https://gitlab.com/gitlab-org/gitaly/blob/f6cd55357/internal/git/objectpool/link.go#L58 When an object pool doesn't have members, this would invalidate the need for a pool. So when a project leaves the pool, the pool will be destroyed on the background. Fixes: https://gitlab.com/gitlab-org/gitaly/issues/1415
2018-09-19Move registry destroy out of project transactionStan Hu
2018-09-11Disable existing offenses for the CodeReuse copsYorick Peterse
This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-08Fix scoping errors occuring for ContainerRepository on some buildsStan Hu
2018-08-17Fix: Project deletion may not log audit events during user deletionValery Sizov
2018-07-18Enable more frozen string in app/services/**/*.rbgfyoung
Partially addresses #47424.
2018-07-09Updates from `rubocop -a`Lin Jen-Shin
2018-06-08Add more logging before a project is destroyedStan Hu
This adds a simple log message but also allows EE to insert database events within the transaction (https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6059/diffs).
2018-05-29Merge branch 'sh-batch-dependent-destroys' into 'master'Robert Speicher
Fix project destruction failing due to idle in transaction timeouts Closes #44610 See merge request gitlab-org/gitlab-ce!18609
2018-05-25Fix project destruction failing due to idle in transaction timeoutsStan Hu
When deleting associated records, Rails loads all associations into memory (https://github.com/rails/rails/issues/22510) before destroying them. This can cause a surge in memory and cause destruction of objects to fail due to idle in transaction database timeouts. This fix is inspired from https://github.com/thisismydesign to destroy `has_many` relationships in batches. Closes #44610
2018-05-23Bring CE-EE parity to app/services/projects/destroy_service.rbRobert Speicher
2018-05-10Include project.full_path when moving repoAsh McKenzie
This is especially helpful when hashed storage is enabled
2018-04-25Gitlab::Shell works on shard name, not pathZeger-Jan van de Weg
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
2018-04-18Resolve "Make a Rubocop that forbids returning from a block"🙈 jacopo beschi 🙉
2018-04-06Extend API for importing a project export with overwrite supportFrancisco Javier López
2018-04-06Cache personal projects count.Andreas Brandl
Closes #37462.
2018-03-17Fix "Can't modify frozen hash" error when project is destroyedStan Hu
Partial fix to #44378
2017-10-18Use wiki.disk_pathNick Thomas
2017-10-07Store the name of a project that's a root of a fork networkBob Van Landuyt
So we can keep showing it to a user in his project page.
2017-08-14Cache the number of forks of a projectYorick Peterse
The number of forks of a project doesn't change very frequently and running a COUNT(*) every time this information is requested can be quite expensive. We also end up running such a COUNT(*) query at least twice on the homepage of a project. By caching this data and refreshing it when necessary we can reduce project homepage loading times by around 60 milliseconds (based on the timings of https://gitlab.com/gitlab-org/gitlab-ce).
2017-08-01Make disk_path keyword argument and optionalGabriel Mazetto
2017-08-01Rename more path_with_namespace -> full_path or disk_pathGabriel Mazetto
2017-08-01Rename path_with_namespace -> disk_path when dealing with the filesystemGabriel Mazetto
2017-08-01Rename many path_with_namespace -> full_pathGabriel Mazetto
2017-07-26Move exception handling to executeTiago Botelho
2017-07-20Refactors Project Destroy service and worker codeTiago Botelho
2017-07-20Add specs for ProjectDestroyWorkerTiago Botelho
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-06-02Don’t schedule workers from inside transactionsDouwe Maan
2017-04-05Fix status when removing legacy tags from registryGrzegorz Bizon
2017-04-05Revert unneeded change in project destroy serviceGrzegorz Bizon
2017-04-04Remove legacy registry tags when deleting a projectGrzegorz Bizon
2017-03-21Merge branch 'master' into feature/multi-level-container-registry-imagesGrzegorz Bizon
* master: (1327 commits) Merge branch 'render-json-leak' into 'security' Merge branch 'ssrf' into 'security' Merge branch 'ssrf' into 'security' Merge branch 'fix-links-target-blank' into 'security' Merge branch '28058-hide-emails-in-atom-feeds' into 'security' Fix karma test Reset filters after click Handle Route#name being nil after an update Only add frontend code coverage instrumentation when generating coverage report fix recompile assets step in 9.0 upgrade guide to use yarn Undo explicit conversion to Integer Make level_value accept string integers Make feature spec more robust Removed d3.js from the main application.js bundle Extend compound status for manual actions specs Update css to be nice and tidy. Fix pipeline status for transition between stages add an index to the ghost column Return 404 in project issues API endpoint when project cannot be found Improve rename projects migration ... Conflicts: doc/ci/docker/using_docker_build.md spec/lib/gitlab/import_export/all_models.yml
2017-03-01Enable and autocorrect the CustomErrorClass copSean McGivern
2017-02-23Enable Style/MutableConstantDouwe Maan
2017-02-22First iteration of container_image viewAndre Guedes
- Fixes project, container_image and tag deletion - Removed container_images_repository [ci skip]
2017-02-19Prevent project team from being truncated too early during project destructionStan Hu
There are two issues with truncating the project team early: 1. `Projects::UnlinkForkService` may not close merge requests properly since permissions may be revoked early. 2. If an error is encountered during flushing of caches, then the user will lose all privileges, possibly causing an issue on deletion on retry.
2016-09-13Before deleting project if forked unlink forkKatarzyna Kobierska
2016-08-10Clean up project destructionStan Hu
Instead of redirecting from the project service to the service and back to the model, put all destruction code in the service. Also removes a possible source of failure where run_after_commit may not destroy the project.
2016-06-30Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez
2016-05-14Merge branch 'docker-registry' into docker-registry-viewKamil Trzcinski
2016-05-13Fix container registry permissionsKamil Trzcinski
2016-05-12Fix CI testsKamil Trzcinski
2016-05-11Improve log message when a project is destroyed to include the namespaceStan Hu
2016-05-09Added Docker Registry View testsKamil Trzcinski
2016-05-09Merge branch 'docker-registry' into docker-registry-viewKamil Trzcinski
2016-05-07Reduce delay in destroying a project from 1-minute to immediatelyStan Hu
Run ProjectDestroyWorker after pending_delete attribute has been committed to DB
2016-05-04Remove container registry on project removalKamil Trzcinski
2016-02-23Moved cache expiration code to Repository hooksYorick Peterse
This keeps all the cache expiration code in a single file/class instead of spreading it all across the codebase.