From 6de7d2c195a8a7fa5702cafa4365f7a9fcac37cd Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 16 Sep 2020 15:09:32 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .gitlab/ci/notify.gitlab-ci.yml | 2 +- .gitlab/ci/rules.gitlab-ci.yml | 1 + .../Security developer workflow.md | 2 +- .../boards/components/modal/empty_state.vue | 23 ++- .../components/invite_members_banner.vue | 34 +++- .../groups/init_invite_members_banner.js | 3 +- .../notes/components/note_actions.vue | 61 ++++++- .../notes/components/noteable_note.vue | 4 + .../vue_shared/components/markdown/header.vue | 6 +- app/controllers/concerns/renders_notes.rb | 10 +- app/helpers/issuables_helper.rb | 6 + app/helpers/notes_helper.rb | 4 + app/models/group.rb | 13 +- app/models/merge_request.rb | 2 +- app/models/note.rb | 39 +--- app/models/project_team.rb | 34 ++++ app/serializers/note_entity.rb | 4 + app/serializers/project_note_entity.rb | 8 + app/services/projects/create_service.rb | 9 +- app/views/groups/show.html.haml | 1 + app/views/projects/notes/_actions.html.haml | 13 +- .../shared/blob/_markdown_buttons.html.haml | 6 +- ...project_create_authorization_for_admin.yml | 5 + ...contributor-and-author-badges-on-notes.yml | 5 + ...pply-command-markdown-shortcuts-on-mac.yml | 5 + .../development/show_author_on_note.yml | 7 + .../development/show_contributor_on_note.yml | 7 + doc/README.md | 4 +- doc/api/api_resources.md | 2 +- doc/api/epics.md | 6 +- doc/api/issues.md | 6 +- doc/api/merge_requests.md | 6 +- doc/api/todos.md | 22 +-- doc/api/v3_to_v4.md | 4 +- doc/ci/variables/README.md | 1 + doc/development/api_styleguide.md | 4 +- .../documentation/feature_flags.md | 2 +- doc/development/documentation/styleguide.md | 1 + .../testing_guide/best_practices.md | 4 +- .../incident_management/alert_details.md | 18 +- doc/university/README.md | 2 +- .../settings/external_authorization.md | 10 +- .../threat_monitoring/index.md | 49 +++++- doc/user/group/saml_sso/index.md | 2 +- doc/user/index.md | 6 +- doc/user/profile/notifications.md | 2 +- doc/user/profile/preferences.md | 2 +- doc/user/project/issues/due_dates.md | 4 +- .../project/issues/issue_data_and_actions.md | 2 +- .../reviewing_and_managing_merge_requests.md | 7 +- doc/user/todos.md | 166 +++++++++--------- lib/api/sidekiq_metrics.rb | 2 +- locale/gitlab.pot | 15 +- .../markdown/keyboard_shortcuts_spec.rb | 38 ++-- .../api/schemas/entities/discussion.json | 3 + .../components/invite_members_banner_spec.js | 46 ++++- .../notes/components/note_actions_spec.js | 34 +++- spec/frontend/shortcuts_spec.js | 6 +- spec/models/group_spec.rb | 13 ++ spec/models/note_spec.rb | 66 +++++-- spec/models/project_team_spec.rb | 95 +++++++++- spec/requests/api/projects_spec.rb | 19 ++ 62 files changed, 737 insertions(+), 246 deletions(-) create mode 100644 changelogs/unreleased/238165-fix_project_create_authorization_for_admin.yml create mode 100644 changelogs/unreleased/display-contributor-and-author-badges-on-notes.yml create mode 100644 changelogs/unreleased/nfriend-only-apply-command-markdown-shortcuts-on-mac.yml create mode 100644 config/feature_flags/development/show_author_on_note.yml create mode 100644 config/feature_flags/development/show_contributor_on_note.yml diff --git a/.gitlab/ci/notify.gitlab-ci.yml b/.gitlab/ci/notify.gitlab-ci.yml index fcdd5ee97d2..6dcf19da942 100644 --- a/.gitlab/ci/notify.gitlab-ci.yml +++ b/.gitlab/ci/notify.gitlab-ci.yml @@ -10,7 +10,7 @@ notify-update-gitaly: extends: - .notify-slack rules: - - if: '$CI_MERGE_REQUEST_IID && $CI_COMMIT_BRANCH == $GITALY_UPDATE_BRANCH' + - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $GITALY_UPDATE_BRANCH' when: on_failure allow_failure: true variables: diff --git a/.gitlab/ci/rules.gitlab-ci.yml b/.gitlab/ci/rules.gitlab-ci.yml index f6e606e0534..a8e0e1ccaaa 100644 --- a/.gitlab/ci/rules.gitlab-ci.yml +++ b/.gitlab/ci/rules.gitlab-ci.yml @@ -128,6 +128,7 @@ - "{,ee/}spec/**/*.rb" - ".gitlab-ci.yml" - ".gitlab/ci/**/*" + - "*_VERSION" .db-patterns: &db-patterns - "{,ee/}{,spec/}{db,migrations}/**/*" diff --git a/.gitlab/issue_templates/Security developer workflow.md b/.gitlab/issue_templates/Security developer workflow.md index d21da6a161b..840ef4c6337 100644 --- a/.gitlab/issue_templates/Security developer workflow.md +++ b/.gitlab/issue_templates/Security developer workflow.md @@ -27,7 +27,7 @@ After your merge request has been approved according to our [approval guidelines * At this point, it might be easy to squash the commits from the MR into one * 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. + * Every merge request will have its own set of to-dos, so make sure to complete those. - [ ] On the "Related merge requests" section, ensure that `4` merge requests are associated: The one targeting `master` and the `3` backports. - [ ] If this issue requires less than `4` merge requests, post a message on the Security Release Tracking Issue and ping the Release Managers. diff --git a/app/assets/javascripts/boards/components/modal/empty_state.vue b/app/assets/javascripts/boards/components/modal/empty_state.vue index 8d80319634d..cd4512f320f 100644 --- a/app/assets/javascripts/boards/components/modal/empty_state.vue +++ b/app/assets/javascripts/boards/components/modal/empty_state.vue @@ -1,10 +1,14 @@ diff --git a/app/assets/javascripts/groups/init_invite_members_banner.js b/app/assets/javascripts/groups/init_invite_members_banner.js index 9117337895f..c7967827917 100644 --- a/app/assets/javascripts/groups/init_invite_members_banner.js +++ b/app/assets/javascripts/groups/init_invite_members_banner.js @@ -8,7 +8,7 @@ export default function initInviteMembersBanner() { return false; } - const { svgPath, inviteMembersPath, isDismissedKey } = el.dataset; + const { svgPath, inviteMembersPath, isDismissedKey, trackLabel } = el.dataset; return new Vue({ el, @@ -16,6 +16,7 @@ export default function initInviteMembersBanner() { svgPath, inviteMembersPath, isDismissedKey, + trackLabel, }, render: createElement => createElement(InviteMembersBanner), }); diff --git a/app/assets/javascripts/notes/components/note_actions.vue b/app/assets/javascripts/notes/components/note_actions.vue index 643145651e5..a8057276f1a 100644 --- a/app/assets/javascripts/notes/components/note_actions.vue +++ b/app/assets/javascripts/notes/components/note_actions.vue @@ -1,12 +1,13 @@