From 1ec60cf53bc498b12c597ff0d91434a1bdb7cba9 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 28 May 2020 18:08:37 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .gitlab/ci/rails.gitlab-ci.yml | 3 +- .gitlab/ci/review.gitlab-ci.yml | 1 + .../ide/components/ide_side_bar.vue | 6 +- .../components/panes/collapsible_sidebar.vue | 29 +-- .../ide/components/panes/right.vue | 19 +- .../ide/components/resizable_panel.vue | 14 +- app/assets/javascripts/ide/constants.js | 5 +- .../components/external_dashboard.vue | 72 ------ .../form_group/external_dashboard.vue | 50 ++++ .../components/metrics_settings.vue | 50 ++++ .../javascripts/operation_settings/index.js | 4 +- .../operation_settings/store/actions.js | 14 +- .../operation_settings/store/mutations.js | 2 +- .../operation_settings/store/state.js | 7 +- app/assets/stylesheets/page_bundles/ide.scss | 3 - app/controllers/dashboard/todos_controller.rb | 10 +- app/graphql/mutations/todos/mark_all_done.rb | 4 +- app/graphql/mutations/todos/mark_done.rb | 2 +- app/graphql/mutations/todos/restore.rb | 6 +- app/graphql/mutations/todos/restore_many.rb | 2 +- app/models/todo.rb | 14 +- app/models/user.rb | 4 - app/services/issuable_base_service.rb | 2 +- app/services/issues/update_service.rb | 4 +- app/services/merge_requests/update_service.rb | 4 +- app/services/todo_service.rb | 96 ++++---- .../operations/_external_dashboard.html.haml | 3 - .../operations/_metrics_dashboard.html.haml | 5 + .../settings/operations/show.html.haml | 2 +- .../214370-extend-metrics-settings.yml | 5 + .../216045-capture-todo-resolution.yml | 5 + .../unreleased/docs-u2f-version-history.yml | 5 + ...-github-import-rake-add-rate-limit-doc.yml | 5 + ...00520103514_add_todo_resolved_by_action.rb | 19 ++ db/structure.sql | 4 +- doc/.vale/gitlab/SentenceLength.yml | 0 doc/administration/raketasks/github_import.md | 5 + .../account/two_factor_authentication.md | 5 +- lib/api/todos.rb | 6 +- locale/gitlab.pot | 24 +- scripts/static-analysis | 195 ++++++++------- spec/features/dashboard/todos/todos_spec.rb | 2 +- .../ide/components/resizable_panel_spec.js | 114 +++++++++ ...board_spec.js => metrics_settings_spec.js} | 35 +-- .../store/mutations_spec.js | 2 +- .../ide_integration_spec.js.snap | 2 +- spec/graphql/types/query_type_spec.rb | 15 +- spec/models/todo_spec.rb | 8 +- spec/services/todo_service_spec.rb | 225 +++++++----------- 49 files changed, 632 insertions(+), 486 deletions(-) delete mode 100644 app/assets/javascripts/operation_settings/components/external_dashboard.vue create mode 100644 app/assets/javascripts/operation_settings/components/form_group/external_dashboard.vue create mode 100644 app/assets/javascripts/operation_settings/components/metrics_settings.vue delete mode 100644 app/views/projects/settings/operations/_external_dashboard.html.haml create mode 100644 app/views/projects/settings/operations/_metrics_dashboard.html.haml create mode 100644 changelogs/unreleased/214370-extend-metrics-settings.yml create mode 100644 changelogs/unreleased/216045-capture-todo-resolution.yml create mode 100644 changelogs/unreleased/docs-u2f-version-history.yml create mode 100644 changelogs/unreleased/kborges-github-import-rake-add-rate-limit-doc.yml create mode 100644 db/migrate/20200520103514_add_todo_resolved_by_action.rb mode change 100755 => 100644 doc/.vale/gitlab/SentenceLength.yml create mode 100644 spec/frontend/ide/components/resizable_panel_spec.js rename spec/frontend/operation_settings/components/{external_dashboard_spec.js => metrics_settings_spec.js} (80%) diff --git a/.gitlab/ci/rails.gitlab-ci.yml b/.gitlab/ci/rails.gitlab-ci.yml index e8087aebcef..b9c19b21ef3 100644 --- a/.gitlab/ci/rails.gitlab-ci.yml +++ b/.gitlab/ci/rails.gitlab-ci.yml @@ -46,7 +46,8 @@ static-analysis: stage: test variables: SETUP_DB: "false" - parallel: 2 + ENABLE_SPRING: "1" + parallel: 4 script: - scripts/static-analysis cache: diff --git a/.gitlab/ci/review.gitlab-ci.yml b/.gitlab/ci/review.gitlab-ci.yml index 46a281cd48f..d26685645f9 100644 --- a/.gitlab/ci/review.gitlab-ci.yml +++ b/.gitlab/ci/review.gitlab-ci.yml @@ -233,6 +233,7 @@ danger-review: - .review:rules:danger image: registry.gitlab.com/gitlab-org/gitlab-build-images:danger stage: test + allow_failure: true needs: [] script: - source scripts/utils.sh diff --git a/app/assets/javascripts/ide/components/ide_side_bar.vue b/app/assets/javascripts/ide/components/ide_side_bar.vue index 31a239092c2..1eb89b41495 100644 --- a/app/assets/javascripts/ide/components/ide_side_bar.vue +++ b/app/assets/javascripts/ide/components/ide_side_bar.vue @@ -9,7 +9,7 @@ import CommitForm from './commit_sidebar/form.vue'; import IdeReview from './ide_review.vue'; import SuccessMessage from './commit_sidebar/success_message.vue'; import IdeProjectHeader from './ide_project_header.vue'; -import { leftSidebarViews, LEFT_SIDEBAR_INIT_WIDTH } from '../constants'; +import { leftSidebarViews, SIDEBAR_INIT_WIDTH } from '../constants'; export default { components: { @@ -33,13 +33,13 @@ export default { ); }, }, - LEFT_SIDEBAR_INIT_WIDTH, + SIDEBAR_INIT_WIDTH, };