Commit Graph

89 Commits

Author SHA1 Message Date
GitLab Bot ab37c8f637 Add latest changes from gitlab-org/gitlab@master 2023-11-30 21:15:15 +00:00
GitLab Bot 4b74e7efc0 Add latest changes from gitlab-org/gitlab@master 2023-11-16 06:07:09 +00:00
GitLab Bot 68ce709bef Add latest changes from gitlab-org/gitlab@master 2023-11-01 18:12:39 +00:00
GitLab Bot 40a4f37126 Add latest changes from gitlab-org/gitlab@master 2023-10-24 15:12:41 +00:00
GitLab Bot f94cd1d0fb Add latest changes from gitlab-org/gitlab@master 2023-10-23 12:11:40 +00:00
GitLab Bot 3c55affa66 Add latest changes from gitlab-org/gitlab@master 2023-10-19 15:07:55 +00:00
GitLab Bot 5fcd4e5fbc Add latest changes from gitlab-org/gitlab@master 2023-10-16 18:10:30 +00:00
GitLab Bot 605f9296cc Add latest changes from gitlab-org/gitlab@master 2023-09-27 06:09:27 +00:00
GitLab Bot 5bbc92d39c Add latest changes from gitlab-org/gitlab@master 2023-09-20 21:10:41 +00:00
GitLab Bot 87ce80bead Add latest changes from gitlab-org/gitlab@master 2023-09-19 18:11:47 +00:00
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 4e175ca905 Add latest changes from gitlab-org/gitlab@master 2023-05-23 21:09:55 +00:00
GitLab Bot b6b701cf9d Add latest changes from gitlab-org/gitlab@master 2023-05-16 18:09:09 +00:00
GitLab Bot c7eec01f1b Add latest changes from gitlab-org/gitlab@master 2023-04-20 09:18:59 +00:00
GitLab Bot 73fe31a692 Add latest changes from gitlab-org/gitlab@master 2023-03-10 18:12:41 +00:00
GitLab Bot aadb3204ea Add latest changes from gitlab-org/gitlab@master 2023-02-13 15:08:09 +00:00
GitLab Bot d0aeb5df3d Add latest changes from gitlab-org/gitlab@master 2023-02-08 12:10:06 +00:00
GitLab Bot 83916cf0a2 Add latest changes from gitlab-org/gitlab@master 2023-02-03 12:09:13 +00:00
GitLab Bot bf18f3295b Add latest changes from gitlab-org/gitlab@master 2022-10-20 12:10:43 +00:00
GitLab Bot 8060e5c609 Add latest changes from gitlab-org/gitlab@master 2022-10-17 12:10:08 +00:00
GitLab Bot 8cfb9f566d Add latest changes from gitlab-org/gitlab@master 2022-09-22 06:13: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 6092dcc437 Add latest changes from gitlab-org/gitlab@master 2020-10-02 12:09:03 +00:00
GitLab Bot bdca097916 Add latest changes from gitlab-org/gitlab@master 2020-08-11 03:11:00 +00:00
GitLab Bot d6348d22dd Add latest changes from gitlab-org/gitlab@master 2020-06-24 09:08:32 +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 d8ccc7a00b Add latest changes from gitlab-org/gitlab@master 2019-11-07 18:06:21 +00:00
GitLab Bot 25989ab7ef Add latest changes from gitlab-org/gitlab@master 2019-10-18 11:11:44 +00:00
George Koltsov ba429a6e20 Apply code review feedback 2019-08-08 13:16:33 +01:00
George Koltsov 5711004467 Add bitbucket_import/importer_spec.rb spec
- Replace `username` field with `nickname` due to updates in
BitBucket Cloud API
- Add new imported spec validating addition of `authod_line`
2019-08-07 16:14:10 +01:00
David Wilkins 467a411e88 Convert RestClient to Gitlab::HTTP for Prometheus Monitor
- Closes #60024

- Change PrometheusClient.new to accept a base url instead of an
  already created RestClient

- Use Gitlab::HTTP in PrometheusClient instead of creating RestClient
  in PrometheusService

- Move http_options from PrometheusService to
  PrometheusClient (follow_redirects: false)

- ensure that base urls don't have the trailing slash

- Created a `PrometheusClient#url` method that might not be strictly
  required

- Change rescued exceptions from RestClient::* to
  HTTParty::ResponseError where possible and StandardError for the
  rest
2019-08-07 02:42:20 +00:00
Thong Kuah f540ffcef6 Add frozen_string_literal to spec/lib (part 1)
Using the sed script from
https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-07-26 13:25:07 +12: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
GitLab Release Tools Bot 5dc6c8f2d0 Merge branch 'security-60039' into 'master'
Disallow invalid MR branch name

See merge request gitlab/gitlabhq!3052
2019-06-03 12:34:04 +00: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
Mark Chao d8bddb1662 Validate MR branch names
Prevents refspec as branch name, which would bypass branch protection
when used in conjunction with rebase.

HEAD seems to be a special case with lots of occurrence,
so it is considered valid for now.

Another special case is `refs/head/*`, which can be imported.
2019-05-03 03:02:58 +08:00
Francisco Javier López 150f7c1e9c Fix Bitbucket import
In ebf16ada85
we introduced a SHA validator, to ensure that the data provided in
merge request diffs, was legit. Nevertheless, the validator
assumed that the SHA should be 40 chars long.

When we import a project from BitBucket, the retrieved SHA is
shorter (12 chars long). Therefore, this validator prevented to
create a valid MergeRequestDiff for ever MergeRequest (triggering
an exception).
2019-03-14 10:05:17 +00:00
Stan Hu 322402aada Add more tests and comments around Wiki formatting 2019-02-05 21:33:10 -08: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
Rémy Coutable 3a2abc1d50
Enable the Layout/ExtraSpacing cop
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-01-24 13:05:45 +01:00
Douglas Barbosa Alexandre 2e75e93c31
Does not allow an import_url with SSH protocol 2018-10-15 19:03:40 -03: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
Lin Jen-Shin 562f357ba5 Implement `expect_next_instance_of` and use it
We need this because `expect_any_instance_of` doesn't work on
prepended models. Now we could use the same code between CE/EE
2018-06-21 16:32:07 +08:00