Commit Graph

103 Commits

Author SHA1 Message Date
GitLab Bot 7f73b108d4 Add latest changes from gitlab-org/gitlab@master 2023-09-14 12:09:48 +00:00
GitLab Bot 01f48ebf02 Add latest changes from gitlab-org/gitlab@master 2023-09-07 12:11:52 +00:00
GitLab Bot d1c0c1c4c3 Add latest changes from gitlab-org/gitlab@master 2023-05-25 15:09:02 +00:00
GitLab Bot 73fe31a692 Add latest changes from gitlab-org/gitlab@master 2023-03-10 18:12:41 +00:00
GitLab Bot 83916cf0a2 Add latest changes from gitlab-org/gitlab@master 2023-02-03 12:09:13 +00:00
GitLab Bot 5b98c2c506 Add latest changes from gitlab-org/gitlab@master 2022-12-09 12:08:19 +00:00
GitLab Bot 8060e5c609 Add latest changes from gitlab-org/gitlab@master 2022-10-17 12:10:08 +00:00
GitLab Bot 9de5cc2d1f Add latest changes from gitlab-org/gitlab@master 2022-07-15 00:08:49 +00:00
GitLab Bot 152d3b652d Add latest changes from gitlab-org/gitlab@master 2022-07-13 09:08:30 +00:00
GitLab Bot dd18ae74af Add latest changes from gitlab-org/gitlab@master 2021-07-08 12:08:30 +00:00
GitLab Bot e1f8f12bbe Add latest changes from gitlab-org/gitlab@master 2020-06-19 15:08:39 +00:00
GitLab Bot 47579e24f3 Add latest changes from gitlab-org/gitlab@master 2020-05-27 21:08:05 +00:00
GitLab Bot 1eeef229aa Add latest changes from gitlab-org/gitlab@master 2020-04-03 03:07:58 +00:00
GitLab Bot 154b9bae14 Add latest changes from gitlab-org/gitlab@master 2020-03-17 21:09:16 +00:00
GitLab Bot 5eb11b697d Add latest changes from gitlab-org/gitlab@master 2020-01-06 18:08:01 +00:00
GitLab Bot fb73ca3398 Add latest changes from gitlab-org/gitlab@master 2019-12-27 15:08:16 +00:00
GitLab Bot d10a462fed Add latest changes from gitlab-org/gitlab@master 2019-12-16 12:07:43 +00:00
GitLab Bot 8cc5f27909 Add latest changes from gitlab-org/gitlab@master 2019-12-13 12:07:41 +00:00
GitLab Bot 25989ab7ef Add latest changes from gitlab-org/gitlab@master 2019-10-18 11:11:44 +00:00
George Koltsov 23dfc5d606 Add code review suggestions 2019-08-12 15:05:49 +01:00
George Koltsov ba429a6e20 Apply code review feedback 2019-08-08 13:16:33 +01:00
George Koltsov 5ba77a4999 Add author lines to project import comments 2019-08-07 14:01:40 +01:00
Stan Hu 30f52b690f Avoid storing backtraces from Bitbucket Cloud imports in the database
We noticed in
https://gitlab.com/gitlab-com/gl-infra/production/issues/908 some
Bitbucket imports took over a second to load their projects row because
`import_error` was huge due to errors. To prevent this, we now:

1. Clean the backtraces
2. Log the details into importer.log
3. Omit the details from the database
2019-06-19 12:04:24 -07:00
Patrick Derichs b145d9b873 Refactor spec to reload existing_label right after creation
This will avoid timestamp comparison issues later within equality check
with attributes
2019-05-08 12:39:54 +00:00
Nick Thomas 9f05e97aad
Run rubocop -a 2019-03-13 13:42:43 +00:00
Andrew Newdigate 3288e1a874 Adds the Rubocop ReturnNil cop
This style change enforces `return if ...` instead of
`return nil if ...` to save maintainers a few minor review points
2019-03-06 17:51:56 +02:00
Stan Hu a9ab6dbc63 Refactor use of Shell.import_repository for Wikis
The previous behavior would pass in a list of parameters
to Shell, but we can improve this by using the WikiFormatter
and Project models to give us the same information.
2019-02-05 21:33:09 -08:00
Stan Hu 82b6e5378a Send project name with Gitaly repository requests
When hashed storage is in use, it's helpful to have the project
name associated with the request.

Closes https://gitlab.com/gitlab-org/gitaly/issues/1394
2019-02-05 21:33:09 -08:00
Tiago Botelho 4bd8a427d4
Removes all the irrelevant import related code and columns
Clears the import related columns and code from the Project
model over to the ProjectImportState model
2018-11-27 12:58:13 +00:00
gfyoung e166e5747c Enable some frozen string in lib/gitlab
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.
2018-10-13 02:31:31 -07:00
Yorick Peterse 2039c8280d
Disable existing offenses for the CodeReuse cops
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
Stan Hu 8c467b9175 Fix Bitbucket Cloud importer omitting replies
Inline diff comments did not have the proper position, so even though
they had line codes the merge request validation would fail. Now
we cache the line position for each parent comment and use that.

Closes #50052
2018-08-07 14:34:25 -07:00
Ahmad Sherif ddfc661f79 Use shard name in Git::GitlabProjects instead of shard path
Closes gitaly#1110
2018-04-03 16:22:13 +02:00
Dmitriy Zaporozhets aeab4e6263
Use Project#full_name instead of name_with_namespace
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-03-07 16:07:09 +02:00
Nick Thomas f2977c63a8
Fix bitbucket wiki import with hashed storage enabled 2017-11-20 16:14:41 +00:00
Alejandro Rodríguez 9fdde3693b Move line code generation into Gitlab::Git
Having a distinct class just for that was a bit overkill
2017-10-12 22:13:05 -03:00
Alejandro Rodríguez faa9bd402d Create a Gitlab::Git submodule for conlict-related files
Rename classes to (hopefully) clearer names while we're doing that.
2017-10-12 22:03:15 -03:00
Alejandro Rodríguez f72598b659 Move Gitlab::Diff::LineCode to module Gitlab::Git 2017-10-12 21:45:16 -03:00
Douwe Maan c19d5ac1a2 Expand truncated Bitbucket pull request source/target SHA if possible 2017-09-25 10:22:28 +02:00
Gabriel Mazetto abb878326c Rename many path_with_namespace -> full_path 2017-08-01 07:26:58 +02:00
Valery Sizov 3bc114a7c1 [BB Importer] Save the error trace and the whole raw document 2017-04-11 19:27:15 +03:00
Dongqing Hu 6dd7695444 Labels support color names in backend 2017-03-29 11:45:15 +00:00
Valery Sizov 5b0ebbe5b4 Add Wiki import to BB importer 2016-12-19 20:48:08 +02:00
Douglas Barbosa Alexandre fe9a372c0b Fix import issues method 2016-12-16 19:11:48 -02:00
Douglas Barbosa Alexandre dbe2ac8ccc Fix rubucop offenses 2016-12-16 17:11:54 -02:00
Valery Sizov 7985b52286 BB importer: Adressed more review comments 2016-12-16 17:36:56 +02:00
Valery Sizov b0501c34c4 BB importer: address review comment 2016-12-16 15:40:38 +02:00
Valery Sizov 3b4e81eed5 BB importer: Milestone importer 2016-12-16 13:24:12 +02:00
Valery Sizov 26628fb91a BB importer: Fixed bug with putting expired token to a project.clone_url 2016-12-15 14:19:28 +02:00
Valery Sizov 6bbe2f118e BB importer: More advanced error handling 2016-12-14 15:18:30 +02:00