From 9abffa14d6395d56b77313541d63e0c12ae2b602 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 10 Feb 2022 21:15:20 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- GITALY_SERVER_VERSION | 2 +- .../issues/list/components/issues_list_app.vue | 1 - app/assets/javascripts/issues/manual_ordering.js | 5 +- .../branches/components/new_branch_form.vue | 100 +++- .../javascripts/jira_connect/branches/constants.js | 3 + .../graphql/queries/get_projects.query.graphql | 3 + .../components/performance_bar_app.vue | 12 + .../pipelines_list/pipelines_manual_actions.vue | 10 +- app/finders/group_projects_finder.rb | 18 +- app/models/project.rb | 1 + app/views/projects/pages/_pages_settings.html.haml | 15 +- app/views/shared/_issues.html.haml | 2 +- config/initializers/request_profiler.rb | 1 + doc/development/profiling.md | 5 - doc/integration/jenkins.md | 1 + doc/user/application_security/dast/index.md | 8 +- doc/user/application_security/policies/index.md | 525 ++------------------- .../policies/scan-execution-policies.md | 219 +++++++++ .../policies/scan-result-policies.md | 175 +++++++ doc/user/project/integrations/bamboo.md | 1 + doc/user/project/integrations/overview.md | 9 + doc/user/project/integrations/webhooks.md | 11 +- doc/user/project/protected_branches.md | 6 +- lib/api/groups.rb | 4 +- lib/gitlab/daemon.rb | 2 + lib/gitlab/metrics/exporter/base_exporter.rb | 4 + lib/gitlab/middleware/memory_report.rb | 45 ++ locale/gitlab.pot | 24 + metrics_server/dependencies.rb | 1 + metrics_server/metrics_server.rb | 17 +- .../commands/metrics_server/metrics_server_spec.rb | 87 ++-- spec/features/jira_connect/branches_spec.rb | 4 +- spec/features/projects/pipelines/pipelines_spec.rb | 5 +- spec/finders/group_projects_finder_spec.rb | 92 +++- .../issues/list/components/issues_list_app_spec.js | 1 - .../branches/components/new_branch_form_spec.js | 135 ++++-- .../branches/components/project_dropdown_spec.js | 29 +- .../components/source_branch_dropdown_spec.js | 11 +- spec/frontend/jira_connect/branches/mock_data.js | 30 ++ spec/frontend/pipelines/pipelines_actions_spec.js | 15 +- spec/lib/gitlab/middleware/memory_report_spec.rb | 91 ++++ spec/metrics_server/metrics_server_spec.rb | 71 +-- spec/models/project_spec.rb | 15 + spec/requests/api/groups_spec.rb | 34 +- .../group_projects_finder_shared_contexts.rb | 6 +- 45 files changed, 1157 insertions(+), 699 deletions(-) create mode 100644 doc/user/application_security/policies/scan-execution-policies.md create mode 100644 doc/user/application_security/policies/scan-result-policies.md create mode 100644 lib/gitlab/middleware/memory_report.rb create mode 100644 spec/frontend/jira_connect/branches/mock_data.js create mode 100644 spec/lib/gitlab/middleware/memory_report_spec.rb diff --git a/GITALY_SERVER_VERSION b/GITALY_SERVER_VERSION index e27cac66be3..2c09bb5d2c5 100644 --- a/GITALY_SERVER_VERSION +++ b/GITALY_SERVER_VERSION @@ -1 +1 @@ -3074a5673df93a6a765c2bdde84bd4f6f670afcb +6130522b84e1ea354467c2a51989c66fb0566d9d diff --git a/app/assets/javascripts/issues/list/components/issues_list_app.vue b/app/assets/javascripts/issues/list/components/issues_list_app.vue index 958493cbebd..a2bb6c3cd77 100644 --- a/app/assets/javascripts/issues/list/components/issues_list_app.vue +++ b/app/assets/javascripts/issues/list/components/issues_list_app.vue @@ -544,7 +544,6 @@ export default { .put(joinPaths(issueToMove.webPath, 'reorder'), { move_before_id: isMovingToBeginning ? null : getIdFromGraphQLId(moveBeforeId), move_after_id: isMovingToEnd ? null : getIdFromGraphQLId(moveAfterId), - group_full_path: this.isProject ? undefined : this.fullPath, }) .then(() => { const serializedVariables = JSON.stringify(this.queryVariables); diff --git a/app/assets/javascripts/issues/manual_ordering.js b/app/assets/javascripts/issues/manual_ordering.js index c78505d0610..8fb891f62f7 100644 --- a/app/assets/javascripts/issues/manual_ordering.js +++ b/app/assets/javascripts/issues/manual_ordering.js @@ -7,12 +7,11 @@ import createFlash from '~/flash'; import axios from '~/lib/utils/axios_utils'; import { s__ } from '~/locale'; -const updateIssue = (url, issueList, { move_before_id, move_after_id }) => +const updateIssue = (url, { move_before_id, move_after_id }) => axios .put(`${url}/reorder`, { move_before_id, move_after_id, - group_full_path: issueList.dataset.groupFullPath, }) .catch(() => { createFlash({ @@ -52,7 +51,7 @@ const initManualOrdering = () => { const beforeId = prev && parseInt(prev.dataset.id, 10); const afterId = next && parseInt(next.dataset.id, 10); - updateIssue(url, issueList, { move_after_id: afterId, move_before_id: beforeId }); + updateIssue(url, { move_after_id: afterId, move_before_id: beforeId }); }, }), ); diff --git a/app/assets/javascripts/jira_connect/branches/components/new_branch_form.vue b/app/assets/javascripts/jira_connect/branches/components/new_branch_form.vue index 63ea089a62b..46c27c33f56 100644 --- a/app/assets/javascripts/jira_connect/branches/components/new_branch_form.vue +++ b/app/assets/javascripts/jira_connect/branches/components/new_branch_form.vue @@ -1,5 +1,6 @@