summaryrefslogtreecommitdiff
path: root/spec/workers/namespaceless_project_destroy_worker_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Migration to remove pending delete projects with non-existing namespaceToon Claes2017-08-221-0/+14
| | | | | | | There might be some projects where the namespace was removed, but the project wasn't. For these the projects still have a `namespace_id` set. So this adds a post-deploy migration remove all projects that are pending delete, and have a `namespace_id` that is non-existing.
* Refactor project and storage typesGabriel Mazetto2017-08-221-1/+1
|
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-021-3/+3
|
* Rename ensure_dir_exist -> ensure_storage_path_existGabriel Mazetto2017-08-011-1/+1
|
* No user needed to cleanup namespaceless pending delete projectsToon Claes2017-05-101-9/+7
| | | | | Since this is a cleanup, ran by a post-deploy, there is no need to lookup the admin to run the cleanup.
* Use worker to destroy namespaceless projects in post-deployToon Claes2017-05-101-0/+81
Destroying projects can be very time consuming. So instead of destroying them in the post-deploy, just schedule them and make Sidekiq do the hard work. They are scheduled in batches of 5000 records. This way the number of database requests is limited while also the amount data read to memory is limited.