Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot 2020-12-31 15:10:32 +00:00
parent b69895951e
commit 73b1049a46
10 changed files with 18 additions and 9 deletions

View file

@ -31,7 +31,7 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
feature_category :source_code_management, [:repository, :clear_repository_check_states] feature_category :source_code_management, [:repository, :clear_repository_check_states]
feature_category :continuous_integration, [:ci_cd, :reset_registration_token] feature_category :continuous_integration, [:ci_cd, :reset_registration_token]
feature_category :collection, [:usage_data] feature_category :usage_ping, [:usage_data]
feature_category :integrations, [:integrations] feature_category :integrations, [:integrations]
feature_category :pages, [:lets_encrypt_terms_of_service] feature_category :pages, [:lets_encrypt_terms_of_service]

View file

@ -3,7 +3,7 @@
class Projects::UsagePingController < Projects::ApplicationController class Projects::UsagePingController < Projects::ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
feature_category :collection feature_category :usage_ping
def web_ide_clientside_preview def web_ide_clientside_preview
return render_404 unless Gitlab::CurrentSettings.web_ide_clientside_preview_enabled? return render_404 unless Gitlab::CurrentSettings.web_ide_clientside_preview_enabled?

View file

@ -1,5 +1,5 @@
%p.details %p.details
#{link_to @issue.author_name, user_url(@issue.author)}'s issue is due soon. #{link_to @issue.author_name, user_url(@issue.author)}'s issue #{issue_reference_link(@issue)} is due soon.
- if @issue.assignees.any? - if @issue.assignees.any?
%p %p

View file

@ -1,6 +1,6 @@
The following issue is due on <%= @issue.due_date %>: The following issue is due on <%= @issue.due_date %>:
Issue <%= @issue.iid %>: <%= url_for(project_issue_url(@issue.project, @issue)) %> Issue <%= @issue.iid %>: <%= issue_reference_link(@issue) %>
Author: <%= @issue.author_name %> Author: <%= @issue.author_name %>
<%= assignees_label(@issue) %> <%= assignees_label(@issue) %>

View file

@ -188,7 +188,7 @@
:idempotent: :idempotent:
:tags: [] :tags: []
- :name: cronjob:gitlab_usage_ping - :name: cronjob:gitlab_usage_ping
:feature_category: :collection :feature_category: :usage_ping
:has_external_dependencies: :has_external_dependencies:
:urgency: :low :urgency: :low
:resource_boundary: :unknown :resource_boundary: :unknown

View file

@ -8,7 +8,7 @@ class GitlabUsagePingWorker # rubocop:disable Scalability/IdempotentWorker
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
include Gitlab::ExclusiveLeaseHelpers include Gitlab::ExclusiveLeaseHelpers
feature_category :collection feature_category :usage_ping
sidekiq_options retry: 3, dead: false sidekiq_options retry: 3, dead: false
sidekiq_retry_in { |count| (count + 1) * 8.hours.to_i } sidekiq_retry_in { |count| (count + 1) * 8.hours.to_i }

View file

@ -0,0 +1,5 @@
---
title: Add issue link to due date emails
merge_request: 50642
author:
type: changed

View file

@ -9,7 +9,6 @@
--- ---
- accessibility_testing - accessibility_testing
- advanced_deployments - advanced_deployments
- analysis
- api - api
- attack_emulation - attack_emulation
- audit_events - audit_events
@ -25,7 +24,6 @@
- code_quality - code_quality
- code_review - code_review
- code_testing - code_testing
- collection
- compliance_management - compliance_management
- container_host_security - container_host_security
- container_network_security - container_network_security
@ -83,6 +81,7 @@
- pages - pages
- pipeline_authoring - pipeline_authoring
- planning_analytics - planning_analytics
- privacy_control_center
- product_analytics - product_analytics
- projects - projects
- provision - provision
@ -112,6 +111,7 @@
- time_tracking - time_tracking
- tracing - tracing
- usability_testing - usability_testing
- usage_ping
- users - users
- value_stream_management - value_stream_management
- vulnerability_database - vulnerability_database

View file

@ -4,7 +4,7 @@ module API
class UsageData < ::API::Base class UsageData < ::API::Base
before { authenticate! } before { authenticate! }
feature_category :collection feature_category :usage_ping
namespace 'usage_data' do namespace 'usage_data' do
before do before do

View file

@ -224,6 +224,10 @@ RSpec.describe Notify do
let(:model) { issue } let(:model) { issue }
end end
it 'contains a link to the issue' do
is_expected.to have_body_text(issue.to_reference(full: false))
end
it_behaves_like 'it should show Gmail Actions View Issue link' it_behaves_like 'it should show Gmail Actions View Issue link'
it_behaves_like 'an unsubscribeable thread' it_behaves_like 'an unsubscribeable thread'
it_behaves_like 'appearance header and footer enabled' it_behaves_like 'appearance header and footer enabled'