From 0b881f91159cc97ccb7328a2e52977a60ea83fbe Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 25 Feb 2020 00:09:12 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .../Security developer workflow.md | 15 ++-- Gemfile | 2 +- Gemfile.lock | 4 +- .../sidebar/labels_select/dropdown_title.vue | 7 +- app/models/releases/link.rb | 3 + app/policies/project_snippet_policy.rb | 4 +- app/views/projects/runners/_runner.html.haml | 2 +- ...link-to-a-release-and-release-assets-2.yml | 5 ++ .../unreleased/40585-token-disclaimer.yml | 5 ++ .../unreleased/fix-deployments-pagination.yml | 5 ++ ...-207803-fix-project-snippet-policy-bug.yml | 5 ++ .../unreleased/rk4bir-master-patch-97031.yml | 5 ++ .../sh-cleaup-prom-background-migrations.yml | 5 ++ .../unreleased/sh-upgrade-bootsnap-1-4-6.yml | 5 ++ changelogs/unreleased/sy-alert-embeds.yml | 5 ++ ...219105209_add_filepath_to_release_links.rb | 8 ++ ...ate_prometheus_services_background_jobs.rb | 26 ++++++ db/schema.rb | 3 +- lib/api/deployments.rb | 3 +- .../filter/inline_metrics_redactor_filter.rb | 2 + locale/gitlab.pot | 3 + spec/factories/releases/link.rb | 1 + spec/features/markdown/metrics_spec.rb | 51 ++++------- .../labels_select/dropdown_title_spec.js | 31 ++++--- .../import_export/safe_model_attributes.yml | 1 + ...rometheus_services_background_jobs_spec.rb | 89 +++++++++++++++++++ spec/models/releases/link_spec.rb | 45 ++++++++++ spec/policies/project_snippet_policy_spec.rb | 50 ++++++++--- spec/requests/api/deployments_spec.rb | 1 + .../helpers/metrics_dashboard_url_helpers.rb | 16 ++++ 30 files changed, 326 insertions(+), 81 deletions(-) create mode 100644 changelogs/unreleased/27300-enable-a-direct-link-to-a-release-and-release-assets-2.yml create mode 100644 changelogs/unreleased/40585-token-disclaimer.yml create mode 100644 changelogs/unreleased/fix-deployments-pagination.yml create mode 100644 changelogs/unreleased/fj-207803-fix-project-snippet-policy-bug.yml create mode 100644 changelogs/unreleased/rk4bir-master-patch-97031.yml create mode 100644 changelogs/unreleased/sh-cleaup-prom-background-migrations.yml create mode 100644 changelogs/unreleased/sh-upgrade-bootsnap-1-4-6.yml create mode 100644 changelogs/unreleased/sy-alert-embeds.yml create mode 100644 db/migrate/20200219105209_add_filepath_to_release_links.rb create mode 100644 db/migrate/20200221144534_drop_activate_prometheus_services_background_jobs.rb create mode 100644 spec/migrations/drop_activate_prometheus_services_background_jobs_spec.rb create mode 100644 spec/support/helpers/metrics_dashboard_url_helpers.rb diff --git a/.gitlab/issue_templates/Security developer workflow.md b/.gitlab/issue_templates/Security developer workflow.md index 1b6a1f87216..039157bf845 100644 --- a/.gitlab/issue_templates/Security developer workflow.md +++ b/.gitlab/issue_templates/Security developer workflow.md @@ -9,10 +9,11 @@ Set the title to: `Description of the original issue` ## Prior to starting the security release work - [ ] Read the [security process for developers] if you are not familiar with it. -- [ ] Link this issue in the Security Release issue on GitLab.com. You can find this issue in the topic of the `#releases` channel. -- [ ] Add a link to the confidential `gitlab-org/gitlab` issue describing the vulnerability next to **Original issue** in the [links table](#links). -- [ ] Add a link to the confidential `gitlab-org/gitlab` Security release issue next to **Security release issue** in the [links table](#links). +- [ ] Mark this [issue as related] to the Security Release tracking issue. You can find it on the topic of the `#releases` Slack channel. - [ ] Run `scripts/security-harness` in your local repository to prevent accidentally pushing to any remote besides `gitlab.com/gitlab-org/security`. +- Fill out the [Links section](#links): + - [ ] Next to **Issue on GitLab**, add a link to the `gitlab-org/gitlab` issue that describes the security vulnerability. + - [ ] Next to **Security Release tracking issue**, add a link to the security release issue that will include this security issue. ## Development @@ -29,7 +30,8 @@ After your merge request has being approved according to our [approval guideline * You can use the script `bin/secpick` instead of the following steps, to help you cherry-picking. See the [secpick documentation] - [ ] Create each MR targeting the stable branch `X-Y-stable`, using the [Security Release merge request template]. * Every merge request will have its own set of TODOs, so make sure to complete those. -- [ ] Make sure all MRs are linked in the [Links section](#links) +- [ ] On the "Related merge requests" section, ensure all MRs are linked to this issue. + * This section should only list the merge requests created for this issue: One targeting `master` and the 3 backports. ## Documentation and final details @@ -46,8 +48,8 @@ After your merge request has being approved according to our [approval guideline | Description | Link | | -------- | -------- | -| Original issue | #TODO | -| Security release issue | #TODO | +| Issue on [GitLab](https://gitlab.com/gitlab-org/gitlab/issues) | #TODO | +| Security Release tracking issue | #TODO | | `master` MR | !TODO | | `Backport X.Y` MR | !TODO | | `Backport X.Y` MR | !TODO | @@ -68,5 +70,6 @@ After your merge request has being approved according to our [approval guideline [security Release merge request template]: https://gitlab.com/gitlab-org/security/gitlab/blob/master/.gitlab/merge_request_templates/Security%20Release.md [code review process]: https://docs.gitlab.com/ee/development/code_review.html [approval guidelines]: https://docs.gitlab.com/ee/development/code_review.html#approval-guidelines +[issue as related]: https://docs.gitlab.com/ee/user/project/issues/related_issues.html#adding-a-related-issue /label ~security diff --git a/Gemfile b/Gemfile index 6d4f4d6eefa..907f1f0fec7 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,7 @@ source 'https://rubygems.org' gem 'rails', '6.0.2' -gem 'bootsnap', '~> 1.4' +gem 'bootsnap', '~> 1.4.6' # Improves copy-on-write performance for MRI gem 'nakayoshi_fork', '~> 0.0.4' diff --git a/Gemfile.lock b/Gemfile.lock index bbf1148281b..5fe50053428 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -123,7 +123,7 @@ GEM binding_ninja (0.2.3) binding_of_caller (0.8.0) debug_inspector (>= 0.0.1) - bootsnap (1.4.5) + bootsnap (1.4.6) msgpack (~> 1.0) bootstrap_form (4.2.0) actionpack (>= 5.0) @@ -1171,7 +1171,7 @@ DEPENDENCIES benchmark-memory (~> 0.1) better_errors (~> 2.5.0) binding_of_caller (~> 0.8.0) - bootsnap (~> 1.4) + bootsnap (~> 1.4.6) bootstrap_form (~> 4.2.0) brakeman (~> 4.2) browser (~> 2.5) diff --git a/app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_title.vue b/app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_title.vue index 574b63cf8a6..69fb2bb4524 100644 --- a/app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_title.vue +++ b/app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_title.vue @@ -1,5 +1,10 @@