Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
0e06a8a602
commit
e6f170581e
9 changed files with 29 additions and 18 deletions
2
Gemfile
2
Gemfile
|
@ -19,7 +19,7 @@ gem 'default_value_for', '~> 3.3.0'
|
|||
gem 'pg', '~> 1.1'
|
||||
|
||||
gem 'rugged', '~> 0.28'
|
||||
gem 'grape-path-helpers', '~> 1.5'
|
||||
gem 'grape-path-helpers', '~> 1.6.1'
|
||||
|
||||
gem 'faraday', '~> 1.0'
|
||||
gem 'marginalia', '~> 1.10.0'
|
||||
|
|
|
@ -499,10 +499,11 @@ GEM
|
|||
grape-entity (0.7.1)
|
||||
activesupport (>= 4.0)
|
||||
multi_json (>= 1.3.2)
|
||||
grape-path-helpers (1.5.0)
|
||||
grape-path-helpers (1.6.1)
|
||||
activesupport
|
||||
grape (~> 1.3)
|
||||
rake (> 12)
|
||||
ruby2_keywords (~> 0.0.2)
|
||||
grape_logging (1.8.3)
|
||||
grape
|
||||
rack
|
||||
|
@ -1373,7 +1374,7 @@ DEPENDENCIES
|
|||
gpgme (~> 2.0.19)
|
||||
grape (~> 1.5.1)
|
||||
grape-entity (~> 0.7.1)
|
||||
grape-path-helpers (~> 1.5)
|
||||
grape-path-helpers (~> 1.6.1)
|
||||
grape_logging (~> 1.7)
|
||||
graphiql-rails (~> 1.4.10)
|
||||
graphlient (~> 0.4.0)
|
||||
|
|
5
changelogs/unreleased/id-bump-grape-helpers.yml
Normal file
5
changelogs/unreleased/id-bump-grape-helpers.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Update grape-path-helpers gem version
|
||||
merge_request: 51320
|
||||
author:
|
||||
type: other
|
5
changelogs/unreleased/mk-remove-extra-space.yml
Normal file
5
changelogs/unreleased/mk-remove-extra-space.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Remove extra space in API 403 Forbidden error message
|
||||
merge_request: 50016
|
||||
author:
|
||||
type: changed
|
|
@ -28,16 +28,16 @@ test:
|
|||
staging:
|
||||
stage: deploy
|
||||
script:
|
||||
- gem install dpl
|
||||
- dpl --provider=heroku --app=gitlab-ci-ruby-test-staging --api-key=$HEROKU_STAGING_API_KEY
|
||||
- gem install dpl --pre
|
||||
- dpl heroku api --app=gitlab-ci-ruby-test-staging --api-key=$HEROKU_STAGING_API_KEY
|
||||
only:
|
||||
- master
|
||||
|
||||
production:
|
||||
stage: deploy
|
||||
script:
|
||||
- gem install dpl
|
||||
- dpl --provider=heroku --app=gitlab-ci-ruby-test-prod --api-key=$HEROKU_PRODUCTION_API_KEY
|
||||
- gem install dpl --pre
|
||||
- dpl heroku api --app=gitlab-ci-ruby-test-prod --api-key=$HEROKU_PRODUCTION_API_KEY
|
||||
only:
|
||||
- tags
|
||||
```
|
||||
|
@ -50,7 +50,7 @@ This project has three jobs:
|
|||
|
||||
## Store API keys
|
||||
|
||||
You'll need to create two variables in your project's **Settings > CI/CD > Environment variables**:
|
||||
You'll need to create two variables in your project's **Settings > CI/CD > Environment variables** and do not check **Protect variable** and **Mask variable**:
|
||||
|
||||
- `HEROKU_STAGING_API_KEY` - Heroku API key used to deploy staging app.
|
||||
- `HEROKU_PRODUCTION_API_KEY` - Heroku API key used to deploy production app.
|
||||
|
|
|
@ -7,7 +7,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
|
|||
# Canary Deployments **(CORE)**
|
||||
|
||||
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/1659) in [GitLab Premium](https://about.gitlab.com/pricing/) 9.1.
|
||||
> - [Moved](https://gitlab.com/gitlab-org/gitlab/-/issues/212320) to GitLab Core in 13.7.
|
||||
> - [Moved](https://gitlab.com/gitlab-org/gitlab/-/issues/212320) to GitLab Core in 13.8.
|
||||
|
||||
A popular [Continuous Deployment](https://en.wikipedia.org/wiki/Continuous_deployment)
|
||||
strategy, where a small portion of the fleet is updated to the new version of
|
||||
|
@ -72,7 +72,7 @@ can easily notice them.
|
|||
### Advanced traffic control with Canary Ingress
|
||||
|
||||
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/215501) in [GitLab Premium](https://about.gitlab.com/pricing/) 13.6.
|
||||
> - [Moved](https://gitlab.com/gitlab-org/gitlab/-/issues/212320) to Core in GitLab 13.7.
|
||||
> - [Moved](https://gitlab.com/gitlab-org/gitlab/-/issues/212320) to Core in GitLab 13.8.
|
||||
|
||||
Canary deployments can be more strategic with [Canary Ingress](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#canary),
|
||||
which is an advanced traffic routing service that controls incoming HTTP
|
||||
|
|
|
@ -8,7 +8,7 @@ type: howto, reference
|
|||
# Deploy Boards **(CORE)**
|
||||
|
||||
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/1589) in [GitLab Premium](https://about.gitlab.com/pricing/) 9.0.
|
||||
> - [Moved](<https://gitlab.com/gitlab-org/gitlab/-/issues/212320>) to GitLab Core in 13.7.
|
||||
> - [Moved](<https://gitlab.com/gitlab-org/gitlab/-/issues/212320>) to GitLab Core in 13.8.
|
||||
|
||||
GitLab Deploy Boards offer a consolidated view of the current health and
|
||||
status of each CI [environment](../../ci/environments/index.md) running on [Kubernetes](https://kubernetes.io), displaying the status
|
||||
|
|
|
@ -372,7 +372,7 @@ module API
|
|||
|
||||
def forbidden!(reason = nil)
|
||||
message = ['403 Forbidden']
|
||||
message << " - #{reason}" if reason
|
||||
message << "- #{reason}" if reason
|
||||
render_api_error!(message.join(' '), 403)
|
||||
end
|
||||
|
||||
|
|
|
@ -2368,7 +2368,7 @@ RSpec.describe API::Users do
|
|||
activate
|
||||
|
||||
expect(response).to have_gitlab_http_status(:forbidden)
|
||||
expect(json_response['message']).to eq('403 Forbidden - A blocked user must be unblocked to be activated')
|
||||
expect(json_response['message']).to eq('403 Forbidden - A blocked user must be unblocked to be activated')
|
||||
expect(user.reload.state).to eq('blocked')
|
||||
end
|
||||
end
|
||||
|
@ -2382,7 +2382,7 @@ RSpec.describe API::Users do
|
|||
activate
|
||||
|
||||
expect(response).to have_gitlab_http_status(:forbidden)
|
||||
expect(json_response['message']).to eq('403 Forbidden - A blocked user must be unblocked to be activated')
|
||||
expect(json_response['message']).to eq('403 Forbidden - A blocked user must be unblocked to be activated')
|
||||
expect(user.reload.state).to eq('ldap_blocked')
|
||||
end
|
||||
end
|
||||
|
@ -2439,7 +2439,7 @@ RSpec.describe API::Users do
|
|||
deactivate
|
||||
|
||||
expect(response).to have_gitlab_http_status(:forbidden)
|
||||
expect(json_response['message']).to eq("403 Forbidden - The user you are trying to deactivate has been active in the past #{::User::MINIMUM_INACTIVE_DAYS} days and cannot be deactivated")
|
||||
expect(json_response['message']).to eq("403 Forbidden - The user you are trying to deactivate has been active in the past #{::User::MINIMUM_INACTIVE_DAYS} days and cannot be deactivated")
|
||||
expect(user.reload.state).to eq('active')
|
||||
end
|
||||
end
|
||||
|
@ -2467,7 +2467,7 @@ RSpec.describe API::Users do
|
|||
deactivate
|
||||
|
||||
expect(response).to have_gitlab_http_status(:forbidden)
|
||||
expect(json_response['message']).to eq('403 Forbidden - A blocked user cannot be deactivated by the API')
|
||||
expect(json_response['message']).to eq('403 Forbidden - A blocked user cannot be deactivated by the API')
|
||||
expect(user.reload.state).to eq('blocked')
|
||||
end
|
||||
end
|
||||
|
@ -2481,7 +2481,7 @@ RSpec.describe API::Users do
|
|||
deactivate
|
||||
|
||||
expect(response).to have_gitlab_http_status(:forbidden)
|
||||
expect(json_response['message']).to eq('403 Forbidden - A blocked user cannot be deactivated by the API')
|
||||
expect(json_response['message']).to eq('403 Forbidden - A blocked user cannot be deactivated by the API')
|
||||
expect(user.reload.state).to eq('ldap_blocked')
|
||||
end
|
||||
end
|
||||
|
@ -2493,7 +2493,7 @@ RSpec.describe API::Users do
|
|||
deactivate
|
||||
|
||||
expect(response).to have_gitlab_http_status(:forbidden)
|
||||
expect(json_response['message']).to eq('403 Forbidden - An internal user cannot be deactivated by the API')
|
||||
expect(json_response['message']).to eq('403 Forbidden - An internal user cannot be deactivated by the API')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue