summaryrefslogtreecommitdiff
path: root/lib/gitlab/bitbucket_server_import
Commit message (Collapse)AuthorAgeFilesLines
* Fix issuables state_id nil when importing projects from GitHubFelipe Artur2019-05-061-0/+1
| | | | | | Issues and merge requests imported from GitHub are having state_id set to null. This fixes the GitHub project importer and schedule migrations to fix state_id.
* Run rubocop -aNick Thomas2019-03-131-23/+17
|
* Adds the Rubocop ReturnNil copAndrew Newdigate2019-03-061-1/+1
| | | | | This style change enforces `return if ...` instead of `return nil if ...` to save maintainers a few minor review points
* Fix import handling errors in Bitbucket Server importerStan Hu2019-01-181-2/+2
| | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20724 removed `Gitlab::Git::RepositoryMirroring::RemoteError`, but this was still being handled in the Bitbucket Server importer and only encountered if some exception other than `Gitlab::Shell::Error` were thrown.
* Remove unnecessary includes of ShellAdapterStan Hu2018-12-051-2/+0
| | | | | | | | | | Determined by running the script: ``` included = `git grep --name-only ShellAdapter`.chomp.split("\n") used = `git grep --name-only gitlab_shell`.chomp.split("\n") included - used ```
* Removes all the irrelevant import related code and columnsTiago Botelho2018-11-271-1/+1
| | | | | Clears the import related columns and code from the Project model over to the ProjectImportState model
* Enable some frozen string in lib/gitlabgfyoung2018-10-131-0/+2
| | | | | | | | | | | | | | Enable frozen string for the following files: * lib/gitlab/auth/**/*.rb * lib/gitlab/badge/**/*.rb * lib/gitlab/bare_repository_import/**/*.rb * lib/gitlab/bitbucket_import/**/*.rb * lib/gitlab/bitbucket_server_import/**/*.rb * lib/gitlab/cache/**/*.rb * lib/gitlab/checks/**/*.rb Partially addresses #47424.
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+2
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Add JSON logging for Bitbucket Server importerStan Hu2018-08-301-3/+60
| | | | Adds an importer.log so that it's easier to track what's happening with the import.
* Bitbucket Server importer: Eliminate most idle-in-transaction issuesStan Hu2018-08-261-8/+10
| | | | | | | | | | | Just like with the GitHub importer, the Bitbucket Server importer can hit the default 60 s idle-in-transaction timeouts if it takes too long to create the merge request. We solve this by using the same approach as the GitHub importer: 1. Bypass all validation and hooks in creating a merge request 2. Insert the Git data in a separate transaction Part of #50021
* Remove date from author line since that is already present in `created_at`Stan Hu2018-08-031-1/+1
|
* Add a comment when user can't be identifiedStan Hu2018-08-021-2/+10
|
* Fix failing spec in fallback diff note changeStan Hu2018-07-311-2/+2
|
* Improve formatting of fallback diff noteStan Hu2018-07-311-1/+6
|
* Fix bug where fallback diff notes would not have an associated positionStan Hu2018-07-311-3/+3
|
* Handle empty description fieldStan Hu2018-07-311-1/+1
|
* Give some context on threaded discussionsStan Hu2018-07-311-1/+9
|
* Fix Rubocop complaint about update_attributesStan Hu2018-07-311-1/+1
|
* Fix merge request SHAStan Hu2018-07-301-1/+1
|
* No need to look up commit SHA since Bitbucket has a full-length SHAStan Hu2018-07-301-2/+0
|
* Restrict to confirmed users and allow memoization of unkonwn e-mailsStan Hu2018-07-281-2/+2
|
* Remove merge request deletion codeStan Hu2018-07-201-2/+0
|
* Disable recovery of missing SHAs by defaultStan Hu2018-07-201-2/+9
|
* Fix and clean up code for deleting branchesStan Hu2018-07-181-20/+27
|
* Improve formatting of diff notes that could not be importedStan Hu2018-07-171-1/+1
|
* Some formatting cleanupStan Hu2018-07-172-9/+5
|
* Fallback to creating a note if DiffNote fails to importStan Hu2018-07-171-4/+22
|
* Code cleanup and test threaded discussionsStan Hu2018-07-171-16/+11
|
* Simplify user lookupsStan Hu2018-07-171-5/+4
|
* Remove unneeded methodStan Hu2018-07-171-4/+0
|
* Add tests for pull request commentsStan Hu2018-07-151-6/+9
|
* Fix assorted bugs and write spec for importing merge eventStan Hu2018-07-151-3/+5
|
* Delete temporary branches after an importStan Hu2018-07-131-0/+12
|
* Make Connection#post consistent with Connection#get and add specsStan Hu2018-07-121-5/+4
|
* Use browse URL of project to link importsStan Hu2018-07-121-1/+1
|
* Batch re-creating branches and fetching the remoteStan Hu2018-07-051-24/+51
|
* Reduce number of API requests and fix merge request eventsStan Hu2018-07-051-52/+43
|
* Assign merge event to ghost user if committer cannot be foundStan Hu2018-07-031-0/+7
|
* Support creating a remote branch to import closed pull requestsStan Hu2018-07-031-1/+57
|
* Add merge commit SHAStan Hu2018-07-011-2/+4
|
* Fix Rubocop complaintsStan Hu2018-06-282-2/+2
|
* Remove unnecessary code and fix branch namesStan Hu2018-06-281-31/+15
|
* Fix generation of diff line positionsStan Hu2018-06-281-1/+1
|
* Import threaded discussions in diffsStan Hu2018-06-281-6/+21
|
* First iteration of importing diff notesStan Hu2018-06-281-13/+9
|
* Handle threaded comments and prepare for inline commentsStan Hu2018-06-281-3/+6
|
* Import standalone pull request commentsStan Hu2018-06-271-18/+36
|
* More work towards importing pull requestsStan Hu2018-06-261-2/+2
|
* wipStan Hu2018-06-251-1/+1
|
* More work towards supporting Bitbucket ServerStan Hu2018-06-252-88/+17
|