Skip to content

Commit aa84824

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent 96100bc commit aa84824

File tree

19 files changed

+55
-246
lines changed

19 files changed

+55
-246
lines changed

.rubocop_todo/capybara/testid_finders.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ Capybara/TestidFinders:
9696
- 'spec/features/nav/new_nav_callout_spec.rb'
9797
- 'spec/features/nav/new_nav_toggle_spec.rb'
9898
- 'spec/features/nav/pinned_nav_items_spec.rb'
99-
- 'spec/features/nav/top_nav_responsive_spec.rb'
100-
- 'spec/features/nav/top_nav_spec.rb'
10199
- 'spec/features/populate_new_pipeline_vars_with_params_spec.rb'
102100
- 'spec/features/profile_spec.rb'
103101
- 'spec/features/profiles/account_spec.rb'

app/controllers/projects_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ class ProjectsController < Projects::ApplicationController
4343
push_frontend_feature_flag(:explain_code_chat, current_user)
4444
push_frontend_feature_flag(:service_desk_custom_email, @project)
4545
push_frontend_feature_flag(:issue_email_participants, @project)
46+
# TODO: We need to remove the FF eventually when we rollout page_specific_styles
47+
push_frontend_feature_flag(:page_specific_styles, current_user)
4648
push_licensed_feature(:file_locks) if @project.present? && @project.licensed_feature_available?(:file_locks)
4749
push_licensed_feature(:security_orchestration_policies) if @project.present? && @project.licensed_feature_available?(:security_orchestration_policies)
4850
push_force_frontend_feature_flag(:work_items, @project&.work_items_feature_flag_enabled?)

app/mailers/emails/issues.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def relabeled_issue_email(recipient_id, issue_id, label_names, updated_by_user_i
7070
setup_issue_mail(issue_id, recipient_id)
7171

7272
@label_names = label_names
73-
@labels_url = project_labels_url(@project)
73+
@labels_url = project_labels_url(@project, subscribed: true)
7474
mail_answer_thread(
7575
@issue,
7676
issue_thread_options(

app/mailers/emails/merge_requests.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def relabeled_merge_request_email(recipient_id, merge_request_id, label_names, u
6565
setup_merge_request_mail(merge_request_id, recipient_id)
6666

6767
@label_names = label_names
68-
@labels_url = project_labels_url(@project)
68+
@labels_url = project_labels_url(@project, subscribed: true)
6969
mail_answer_thread(@merge_request, merge_request_thread_options(updated_by_user_id, reason))
7070
end
7171

app/services/notification_service.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def changed_reviewer_of_merge_request(merge_request, current_user, previous_revi
358358
def review_requested_of_merge_request(merge_request, current_user, reviewer)
359359
recipients = NotificationRecipients::BuildService.build_requested_review_recipients(merge_request, current_user, reviewer)
360360

361-
deliver_option = review_request_deliver_options(merge_request.project, reviewer)
361+
deliver_option = review_request_deliver_options(merge_request.project)
362362

363363
recipients.each do |recipient|
364364
mailer
@@ -975,7 +975,7 @@ def new_review_deliver_options(review)
975975
{}
976976
end
977977

978-
def review_request_deliver_options(project, user)
978+
def review_request_deliver_options(project)
979979
# Overridden in EE
980980
{}
981981
end

app/views/layouts/_head.html.haml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
- site_name = _('GitLab')
33
- omit_og = sign_in_with_redirect?
44

5-
-# This is a temporary place for the page specific style migrations to be included on all pages like page_specific_files
6-
- if Feature.disabled?(:page_specific_styles, current_user)
7-
- add_page_specific_style('page_bundles/projects')
8-
95
%head{ omit_og ? { } : { prefix: "og: http://ogp.me/ns#" } }
106
%meta{ charset: "utf-8" }
117
%meta{ 'http-equiv' => 'X-UA-Compatible', content: 'IE=edge' }

app/views/layouts/minimal.html.haml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
- page_classes = page_class.push(@html_class).flatten.compact
22

33
!!! 5
4-
%html{ lang: I18n.locale, class: page_classes }
4+
%html.gl-h-full{ lang: I18n.locale, class: page_classes }
55
= render "layouts/head"
6-
%body{ data: body_data, class: system_message_class }
6+
%body.gl-h-full{ data: body_data, class: system_message_class }
77
= header_message
88
= render 'peek/bar'
99
= render 'layouts/published_experiments'
1010
= render "layouts/header/empty"
11-
.layout-page
11+
.layout-page.gl-h-full.borderless.gl-display-flex.gl-flex-wrap
1212
.content-wrapper.gl-pt-6{ class: 'gl-md-pt-11!' }
1313
%div{ class: container_class }
1414
%main#content-body.content
1515
= render "layouts/flash" unless @hide_flash
1616
= yield
17+
= yield :footer
1718
= footer_message

doc/ci/components/index.md

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,19 +169,34 @@ Nesting of components is not possible. For example:
169169

170170
## Release a component
171171

172-
To create a release for a CI/CD component, use either:
172+
To create a release for a CI/CD component, use the [`release`](../yaml/index.md#release)
173+
keyword in a CI/CD pipeline.
173174

174-
- The [`release`](../yaml/index.md#release) keyword in a CI/CD pipeline. Like in the
175-
[component testing example](#test-the-component), you can set a component to automatically
176-
be released after all tests pass in pipelines for new tags.
177-
- The [UI for creating a release](../../user/project/releases/index.md#create-a-release).
175+
For example:
176+
177+
```yaml
178+
create-release:
179+
stage: deploy
180+
image: registry.gitlab.com/gitlab-org/release-cli:latest
181+
rules:
182+
- if: $CI_COMMIT_TAG =~ /^v\d+/
183+
script: echo "Creating release $CI_COMMIT_TAG"
184+
release:
185+
tag_name: $CI_COMMIT_TAG
186+
description: "Release $CI_COMMIT_TAG of components repository $CI_PROJECT_PATH"
187+
```
188+
189+
In this example, the job runs only for tags formatted as `v` + version number.
190+
If all previous jobs succeed, the release is created.
191+
192+
Like in the [component testing example](#test-the-component), you can set a component to automatically
193+
be released after all tests pass in pipelines for new tags.
178194

179-
All released versions of the components are displayed in the [CI/CD Catalog](catalog.md)
180-
page for the given resource, providing users with information about official releases.
195+
All released versions of the components repositories are displayed in the [CI/CD Catalog](catalog.md),
196+
providing users with information about official releases.
181197

182198
Components [can be used](#use-a-component-in-a-cicd-configuration) without being released,
183-
but only with a commit SHA or a branch name. To enable the use of tags or the `~latest` version keyword,
184-
you must create a release.
199+
by using the commit SHA or ref. However, the `~latest` version keyword can only be used with released tags.
185200

186201
## Use a component in a CI/CD configuration
187202

doc/development/api_graphql_styleguide.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,11 @@ developers must familiarize themselves with our [Deprecation and Removal process
154154
Breaking changes are:
155155

156156
- Removing or renaming a field, argument, enum value, or mutation.
157-
- Changing the type of a field, argument or enum value.
157+
- Changing the type or type name of an argument. This is because the type of an argument
158+
is declared by the client when [using variables](https://graphql.org/learn/queries/#variables),
159+
and queries with the old type name would be rejected by the API.
160+
- Changing the _scalar type_ of a field or enum value. Object types can be changed so long as all
161+
scalar type fields of the object remain the same.
158162
- Raising the [complexity](#max-complexity) of a field or complexity multipliers in a resolver.
159163
- Changing a field from being _not_ nullable (`null: false`) to nullable (`null: true`), as
160164
discussed in [Nullable fields](#nullable-fields).

doc/integration/jira/issues.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ For example, use any of these trigger words to close the Jira issue `PROJECT-1`:
117117
The commit or merge request must target your project's [default branch](../../user/project/repository/branches/default.md).
118118
You can change your project's default branch in [project settings](../../user/project/settings/index.md).
119119

120+
When your branch name matches the Jira issue ID, `Closes <JIRA-ID>` is automatically appended to your existing merge request template.
121+
If you do not want to close the issue, [disable automatic issue closing](../../user/project/issues/managing_issues.md#disable-automatic-issue-closing).
122+
120123
### Use case for closing issues
121124

122125
Consider this example:

spec/features/issues/user_uses_quick_actions_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
context "issuable common quick actions" do
1414
let(:new_url_opts) { {} }
15-
let(:maintainer) { create(:user, :no_super_sidebar) }
16-
let(:project) { create(:project, :public) }
15+
let(:maintainer) { create(:user) }
16+
let_it_be(:project) { create(:project, :public) }
1717
let!(:label_bug) { create(:label, project: project, title: 'bug') }
1818
let!(:label_feature) { create(:label, project: project, title: 'feature') }
1919
let!(:milestone) { create(:milestone, project: project, title: 'ASAP') }
@@ -25,7 +25,7 @@
2525
end
2626

2727
describe 'issue-only commands' do
28-
let(:user) { create(:user, :no_super_sidebar) }
28+
let(:user) { create(:user) }
2929
let(:project) { create(:project, :public, :repository) }
3030
let(:issue) { create(:issue, project: project, due_date: Date.new(2016, 8, 28)) }
3131

spec/features/nav/top_nav_responsive_spec.rb

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

spec/features/nav/top_nav_spec.rb

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

spec/features/nav/top_nav_tooltip_spec.rb

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

spec/features/unsubscribe_links_spec.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
include Warden::Test::Helpers
77

88
let_it_be(:project) { create(:project, :public) }
9-
let_it_be(:author) { create(:user, :no_super_sidebar).tap { |u| project.add_reporter(u) } }
10-
let_it_be(:recipient) { create(:user, :no_super_sidebar) }
9+
let_it_be(:author) { create(:user).tap { |u| project.add_reporter(u) } }
10+
let_it_be(:recipient) { create(:user) }
1111

1212
let(:params) { { title: 'A bug!', description: 'Fix it!', assignee_ids: [recipient.id] } }
1313
let(:issue) { Issues::CreateService.new(container: project, current_user: author, params: params).execute[:issue] }
@@ -22,10 +22,6 @@
2222
end
2323

2424
context 'when logged out' do
25-
before do
26-
stub_feature_flags(super_sidebar_logged_out: false)
27-
end
28-
2925
context 'when visiting the link from the body' do
3026
it 'shows the unsubscribe confirmation page and redirects to root path when confirming' do
3127
visit body_link

spec/features/users/anonymous_sessions_spec.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
RSpec.describe 'Session TTLs', :clean_gitlab_redis_shared_state, feature_category: :system_access do
66
include SessionHelpers
77

8+
before do
9+
expire_session
10+
end
11+
812
it 'creates a session with a short TTL when login fails' do
913
visit new_user_session_path
1014
# The session key only gets created after a post
@@ -18,10 +22,10 @@
1822
end
1923

2024
it 'increases the TTL when the login succeeds' do
21-
user = create(:user, :no_super_sidebar)
25+
user = create(:user)
2226
gitlab_sign_in(user)
2327

24-
expect(page).to have_content(user.name)
28+
expect(find('.js-super-sidebar')['data-sidebar']).to include(user.name)
2529

2630
expect_single_session_with_authenticated_ttl
2731
end

0 commit comments

Comments
 (0)