Skip to content

Commit 127e6d9

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent 14cb5b3 commit 127e6d9

File tree

63 files changed

+726
-180
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+726
-180
lines changed

.rubocop_manual_todo.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ FactoryBot/InlineAssociation:
1616
- 'spec/factories/import_export_uploads.rb'
1717
- 'spec/factories/merge_requests.rb'
1818
- 'spec/factories/notes.rb'
19-
- 'spec/factories/packages.rb'
20-
- 'spec/factories/packages/package_file.rb'
2119
- 'spec/factories/sent_notifications.rb'
2220
- 'spec/factories/uploads.rb'
2321
- 'spec/factories/wiki_pages.rb'

GITALY_SERVER_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
194a9f58926793ade53152de90b474d66804e21e
1+
506c44cc07dcb804ce970ec1c02bb6e0d52320d8

app/assets/javascripts/vue_shared/components/dropdown/dropdown_button.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<script>
2-
import { GlLoadingIcon } from '@gitlab/ui';
2+
import { GlLoadingIcon, GlIcon } from '@gitlab/ui';
33
import { __ } from '~/locale';
44
55
export default {
66
components: {
77
GlLoadingIcon,
8+
GlIcon,
89
},
910
props: {
1011
isDisabled: {
@@ -39,8 +40,10 @@ export default {
3940
<slot v-if="$slots.default"></slot>
4041
<span v-else class="dropdown-toggle-text"> {{ toggleText }} </span>
4142
</template>
42-
<span v-show="!isLoading" class="dropdown-toggle-icon">
43-
<i class="fa fa-chevron-down" aria-hidden="true" data-hidden="true"></i>
44-
</span>
43+
<gl-icon
44+
v-show="!isLoading"
45+
class="gl-absolute gl-top-3 gl-right-3 gl-text-gray-500"
46+
name="chevron-down"
47+
/>
4548
</button>
4649
</template>

app/controllers/application_controller.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,12 @@ def no_cache_headers
266266
end
267267
end
268268

269+
def stream_headers
270+
headers['Content-Length'] = nil
271+
headers['X-Accel-Buffering'] = 'no' # Disable buffering on Nginx
272+
headers['Last-Modified'] = '0' # Prevent buffering via Rack::ETag middleware
273+
end
274+
269275
def default_headers
270276
headers['X-Frame-Options'] = 'DENY'
271277
headers['X-XSS-Protection'] = '1; mode=block'

app/controllers/registrations_controller.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class RegistrationsController < Devise::RegistrationsController
44
include Recaptcha::Verify
55
include AcceptsPendingInvitations
6-
include RecaptchaExperimentHelper
6+
include RecaptchaHelper
77
include InvisibleCaptchaOnSignup
88

99
BLOCKED_PENDING_APPROVAL_STATE = 'blocked_pending_approval'.freeze
@@ -176,5 +176,3 @@ def set_invite_params
176176
@invite_email = ActionController::Base.helpers.sanitize(params[:invite_email])
177177
end
178178
end
179-
180-
RegistrationsController.prepend_if_ee('EE::RegistrationsController')

app/helpers/recaptcha_experiment_helper.rb

Lines changed: 0 additions & 9 deletions
This file was deleted.

app/helpers/recaptcha_helper.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
module RecaptchaHelper
4+
def show_recaptcha_sign_up?
5+
!!Gitlab::Recaptcha.enabled?
6+
end
7+
end

app/services/issues/reopen_service.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ class ReopenService < Issues::BaseService
55
def execute(issue)
66
return issue unless can?(current_user, :reopen_issue, issue)
77

8-
before_reopen(issue)
9-
108
if issue.reopen
119
event_service.reopen_issue(issue, current_user)
1210
create_note(issue, 'reopened')
@@ -23,14 +21,8 @@ def execute(issue)
2321

2422
private
2523

26-
def before_reopen(issue)
27-
# Overriden in EE
28-
end
29-
3024
def create_note(issue, state = issue.state)
3125
SystemNoteService.change_status(issue, issue.project, current_user, state, nil)
3226
end
3327
end
3428
end
35-
36-
Issues::ReopenService.prepend_if_ee('EE::Issues::ReopenService')

app/services/jira_connect_subscriptions/create_service.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module JiraConnectSubscriptions
44
class CreateService < ::JiraConnectSubscriptions::BaseService
55
include Gitlab::Utils::StrongMemoize
66
MERGE_REQUEST_SYNC_BATCH_SIZE = 20
7-
MERGE_REQUEST_SYNC_BATCH_delay = 1.minute.freeze
7+
MERGE_REQUEST_SYNC_BATCH_DELAY = 1.minute.freeze
88

99
def execute
1010
unless namespace && can?(current_user, :create_jira_connect_subscription, namespace)
@@ -39,7 +39,7 @@ def schedule_sync_project_jobs
3939

4040
namespace.all_projects.each_batch(of: MERGE_REQUEST_SYNC_BATCH_SIZE) do |projects, index|
4141
JiraConnect::SyncProjectWorker.bulk_perform_in_with_contexts(
42-
index * MERGE_REQUEST_SYNC_BATCH_delay,
42+
index * MERGE_REQUEST_SYNC_BATCH_DELAY,
4343
projects,
4444
arguments_proc: -> (project) { [project.id, Atlassian::JiraConnect::Client.generate_update_sequence_id] },
4545
context_proc: -> (project) { { project: project } }

app/views/admin/application_settings/_eks.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.settings-header
44
%h4
55
= _('Amazon EKS')
6-
%button.btn.js-settings-toggle{ type: 'button' }
6+
%button.btn.gl-button.js-settings-toggle{ type: 'button' }
77
= expanded ? 'Collapse' : 'Expand'
88
%p
99
= _('Amazon EKS integration allows you to provision EKS clusters from GitLab.')

0 commit comments

Comments
 (0)