summaryrefslogtreecommitdiff
path: root/app/services/projects
Commit message (Collapse)AuthorAgeFilesLines
* Flush all repository caches when deleting a repoexpire-fork-import-cachesYorick Peterse2016-02-171-1/+13
| | | | | | | | This ensures that _all_ caches (including any caches normally only flushed under certain conditions) are flushed whenever a project is removed. Because cache keys are based on project namespaces (excluding IDs) not doing so could result in a newly created project re-using old caches (if the project was re-created using the same name).
* First pass at deleting projects in the background.Josh Frye2016-01-291-0/+6
|
* Move Gitlab::BitbucketImport::KeyDeleter to it's own importerDouglas Barbosa Alexandre2016-01-261-4/+0
|
* Extract Projects::ImportService service from RepositoryImportWorkerDouglas Barbosa Alexandre2016-01-251-0/+71
|
* Creator should be added as a master of the project on creationDouglas Barbosa Alexandre2016-01-201-1/+1
| | | | | This also enable a project creator to add themselves as a master of the project.
* Fix creator should be added as a master of the project on creationDouglas Barbosa Alexandre2016-01-191-1/+1
|
* Merge gitlab.com:gitlab-org/gitlab-ceJeroen Nijhof2016-01-112-14/+2
|\
| * DRY up upload and download servicesapi-project-uploadDouwe Maan2016-01-082-24/+2
| |
| * Add API project upload endpointDouwe Maan2016-01-072-2/+12
| |
* | Merge gitlab.com:gitlab-org/gitlab-ceJeroen Nijhof2016-01-064-26/+36
|\ \ | |/
| * Added system hooks messages for renaming and transferring a projectSteve Norman2016-01-041-0/+3
| |
| * Merge branch 'master' into fix/visibility-level-setting-in-forked-projectsTomasz Maczukin2015-12-212-15/+6
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (723 commits) Bump Rack Attack to v4.3.1 for security fix Remove duplicate entry in the changelog Remove extra spaces after branchname Fix merge-request-reopen button title Add branch and tag operation to tree dropdown Use gitlab-shell 2.6.9 Clarify Windows shell executor artifact upload support Fix feature specs: we always show the build status if ci_commit is present Do not display project group/name when issue and MR are in same project Don't create CI status for refs that doesn't have .gitlab-ci.yml, even if the builds are enabled Use gitlab-workhorse 0.5.1 Fix ci_projects migration by using the value only from latest row [ci skip] Revert sidebar position for issue and merge request Add info on using private Docker registries in CI [ci skip] Upgrade Poltergeist to 1.8.1. #4131 Fix ux issue with "This issue will be closed automatically" message Move MR Builds tab next to Commits Api support for requesting starred projects for user Fix Rubocop complain. Fix merge widget JS for buttons ... Conflicts: app/models/project.rb
| | * Merge branch 'ci-project-migrate' into 'master' Kamil Trzciński2015-12-141-13/+2
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ci Project migrate - This doesn't migrate: allow_git_fetch, coverage_regex, timeout. Since this are project configuration settings I would propose to migrate them to `.gitlab-ci.yml`. - This requires offline migrations. - It simplifies database models making all CI objects to be attached to: Project. - It removes Ci::Project, but makes /ci/projects working by adding method: Project.find_by_ci_id for backward compatibility (badges, triggers). - We should add default `timeout` to Application Settings. - It misses specs. - It is based on ci-services-migrate for now. - It removes CI events. - It removes administrator CI projects overview. - It removes CI application settings. In 8.4 or 8.5 we can remove redundant tables and columns. See merge request !1987
| | | * Migrate CI::Project to ProjectKamil Trzcinski2015-12-111-13/+2
| | | |
| | * | Provide better diagnostic message upon project creation errorsStan Hu2015-12-091-2/+4
| | |/ | | | | | | | | | | | | | | | Prevents an Error 500 when project fails to create due to invalid parameters. See #3937
| * | Merge branch 'master' into fix/visibility-level-setting-in-forked-projectsTomasz Maczukin2015-11-202-5/+5
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (296 commits) fox tests Don't rescue Exception, but StandardError adressing comments Update gitlab-shell documentation [ci skip] Align hash literals in IssuesFinder spec Fix tests Fix 'Attach a file' link in new tag form Add link to git-lfs client [ci skip] Do not limit workhorse POST/PUT size in NGINX added specs added spinach tests Since GitLab CI is enabled by default, remove enabling it by pushing .gitlab-ci.yml Fix tests Commits without .gitlab-ci.yml are marked as skipped Changelog entry for finding issues performance Use a JOIN in IssuableFinder#by_project Memoize IssuableFinder#projects Removed trailing whitespace from IssuableFinder Added benchmark for IssuesFinder Updated DB schema with new issues/projects indexes ... Conflicts: app/models/project.rb
| | * Tweak code formatting.Douwe Maan2015-11-181-4/+4
| | |
| | * Expose CI enable option in project featuresKamil Trzcinski2015-11-131-1/+1
| | | | | | | | | | | | - Enable CI by default for all new projects
| * | Change update_forks_visibility_level into after_update hook in Project modelTomasz Maczukin2015-11-201-14/+0
| | |
| * | Prevent unnecessary forks iteration at parent updateTomasz Maczukin2015-11-191-3/+5
| | |
| * | Change forks method to has_many relationTomasz Maczukin2015-11-181-2/+1
| | |
| * | Merge branch 'master' into fix/visibility-level-setting-in-forked-projectsTomasz Maczukin2015-11-041-2/+0
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (23 commits) Use single spaces Improvements to profile page UI Replace all usages of `git` command with configurable binary path Update Shell Commands doc for configurable git binary path Minor reformatting for Facebook integration doc Use proper labels for OAuth providers Add Facebook authentication Bump stamp to ~> 0.6.0 Add extra padding between user description and links on profile page Fix tests Fix clipboard button overflow Apply new design for user profile page Improve profile page UI Better name for up-level links Fixed User sorting specs Only sort by IDs by default Added benchmark for User.all Add changelog entry for contacted_at Spread out runner contacted_at updates Only redirect to homepage url when its not the root url ...
| | * Removed extra activity update for new projectscreate-project-performanceYorick Peterse2015-10-291-2/+0
| | | | | | | | | | | | | | | When a project is created the last activity timestamp is already set so there's no need for another update.
| * | Update forks visibility_level after parent project visibility_level changeTomasz Maczukin2015-11-041-13/+35
| | |
| * | Fix Project update serviceTomasz Maczukin2015-11-031-0/+9
| |/ | | | | | | | | When project is updated and it is a fork, then visibility_level should not be less restrictive than in its parent project.
* | Use GitlabShellWorker.perform_async for housekeepingJeroen Nijhof2015-11-191-1/+1
| |
* | Added housekeeping status and moved path check to gitlab-shellJeroen Nijhof2015-11-191-4/+2
| |
* | Added housekeeping for git repositoriesJeroen Nijhof2015-10-211-0/+22
|/
* Fix: Images cannot show when projects' path was changeduploads_path_fixValery Sizov2015-10-141-0/+4
|
* Merge remote-tracking branch 'upstream/master'Guilherme Garnier2015-10-031-1/+7
|\
| * Remove unnecessary fork ci logicDmitriy Zaporozhets2015-10-021-1/+7
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Fix rubocop warnings in appGuilherme Garnier2015-10-031-1/+1
|/
* Note the original location of a moved project when notifying users of the moveproject_movingValery Sizov2015-10-011-1/+1
|
* remove API calls from CE to CIci_closer_integrationValery Sizov2015-09-181-1/+1
|
* Import forked repositories asynchronously to prevent large repositories from ↵Stan Hu2015-09-111-3/+1
| | | | | | | | | timing out Use import_status to track async import status and give feedback to the user Closes #2388 Closes #2400
* Merge branch 'global_labels' into 'master'Dmitriy Zaporozhets2015-09-091-0/+2
|\ | | | | | | | | | | | | | | Global labels https://dev.gitlab.org/gitlab/gitlabhq/issues/2353 See merge request !1240
| * Create labels in new projectValery Sizov2015-09-031-0/+2
| |
* | FogBugz project importJared Szechy2015-09-081-0/+43
|/
* Merge branch 'master' into reply-by-emailDouwe Maan2015-08-202-7/+0
|\
| * Revert "Merge branch 'revert-satellites' into 'master' "Dmitriy Zaporozhets2015-08-112-7/+0
| | | | | | | | | | This reverts commit 5daf44b7c86e0e2641a902b1da8b01d91fa3dbfa, reversing changes made to 2f706fbd231cabe7a76a5d17ac44285aaaf8592c.
* | Turn reply-by-email attachments into uploads.Douwe Maan2015-08-191-3/+3
|/
* Revert "Merge branch 'drop-satellites'"Dmitriy Zaporozhets2015-08-112-0/+7
| | | | | | | This reverts commit 957e849f41d96fa9778fcdd06792d2f0274b29ab, reversing changes made to 6b9dbe9f5a175a8162abf296367f561bab3eea1a. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'master' into drop-satellitesDmitriy Zaporozhets2015-08-041-0/+2
|\ | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Create project services on Project creationrs-dev-issue-306Robert Speicher2015-07-251-0/+2
| |
* | Remove satellitesDmitriy Zaporozhets2015-07-152-7/+0
|/
* Fix transferring of project to another group using the API.Douwe Maan2015-07-111-8/+5
|
* Show warning when a comment will add 10 or more people to the discussion.Douwe Maan2015-06-051-2/+2
|
* Skip repo removing whem remove user or groupDmitriy Zaporozhets2015-06-031-3/+5
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix tests and increase delay time before remove repositoryDmitriy Zaporozhets2015-06-031-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Move repository when project is removedDmitriy Zaporozhets2015-06-031-13/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ths commit does next: * When we remove project we move repository to path+deleted.git * Then we schedule removal of path+deleted with sidekiq * If repository move failed we abort project removal This should help us with NFS issue when project get removed but repository stayed. The full explanation of problem is below: * rm -rf project.git * rm -rf removes project.git/objects/foo * NFS server renames foo to foo.nfsXXXX because some NFS client (think * Unicorn) still has the file open * rm -rf exits, but project.git/objects/foo.nfsXXX still exists * Unicorn closes the file, the NFS client closes the file (foo), and the * NFS server removes foo.nfsXXX * the directory project.git/objects/ still exists => problem So now we move repository and even if repository removal failed Repository directory is moved so no bugs with project removed but repository directory taken. User still able to create new project with same name. From administrator perspective you can easily find stalled repositories by searching `*+deleted.git` Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>