From 2d075756cebf66d7dbf0a5fc7e709f87a8bbabc7 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 27 Aug 2020 06:10:37 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .../components/usage_ping_disabled.vue | 48 +++++++++++++++++++ .../components/design_sidebar.vue | 22 +++++++-- .../javascripts/pages/admin/cohorts/index.js | 22 +++++++++ .../snippets/components/snippet_blob_edit.vue | 5 +- app/controllers/projects/issues_controller.rb | 12 ++--- app/views/admin/cohorts/index.html.haml | 10 +--- ...olved-threads-popup-link-and-placement.yml | 5 ++ ...rove-empty-state-to-match-devops-score.yml | 5 ++ ...41199-fix-snippet-loading-json-content.yml | 5 ++ doc/README.md | 2 +- doc/administration/index.md | 2 +- doc/administration/instance_limits.md | 2 +- doc/administration/logs.md | 2 +- doc/development/migration_style_guide.md | 4 +- doc/integration/README.md | 2 +- doc/integration/elasticsearch.md | 2 +- doc/user/clusters/applications.md | 2 +- doc/user/index.md | 2 +- .../test_coverage_visualization.md | 5 +- doc/user/search/advanced_global_search.md | 14 +++--- doc/user/search/advanced_search_syntax.md | 6 +-- doc/user/search/index.md | 4 +- locale/am_ET/gitlab.po | 6 +-- locale/ar_SA/gitlab.po | 6 +-- locale/as_IN/gitlab.po | 6 +-- locale/az_AZ/gitlab.po | 6 +-- locale/ba_RU/gitlab.po | 6 +-- locale/bg/gitlab.po | 6 +-- locale/bn_BD/gitlab.po | 6 +-- locale/bn_IN/gitlab.po | 6 +-- locale/bs_BA/gitlab.po | 6 +-- locale/ca_ES/gitlab.po | 6 +-- locale/cs_CZ/gitlab.po | 6 +-- locale/cy_GB/gitlab.po | 6 +-- locale/da_DK/gitlab.po | 6 +-- locale/de/gitlab.po | 6 +-- locale/el_GR/gitlab.po | 6 +-- locale/eo/gitlab.po | 6 +-- locale/es/gitlab.po | 8 ++-- locale/et_EE/gitlab.po | 6 +-- locale/fa_IR/gitlab.po | 6 +-- locale/fi_FI/gitlab.po | 6 +-- locale/fil_PH/gitlab.po | 6 +-- locale/fr/gitlab.po | 6 +-- locale/gitlab.pot | 26 ++++++---- locale/gl_ES/gitlab.po | 6 +-- locale/he_IL/gitlab.po | 6 +-- locale/hi_IN/gitlab.po | 6 +-- locale/hr_HR/gitlab.po | 6 +-- locale/hu_HU/gitlab.po | 6 +-- locale/id_ID/gitlab.po | 6 +-- locale/ig_NG/gitlab.po | 6 +-- locale/is_IS/gitlab.po | 6 +-- locale/it/gitlab.po | 6 +-- locale/ja/gitlab.po | 8 ++-- locale/ka_GE/gitlab.po | 6 +-- locale/ko/gitlab.po | 8 ++-- locale/ku_TR/gitlab.po | 6 +-- locale/ky_KG/gitlab.po | 6 +-- locale/lt_LT/gitlab.po | 6 +-- locale/mn_MN/gitlab.po | 6 +-- locale/nb_NO/gitlab.po | 6 +-- locale/nl_NL/gitlab.po | 6 +-- locale/pa_IN/gitlab.po | 6 +-- locale/pl_PL/gitlab.po | 6 +-- locale/pt_BR/gitlab.po | 10 ++-- locale/pt_PT/gitlab.po | 6 +-- locale/ro_RO/gitlab.po | 6 +-- locale/ru/gitlab.po | 6 +-- locale/si_LK/gitlab.po | 6 +-- locale/sk_SK/gitlab.po | 6 +-- locale/sl_SI/gitlab.po | 6 +-- locale/sq_AL/gitlab.po | 6 +-- locale/sr_CS/gitlab.po | 6 +-- locale/sr_SP/gitlab.po | 6 +-- locale/sv_SE/gitlab.po | 6 +-- locale/sw_KE/gitlab.po | 6 +-- locale/tr_TR/gitlab.po | 8 ++-- locale/uk/gitlab.po | 8 ++-- locale/ur_PK/gitlab.po | 6 +-- locale/uz_UZ/gitlab.po | 6 +-- locale/vi_VN/gitlab.po | 6 +-- locale/zh_CN/gitlab.po | 8 ++-- locale/zh_HK/gitlab.po | 6 +-- locale/zh_TW/gitlab.po | 6 +-- spec/features/admin/admin_cohorts_spec.rb | 22 +++++++-- spec/frontend/awards_handler_spec.js | 46 +++++++++++++++--- spec/frontend/behaviors/gl_emoji_spec.js | 15 +++++- .../components/design_sidebar_spec.js | 8 ++++ .../design/__snapshots__/index_spec.js.snap | 2 +- spec/frontend/emoji/emoji_spec.js | 3 +- .../terminal/terminal_controls_spec.js | 8 ++-- .../logs/components/environment_logs_spec.js | 2 - .../components/log_advanced_filters_spec.js | 2 - .../components/log_control_buttons_spec.js | 2 - .../components/log_simple_filters_spec.js | 2 - .../pipelines_filtered_search_spec.js | 2 - .../components/snippet_blob_edit_spec.js | 17 ++++++- .../markdown/suggestion_diff_header_spec.js | 20 ++------ .../project/issue/designs/notes_spec.rb | 2 - .../api/graphql/project/issues_spec.rb | 6 --- 101 files changed, 456 insertions(+), 300 deletions(-) create mode 100644 app/assets/javascripts/admin/cohorts/components/usage_ping_disabled.vue create mode 100644 app/assets/javascripts/pages/admin/cohorts/index.js create mode 100644 changelogs/unreleased/224649-fix-resolved-threads-popup-link-and-placement.yml create mode 100644 changelogs/unreleased/235993-cohorts-improve-empty-state-to-match-devops-score.yml create mode 100644 changelogs/unreleased/241199-fix-snippet-loading-json-content.yml diff --git a/app/assets/javascripts/admin/cohorts/components/usage_ping_disabled.vue b/app/assets/javascripts/admin/cohorts/components/usage_ping_disabled.vue new file mode 100644 index 0000000000000..2ea55d44420ed --- /dev/null +++ b/app/assets/javascripts/admin/cohorts/components/usage_ping_disabled.vue @@ -0,0 +1,48 @@ + + diff --git a/app/assets/javascripts/design_management/components/design_sidebar.vue b/app/assets/javascripts/design_management/components/design_sidebar.vue index e5a3590877e06..0991f21503ace 100644 --- a/app/assets/javascripts/design_management/components/design_sidebar.vue +++ b/app/assets/javascripts/design_management/components/design_sidebar.vue @@ -60,6 +60,18 @@ export default { return this.resolvedDiscussionsExpanded ? 'chevron-down' : 'chevron-right'; }, }, + watch: { + isResolvedCommentsPopoverHidden(newVal) { + if (!newVal) { + this.$refs.resolvedComments.scrollIntoView(); + } + }, + }, + mounted() { + if (!this.isResolvedCommentsPopoverHidden && this.$refs.resolvedComments) { + this.$refs.resolvedComments.$el.scrollIntoView(); + } + }, methods: { handleSidebarClick() { this.isResolvedCommentsPopoverHidden = true; @@ -129,6 +141,7 @@ export default {