From c158fa8d69c704663d289341a014c44c062cda88 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 16 Jan 2020 12:08:32 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/assets/javascripts/diffs/components/app.vue | 2 +- .../diffs/components/compare_versions.vue | 12 ++-- .../diffs/components/diff_file_header.vue | 16 ++++- .../javascripts/diffs/components/diff_stats.vue | 23 ++++--- .../javascripts/diffs/components/tree_list.vue | 9 +-- .../ide/components/commit_sidebar/form.vue | 47 ++++++++------ .../javascripts/ide/components/file_row_extra.vue | 15 +++-- app/assets/javascripts/ide/stores/actions.js | 15 +++-- app/assets/javascripts/ide/stores/actions/file.js | 6 +- .../settings/components/registry_settings_app.vue | 2 +- .../registry/settings/components/settings_form.vue | 10 +-- .../javascripts/registry/settings/store/actions.js | 14 ++-- .../repository/components/last_commit.vue | 6 +- .../queries/pathLastCommit.query.graphql | 1 + .../vue_shared/components/changed_file_icon.vue | 11 +++- .../javascripts/vue_shared/components/file_row.vue | 11 ++-- app/assets/stylesheets/pages/diff.scss | 15 ++--- app/assets/stylesheets/pages/merge_requests.scss | 4 +- app/controllers/concerns/spammable_actions.rb | 2 +- app/controllers/groups/milestones_controller.rb | 4 +- app/controllers/ide_controller.rb | 4 ++ app/graphql/mutations/snippets/mark_as_spam.rb | 2 +- app/helpers/markup_helper.rb | 4 +- app/models/concerns/reactive_caching.rb | 75 +--------------------- app/services/concerns/akismet_methods.rb | 25 ++++++++ app/services/notes/destroy_service.rb | 2 + app/services/spam/mark_as_spam_service.rb | 24 +++++++ app/services/spam_service.rb | 36 +---------- app/views/devise/sessions/two_factor.html.haml | 2 +- app/views/projects/commits/_commit.html.haml | 4 +- app/views/projects/settings/ci_cd/show.html.haml | 2 +- 31 files changed, 203 insertions(+), 202 deletions(-) create mode 100644 app/services/concerns/akismet_methods.rb create mode 100644 app/services/spam/mark_as_spam_service.rb (limited to 'app') diff --git a/app/assets/javascripts/diffs/components/app.vue b/app/assets/javascripts/diffs/components/app.vue index 463d1427805..878b54f7d53 100644 --- a/app/assets/javascripts/diffs/components/app.vue +++ b/app/assets/javascripts/diffs/components/app.vue @@ -374,7 +374,7 @@ export default {
-/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ import { mapActions, mapGetters, mapState } from 'vuex'; import { GlTooltipDirective, GlLink, GlButton } from '@gitlab/ui'; import { __ } from '~/locale'; @@ -63,9 +62,6 @@ export default { showDropdowns() { return !this.commit && this.mergeRequestDiffs.length; }, - fileTreeIcon() { - return this.showTreeList ? 'collapse-left' : 'expand-left'; - }, toggleFileBrowserTitle() { return this.showTreeList ? __('Hide file browser') : __('Show file browser'); }, @@ -91,7 +87,7 @@ export default { diff --git a/app/assets/javascripts/registry/settings/components/settings_form.vue b/app/assets/javascripts/registry/settings/components/settings_form.vue index 55a6a1ace55..457bf35daab 100644 --- a/app/assets/javascripts/registry/settings/components/settings_form.vue +++ b/app/assets/javascripts/registry/settings/components/settings_form.vue @@ -46,7 +46,7 @@ export default { regexHelpText() { return sprintf( s__( - 'ContainerRegistry|Wildcards such as %{codeStart}*-stable%{codeEnd} or %{codeStart}production/*%{codeEnd} are supported', + 'ContainerRegistry|Wildcards such as %{codeStart}*-stable%{codeEnd} or %{codeStart}production/*%{codeEnd} are supported. To select all tags, use %{codeStart}.*%{codeEnd}', ), { codeStart: '', @@ -61,7 +61,7 @@ export default { nameRegexState() { return this.name_regex ? this.name_regex.length <= NAME_REGEX_LENGTH : null; }, - formIsValid() { + formIsInvalid() { return this.nameRegexState === false; }, }, @@ -124,7 +124,7 @@ export default { :label-cols="$options.labelsConfig.cols" :label-align="$options.labelsConfig.align" label-for="expiration-policy-latest" - :label="s__('ContainerRegistry|Expiration latest:')" + :label="s__('ContainerRegistry|Number of tags to retain:')" >