From 6b5937e93e758a429a02eb0644fd23ad164a4ad9 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 20 Jan 2022 09:11:11 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- .gitlab/issue_templates/Feature Flag Cleanup.md | 52 ++++++++++++++++++++++ .gitlab/issue_templates/Feature Flag Roll Out.md | 4 +- .../pipeline_editor/pipeline_editor_app.vue | 2 +- .../pipeline_editor/pipeline_editor_home.vue | 2 +- app/models/issue.rb | 2 +- app/models/project_team.rb | 4 ++ app/services/projects/create_service.rb | 2 +- doc/administration/gitaly/configure_gitaly.md | 2 +- doc/development/testing_guide/flaky_tests.md | 28 ++++-------- doc/update/index.md | 6 +-- doc/user/group/contribution_analytics/index.md | 3 +- .../templates/Jobs/Secret-Detection.gitlab-ci.yml | 27 ++++++----- qa/qa/resource/project_access_token.rb | 4 +- .../api/1_manage/project_access_token_spec.rb | 4 +- .../merge_request/push_options_labels_spec.rb | 7 ++- spec/controllers/autocomplete_controller_spec.rb | 2 +- .../projects/artifacts_controller_spec.rb | 2 +- .../projects/avatars_controller_spec.rb | 4 +- spec/controllers/projects/hooks_controller_spec.rb | 2 +- .../merge_requests/conflicts_controller_spec.rb | 2 +- .../merge_requests/creations_controller_spec.rb | 2 +- .../merge_requests/drafts_controller_spec.rb | 2 +- .../projects/merge_requests_controller_spec.rb | 2 +- .../projects/mirrors_controller_spec.rb | 10 ++--- .../projects/pipelines_controller_spec.rb | 2 +- .../projects/service_ping_controller_spec.rb | 4 +- .../repositories/git_http_controller_spec.rb | 4 +- spec/graphql/features/authorization_spec.rb | 2 +- .../alert_management/alerts/todo/create_spec.rb | 2 +- spec/graphql/mutations/issues/create_spec.rb | 2 +- .../resolvers/package_details_resolver_spec.rb | 2 +- .../resolvers/package_pipelines_resolver_spec.rb | 2 +- spec/graphql/types/global_id_type_spec.rb | 2 +- .../database/no_cross_db_foreign_keys_spec.rb | 4 -- spec/models/project_team_spec.rb | 26 +++++++++++ spec/services/projects/create_service_spec.rb | 19 +++++--- 36 files changed, 168 insertions(+), 80 deletions(-) create mode 100644 .gitlab/issue_templates/Feature Flag Cleanup.md diff --git a/.gitlab/issue_templates/Feature Flag Cleanup.md b/.gitlab/issue_templates/Feature Flag Cleanup.md new file mode 100644 index 00000000000..eedb35a4b5f --- /dev/null +++ b/.gitlab/issue_templates/Feature Flag Cleanup.md @@ -0,0 +1,52 @@ + + +## Summary + +This issue is to cleanup the `` feature flag, after the feature flag has been enabled by default for an appropriate amount of time in production. + + + +## Owners + +- Team: NAME_OF_TEAM +- Most appropriate slack channel to reach out to: `#g_TEAM_NAME` +- Best individual to reach out to: NAME +- PM: NAME + +## Stakeholders + + + +## Expectations + +### What might happen if this goes wrong? + + + +### Cleaning up the feature flag + + +- [ ] Create a merge request to remove `` feature flag. Ask for review and merge it. + - [ ] Remove all references to the feature flag from the codebase. + - [ ] Remove the YAML definitions for the feature from the repository. + - [ ] Create [a changelog entry](https://docs.gitlab.com/ee/development/feature_flags/#changelog). +- [ ] Ensure that the cleanup MR has been deployed to both production and canary. + If the merge request was deployed before [the code cutoff](https://about.gitlab.com/handbook/engineering/releases/#self-managed-releases-1), + the feature can be officially announced in a release blog post. + - [ ] `/chatops run auto_deploy status ` +- [ ] Close [the feature issue](ISSUE LINK) to indicate the feature will be released in the current milestone. +- [ ] Clean up the feature flag from all environments by running these chatops command in `#production` channel: + - [ ] `/chatops run feature delete --dev` + - [ ] `/chatops run feature delete --staging` + - [ ] `/chatops run feature delete ` +- [ ] Close this rollout issue. + + +/label ~"feature flag" ~"type::feature" ~"feature::addition" +/assign DRI diff --git a/.gitlab/issue_templates/Feature Flag Roll Out.md b/.gitlab/issue_templates/Feature Flag Roll Out.md index 86f356daf90..590e627df75 100644 --- a/.gitlab/issue_templates/Feature Flag Roll Out.md +++ b/.gitlab/issue_templates/Feature Flag Roll Out.md @@ -121,7 +121,7 @@ To do so, follow these steps: - [ ] `/chatops run auto_deploy status ` - [ ] Close [the feature issue](ISSUE LINK) to indicate the feature will be released in the current milestone. - [ ] Set the next milestone to this rollout issue for scheduling [the flag removal](#release-the-feature). -- [ ] (Optional) You can create a separate issue for scheduling the steps below to [Release the feature](#release-the-feature). +- [ ] (Optional) You can [create a separate issue](https://gitlab.com/gitlab-org/gitlab/-/issues/new?issuable_template=Feature%20Flag%20Cleanup) for scheduling the steps below to [Release the feature](#release-the-feature). - [ ] Set the title to "[Feature flag] Cleanup ``". - [ ] Execute the `/copy_metadata ` quick action to copy the labels from this rollout issue. - [ ] Link this rollout issue as a related issue. @@ -141,6 +141,8 @@ the [clean up](https://docs.gitlab.com/ee/development/feature_flags/controls.htm should be done as soon as possible to permanently enable the feature and reduce complexity in the codebase. +You can either [create a follow-up issue for Feature Flag Cleanup](https://gitlab.com/gitlab-org/gitlab/-/issues/new?issuable_template=Feature%20Flag%20Cleanup) or use the checklist below in this same issue. + - [ ] Create a merge request to remove `` feature flag. Ask for review and merge it. - [ ] Remove all references to the feature flag from the codebase. diff --git a/app/assets/javascripts/pipeline_editor/pipeline_editor_app.vue b/app/assets/javascripts/pipeline_editor/pipeline_editor_app.vue index 90f48195c5e..a042e011550 100644 --- a/app/assets/javascripts/pipeline_editor/pipeline_editor_app.vue +++ b/app/assets/javascripts/pipeline_editor/pipeline_editor_app.vue @@ -358,7 +358,7 @@ export default { @createEmptyConfigFile="setNewEmptyCiConfigFile" @refetchContent="refetchContent" /> -
+