From 1902e256266822bc94e1a69debd79fb256de2d79 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 20 May 2020 21:09:09 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .eslintignore | 1 + .rubocop.yml | 4 -- .../pages/projects/pipelines/index/index.js | 1 + .../pipelines/components/pipelines.vue | 14 ++++- .../components/pipelines_filtered_search.vue | 42 ++++--------- .../tokens/pipeline_branch_name_token.vue | 15 +++-- .../tokens/pipeline_trigger_author_token.vue | 13 ++-- app/assets/javascripts/pipelines/constants.js | 1 + app/controllers/projects_controller.rb | 7 ++- app/views/projects/pipelines/index.html.haml | 1 + .../filter-from-url-query-params-pipeline.yml | 5 ++ .../unreleased/improve_issue_labels_api.yml | 5 ++ .../jh-rate_limit_project_export.yml | 5 ++ .../unreleased/leaky-constant-fix-28.yml | 5 ++ .../unreleased/leaky-constant-fix-32.yml | 5 ++ .../unreleased/leaky-constant-fix-38.yml | 5 ++ doc/api/issues.md | 2 + doc/user/project/code_owners.md | 17 ++++++ jest.config.unit.js => jest.config.js | 0 lib/api/helpers/issues_helpers.rb | 2 + lib/api/issues.rb | 2 + lib/api/project_export.rb | 2 +- package.json | 2 +- spec/controllers/projects_controller_spec.rb | 30 +++++++--- spec/frontend/.eslintrc.yml | 2 +- .../pipelines_filtered_search_spec.js | 59 ++++++++++++------- spec/frontend/pipelines/pipelines_spec.js | 1 + .../tokens/pipeline_branch_name_token_spec.js | 12 +++- .../pipeline_trigger_author_token_spec.js | 10 ++++ spec/lib/gitlab/config/entry/factory_spec.rb | 11 ++-- .../jira_import/issues_importer_spec.rb | 4 +- spec/lib/gitlab/no_cache_headers_spec.rb | 7 ++- .../sidekiq_middleware/server_metrics_spec.rb | 8 ++- .../api/issues/put_projects_issues_spec.rb | 29 +++++++++ spec/requests/api/project_export_spec.rb | 37 ++++++------ 35 files changed, 254 insertions(+), 112 deletions(-) create mode 100644 changelogs/unreleased/filter-from-url-query-params-pipeline.yml create mode 100644 changelogs/unreleased/improve_issue_labels_api.yml create mode 100644 changelogs/unreleased/jh-rate_limit_project_export.yml create mode 100644 changelogs/unreleased/leaky-constant-fix-28.yml create mode 100644 changelogs/unreleased/leaky-constant-fix-32.yml create mode 100644 changelogs/unreleased/leaky-constant-fix-38.yml rename jest.config.unit.js => jest.config.js (100%) diff --git a/.eslintignore b/.eslintignore index f364771e54f..c41556f6aae 100644 --- a/.eslintignore +++ b/.eslintignore @@ -9,6 +9,7 @@ /scripts/ /tmp/ /vendor/ +jest.config.js jest.config.*.js karma.config.js webpack.config.js diff --git a/.rubocop.yml b/.rubocop.yml index 782a9629672..60808f72e24 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -354,7 +354,6 @@ RSpec/LeakyConstantDeclaration: - 'spec/lib/gitlab/ci/config/entry/retry_spec.rb' - 'spec/lib/gitlab/cluster/mixins/puma_cluster_spec.rb' - 'spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb' - - 'spec/lib/gitlab/config/entry/factory_spec.rb' - 'spec/lib/gitlab/config/entry/simplifiable_spec.rb' - 'spec/lib/gitlab/database/migration_helpers_spec.rb' - 'spec/lib/gitlab/database/obsolete_ignored_columns_spec.rb' @@ -362,11 +361,8 @@ RSpec/LeakyConstantDeclaration: - 'spec/lib/gitlab/git/diff_collection_spec.rb' - 'spec/lib/gitlab/import_export/import_test_coverage_spec.rb' - 'spec/lib/gitlab/import_export/project/relation_factory_spec.rb' - - 'spec/lib/gitlab/jira_import/issues_importer_spec.rb' - - 'spec/lib/gitlab/no_cache_headers_spec.rb' - 'spec/lib/gitlab/path_regex_spec.rb' - 'spec/lib/gitlab/quick_actions/dsl_spec.rb' - - 'spec/lib/gitlab/sidekiq_middleware/server_metrics_spec.rb' - 'spec/lib/marginalia_spec.rb' - 'spec/mailers/notify_spec.rb' - 'spec/migrations/20191125114345_add_admin_mode_protected_path_spec.rb' diff --git a/app/assets/javascripts/pages/projects/pipelines/index/index.js b/app/assets/javascripts/pages/projects/pipelines/index/index.js index bbad3238ec4..2c37d7da4a7 100644 --- a/app/assets/javascripts/pages/projects/pipelines/index/index.js +++ b/app/assets/javascripts/pages/projects/pipelines/index/index.js @@ -51,6 +51,7 @@ document.addEventListener( ciLintPath: this.dataset.ciLintPath, resetCachePath: this.dataset.resetCachePath, projectId: this.dataset.projectId, + params: JSON.parse(this.dataset.params), }, }); }, diff --git a/app/assets/javascripts/pipelines/components/pipelines.vue b/app/assets/javascripts/pipelines/components/pipelines.vue index fc93635bdb5..2f0a59ef3fa 100644 --- a/app/assets/javascripts/pipelines/components/pipelines.vue +++ b/app/assets/javascripts/pipelines/components/pipelines.vue @@ -1,5 +1,5 @@