From e69aae81ead38d4740771a5c8f0f33a4f248a312 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 27 Jul 2020 15:09:25 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- Gemfile | 4 +- Gemfile.lock | 8 +-- .../incidents/components/incidents_list.vue | 10 +++- app/assets/javascripts/incidents/list.js | 3 +- app/controllers/groups/variables_controller.rb | 7 +-- app/helpers/projects/incidents_helper.rb | 3 +- app/services/ci/change_variable_service.rb | 28 --------- app/services/ci/change_variables_service.rb | 11 ---- app/views/shared/wikis/_wiki_directory.html.haml | 2 +- changelogs/unreleased/incidents-issue-link.yml | 5 ++ doc/administration/geo/replication/datatypes.md | 39 +++++++++++-- doc/administration/raketasks/uploads/migrate.md | 10 +++- doc/ci/troubleshooting.md | 5 +- doc/development/geo/framework.md | 8 +++ .../security_dashboard/index.md | 4 ++ lib/api/group_variables.rb | 37 +++++------- qa/Gemfile | 2 +- qa/Gemfile.lock | 2 +- qa/qa/fixtures/auto_devops_rack/Gemfile.lock | 4 +- qa/qa/page/project/wiki/sidebar.rb | 8 +++ .../project_based_directory_management_spec.rb | 31 ++++++++++ .../incidents/components/incidents_list_spec.js | 18 +++++- spec/helpers/projects/incidents_helper_spec.rb | 4 +- spec/requests/api/group_variables_spec.rb | 8 --- spec/services/ci/change_variable_service_spec.rb | 68 ---------------------- spec/services/ci/change_variables_service_spec.rb | 21 ------- 26 files changed, 154 insertions(+), 196 deletions(-) delete mode 100644 app/services/ci/change_variable_service.rb delete mode 100644 app/services/ci/change_variables_service.rb create mode 100644 changelogs/unreleased/incidents-issue-link.yml create mode 100644 qa/qa/specs/features/browser_ui/3_create/wiki/project_based_directory_management_spec.rb delete mode 100644 spec/services/ci/change_variable_service_spec.rb delete mode 100644 spec/services/ci/change_variables_service_spec.rb diff --git a/Gemfile b/Gemfile index e88c96d7cff..8f8bde4fb06 100644 --- a/Gemfile +++ b/Gemfile @@ -41,7 +41,7 @@ gem 'omniauth-oauth2-generic', '~> 0.2.2' gem 'omniauth-saml', '~> 1.10' gem 'omniauth-shibboleth', '~> 1.3.0' gem 'omniauth-twitter', '~> 1.4' -gem 'omniauth_crowd', '~> 2.2.0' +gem 'omniauth_crowd', '~> 2.4.0' gem 'omniauth-authentiq', '~> 0.3.3' gem 'omniauth_openid_connect', '~> 0.3.5' gem 'omniauth-salesforce', '~> 1.0.5' @@ -188,7 +188,7 @@ gem 'acts-as-taggable-on', '~> 6.0' # Background jobs gem 'sidekiq', '~> 5.2.7' gem 'sidekiq-cron', '~> 1.0' -gem 'redis-namespace', '~> 1.6.0' +gem 'redis-namespace', '~> 1.7.0' gem 'gitlab-sidekiq-fetcher', '0.5.2', require: 'sidekiq-reliable-fetch' # Cron Parser diff --git a/Gemfile.lock b/Gemfile.lock index a15b4ea3bdb..15b0faa02ee 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -740,7 +740,7 @@ GEM omniauth-twitter (1.4.0) omniauth-oauth (~> 1.1) rack - omniauth_crowd (2.2.3) + omniauth_crowd (2.4.0) activesupport nokogiri (>= 1.4.4) omniauth (~> 1.0) @@ -877,7 +877,7 @@ GEM redis-activesupport (5.2.0) activesupport (>= 3, < 7) redis-store (>= 1.3, < 2) - redis-namespace (1.6.0) + redis-namespace (1.7.0) redis (>= 3.0.4) redis-rack (2.1.2) rack (>= 2.0.8, < 3) @@ -1337,7 +1337,7 @@ DEPENDENCIES omniauth-saml (~> 1.10) omniauth-shibboleth (~> 1.3.0) omniauth-twitter (~> 1.4) - omniauth_crowd (~> 2.2.0) + omniauth_crowd (~> 2.4.0) omniauth_openid_connect (~> 0.3.5) org-ruby (~> 0.9.12) parallel (~> 1.19) @@ -1365,7 +1365,7 @@ DEPENDENCIES re2 (~> 1.2.0) recaptcha (~> 4.11) redis (~> 4.0) - redis-namespace (~> 1.6.0) + redis-namespace (~> 1.7.0) redis-rails (~> 5.0.2) request_store (~> 1.5) responders (~> 3.0) diff --git a/app/assets/javascripts/incidents/components/incidents_list.vue b/app/assets/javascripts/incidents/components/incidents_list.vue index f15aed739eb..ee2560a0328 100644 --- a/app/assets/javascripts/incidents/components/incidents_list.vue +++ b/app/assets/javascripts/incidents/components/incidents_list.vue @@ -11,7 +11,7 @@ import { } from '@gitlab/ui'; import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue'; import { s__ } from '~/locale'; -import { mergeUrlParams } from '~/lib/utils/url_utility'; +import { mergeUrlParams, joinPaths, visitUrl } from '~/lib/utils/url_utility'; import getIncidents from '../graphql/queries/get_incidents.query.graphql'; import { I18N } from '../constants'; @@ -19,7 +19,7 @@ const tdClass = 'table-col gl-display-flex d-md-table-cell gl-align-items-center gl-white-space-nowrap'; const thClass = 'gl-hover-bg-blue-50'; const bodyTrClass = - 'gl-border-1 gl-border-t-solid gl-border-gray-100 gl-hover-bg-blue-50 gl-hover-border-b-solid gl-hover-border-blue-200'; + 'gl-border-1 gl-border-t-solid gl-border-gray-100 gl-hover-cursor-pointer gl-hover-bg-blue-50 gl-hover-border-b-solid gl-hover-border-blue-200'; export default { i18n: I18N, @@ -56,7 +56,7 @@ export default { directives: { GlTooltip: GlTooltipDirective, }, - inject: ['projectPath', 'newIssuePath', 'incidentTemplateName'], + inject: ['projectPath', 'newIssuePath', 'incidentTemplateName', 'issuePath'], apollo: { incidents: { query: getIncidents, @@ -102,6 +102,9 @@ export default { hasAssignees(assignees) { return Boolean(assignees.nodes?.length); }, + navigateToIncidentDetails({ iid }) { + return visitUrl(joinPaths(this.issuePath, iid)); + }, }, }; @@ -138,6 +141,7 @@ export default { :tbody-tr-class="tbodyTrClass" :no-local-sorting="true" fixed + @row-clicked="navigateToIncidentDetails" >