From 85e494935a8726dc98bb19ffa584488420e5011e Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 14 Jan 2020 15:07:55 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .gitlab/ci/frontend.gitlab-ci.yml | 48 +++++++++-- .../issue_templates/Coding style proposal.md | 2 +- Gemfile | 4 +- Gemfile.lock | 19 +++-- .../repository/components/last_commit.vue | 2 +- .../repository/components/preview/index.vue | 2 +- .../repository/components/table/index.vue | 13 ++- .../components/table/parent_row.vue | 25 +++++- .../repository/components/table/row.vue | 16 +++- .../repository/components/tree_content.vue | 12 ++- .../javascripts/repository/mixins/preload.js | 36 ++++++++ .../javascripts/repository/pages/tree.vue | 4 +- app/controllers/projects/wikis_controller.rb | 4 + app/helpers/markup_helper.rb | 1 + app/models/ci/pipeline.rb | 2 +- app/models/concerns/atomic_internal_id.rb | 6 +- app/models/deployment.rb | 3 +- app/models/issue.rb | 6 +- app/models/merge_request.rb | 6 +- app/models/merge_request_diff.rb | 2 +- app/models/milestone.rb | 5 +- app/models/release.rb | 5 +- app/models/user.rb | 1 + app/services/users/destroy_service.rb | 7 ++ ...support-for-asciidoc-include-directive.yml | 5 ++ .../196172-issue-create-iid-conflict.yml | 6 ++ ...mment_on_event_enabled_to_services_api.yml | 5 ++ ...ark-some-as-not-required-during-import.yml | 5 ++ changelogs/unreleased/sh-update-octokit.yml | 5 ++ ...andardize-timestamp-format-in-app-logs.yml | 5 ++ doc/api/services.md | 8 +- doc/development/logging.md | 4 +- doc/install/requirements.md | 34 +++++++- doc/update/upgrading_from_source.md | 76 +++++++---------- doc/user/clusters/applications.md | 5 ++ lib/api/entities.rb | 2 +- lib/api/issues.rb | 24 +++--- lib/gitlab/app_text_logger.rb | 2 +- lib/gitlab/asciidoc/include_processor.rb | 4 +- lib/gitlab/github_import/client.rb | 2 +- lib/gitlab/import/merge_request_helpers.rb | 1 + lib/gitlab/legacy_github_import/client.rb | 2 +- lib/sentry/api_urls.rb | 39 +++++++++ lib/sentry/client.rb | 4 + lib/sentry/client/event.rb | 9 +- lib/sentry/client/issue.rb | 20 +---- lib/sentry/client/projects.rb | 9 +- .../projects/files/user_browses_files_spec.rb | 5 ++ .../files/user_browses_lfs_files_spec.rb | 15 ++++ ..._views_asciidoc_page_with_includes_spec.rb | 79 +++++++++++++++++ .../api/schemas/public_api/v4/service.json | 3 +- .../components/table/parent_row_spec.js | 10 ++- .../repository/components/table/row_spec.js | 15 +++- spec/helpers/markup_helper_spec.rb | 5 +- spec/lib/gitlab/app_text_logger_spec.rb | 7 ++ spec/lib/gitlab/asciidoc_spec.rb | 26 +++++- spec/lib/sentry/api_urls_spec.rb | 85 +++++++++++++++++++ spec/lib/sentry/client/issue_spec.rb | 30 ------- spec/lib/sentry/client/projects_spec.rb | 19 ----- .../concerns/atomic_internal_id_spec.rb | 26 ++++++ .../api/issues/post_projects_issues_spec.rb | 10 +++ spec/services/users/destroy_service_spec.rb | 16 ++++ spec/support/matchers/eq_uri.rb | 19 +++++ 63 files changed, 676 insertions(+), 201 deletions(-) create mode 100644 app/assets/javascripts/repository/mixins/preload.js create mode 100644 changelogs/unreleased/195625-wiki-support-for-asciidoc-include-directive.yml create mode 100644 changelogs/unreleased/196172-issue-create-iid-conflict.yml create mode 100644 changelogs/unreleased/add_comment_on_event_enabled_to_services_api.yml create mode 100644 changelogs/unreleased/mark-some-as-not-required-during-import.yml create mode 100644 changelogs/unreleased/sh-update-octokit.yml create mode 100644 changelogs/unreleased/standardize-timestamp-format-in-app-logs.yml create mode 100644 lib/sentry/api_urls.rb create mode 100644 spec/features/projects/wiki/users_views_asciidoc_page_with_includes_spec.rb create mode 100644 spec/lib/sentry/api_urls_spec.rb create mode 100644 spec/support/matchers/eq_uri.rb diff --git a/.gitlab/ci/frontend.gitlab-ci.yml b/.gitlab/ci/frontend.gitlab-ci.yml index 8df530c546d..076de55014e 100644 --- a/.gitlab/ci/frontend.gitlab-ci.yml +++ b/.gitlab/ci/frontend.gitlab-ci.yml @@ -1,3 +1,38 @@ +# Make sure to update all the similar conditions in other CI config files if you modify these conditions +.if-default: &if-default + if: '$CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_REF_NAME =~ /^[\d-]+-stable(-ee)?$/ || $CI_COMMIT_REF_NAME =~ /^\d+-\d+-auto-deploy-\d+$/ || $CI_COMMIT_REF_NAME =~ /^security\// || $CI_MERGE_REQUEST_IID || $CI_COMMIT_TAG' + +# Make sure to update all the similar conditions in other CI config files if you modify these conditions +.if-default-ee: &if-default-ee + if: '($CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_REF_NAME =~ /^[\d-]+-stable(-ee)?$/ || $CI_COMMIT_REF_NAME =~ /^\d+-\d+-auto-deploy-\d+$/ || $CI_COMMIT_REF_NAME =~ /^security\// || $CI_MERGE_REQUEST_IID || $CI_COMMIT_TAG) && $CI_PROJECT_NAME =~ /^gitlab(-ee)?$/' + +# Make sure to update all the similar conditions in other CI config files if you modify these conditions +.if-master: &if-master + if: '$CI_COMMIT_REF_NAME == "master"' + +# Make sure to update all the similar patterns in other CI config files if you modify these patterns +.code-backstage-patterns: &code-backstage-patterns + - ".gitlab/ci/**/*" + - ".{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}" + - ".{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo,scss-lint}.yml" + - ".csscomb.json" + - "Dockerfile.assets" + - "*_VERSION" + - "Gemfile{,.lock}" + - "Rakefile" + - "{babel.config,jest.config}.js" + - "config.ru" + - "{package.json,yarn.lock}" + - "{,ee/}{app,bin,config,db,haml_lint,lib,locale,public,scripts,symbol,vendor}/**/*" + - "doc/api/graphql/reference/*" # Files in this folder are auto-generated + # Backstage changes + - "Dangerfile" + - "danger/**/*" + - "{,ee/}fixtures/**/*" + - "{,ee/}rubocop/**/*" + - "{,ee/}spec/**/*" + - "doc/README.md" # Some RSpec test rely on this file + .assets-compile-cache: cache: paths: @@ -132,7 +167,6 @@ compile-assets pull-cache foss: - .use-pg9 stage: test needs: ["setup-test-env", "compile-assets pull-cache"] - dependencies: ["setup-test-env", "compile-assets pull-cache"] .karma-base: extends: .only-code-frontend-job-base @@ -204,9 +238,10 @@ jest-foss: - .default-tags - .default-retry - .default-cache - - .default-only - - .only:changes-code-backstage stage: test + rules: + - <<: *if-master + when: on_success dependencies: [] cache: key: "$CI_JOB_NAME" @@ -237,11 +272,12 @@ webpack-dev-server: - .default-tags - .default-retry - .default-cache - - .default-only - - .only:changes-code-backstage stage: test + rules: + - <<: *if-default + changes: *code-backstage-patterns + when: on_success needs: ["setup-test-env", "compile-assets pull-cache"] - dependencies: ["setup-test-env", "compile-assets pull-cache"] variables: WEBPACK_MEMORY_TEST: "true" WEBPACK_VENDOR_DLL: "true" diff --git a/.gitlab/issue_templates/Coding style proposal.md b/.gitlab/issue_templates/Coding style proposal.md index a969c9b72ee..95f0fb5f366 100644 --- a/.gitlab/issue_templates/Coding style proposal.md +++ b/.gitlab/issue_templates/Coding style proposal.md @@ -5,7 +5,7 @@ Please describe the proposal and add a link to the source (for example, http://w --> - [ ] Mention the proposal in the next backend weekly call and the #backend channel to encourage contribution -- [ ] Proceed with the proposal once 50% of the maintainers have weighed in, and 80% of the votes are :+1: +- [ ] Proceed with the proposal once 50% of the maintainers have weighed in, and 80% of their votes are :+1: - [ ] Once approved, mention it again in the next backend weekly call and the #backend channel diff --git a/Gemfile b/Gemfile index 8c493896f08..83cfb7bbf14 100644 --- a/Gemfile +++ b/Gemfile @@ -283,7 +283,7 @@ gem 'rack-proxy', '~> 0.6.0' gem 'sassc-rails', '~> 2.1.0' gem 'uglifier', '~> 2.7.2' -gem 'addressable', '~> 2.5.2' +gem 'addressable', '~> 2.7' gem 'font-awesome-rails', '~> 4.7' gem 'gemojione', '~> 3.3' gem 'gon', '~> 6.2' @@ -419,7 +419,7 @@ group :test do gem 'guard-rspec' end -gem 'octokit', '~> 4.9' +gem 'octokit', '~> 4.15' gem 'mail_room', '~> 0.10.0' diff --git a/Gemfile.lock b/Gemfile.lock index 13e1e4ac828..f55fb554c4a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -55,8 +55,8 @@ GEM adamantium (0.2.0) ice_nine (~> 0.11.0) memoizable (~> 0.4.0) - addressable (2.5.2) - public_suffix (>= 2.0.2, < 4.0) + addressable (2.7.0) + public_suffix (>= 2.0.2, < 5.0) aes_key_wrap (1.0.1) akismet (3.0.0) apollo_upload_server (2.0.0.beta.3) @@ -650,7 +650,8 @@ GEM multi_json (~> 1.3) multi_xml (~> 0.5) rack (>= 1.2, < 3) - octokit (4.9.0) + octokit (4.15.0) + faraday (>= 0.9) sawyer (~> 0.8.0, >= 0.5.3) omniauth (1.9.0) hashie (>= 3.4.6, < 3.7.0) @@ -762,7 +763,7 @@ GEM pry (~> 0.10) pry-rails (0.3.6) pry (>= 0.10.4) - public_suffix (3.1.1) + public_suffix (4.0.3) pyu-ruby-sasl (0.0.3.3) raabro (1.1.6) rack (2.0.7) @@ -961,9 +962,9 @@ GEM sprockets (> 3.0) sprockets-rails tilt - sawyer (0.8.1) - addressable (>= 2.3.5, < 2.6) - faraday (~> 0.8, < 1.0) + sawyer (0.8.2) + addressable (>= 2.3.5) + faraday (> 0.8, < 2.0) scss_lint (0.56.0) rake (>= 0.9, < 13) sass (~> 3.5.3) @@ -1130,7 +1131,7 @@ DEPENDENCIES acme-client (~> 2.0.2) activerecord-explain-analyze (~> 0.1) acts-as-taggable-on (~> 6.0) - addressable (~> 2.5.2) + addressable (~> 2.7) akismet (~> 3.0) apollo_upload_server (~> 2.0.0.beta3) asana (~> 0.9) @@ -1272,7 +1273,7 @@ DEPENDENCIES net-ssh (~> 5.2) nokogiri (~> 1.10.5) oauth2 (~> 1.4) - octokit (~> 4.9) + octokit (~> 4.15) omniauth (~> 1.8) omniauth-auth0 (~> 2.0.0) omniauth-authentiq (~> 0.3.3) diff --git a/app/assets/javascripts/repository/components/last_commit.vue b/app/assets/javascripts/repository/components/last_commit.vue index 70678b0db37..8e7529899c0 100644 --- a/app/assets/javascripts/repository/components/last_commit.vue +++ b/app/assets/javascripts/repository/components/last_commit.vue @@ -90,7 +90,7 @@ export default {