From dd056a6f5d02c81db78ac78bc932a68af6544b7b Mon Sep 17 00:00:00 2001 From: Donald Cook Date: Wed, 7 Feb 2024 21:20:13 -0800 Subject: [PATCH 1/3] Clarified work items FF naming Changelog: changed --- .../work_items/components/work_item_actions.vue | 2 +- .../components/work_item_attributes_wrapper.vue | 2 +- app/controllers/groups/work_items_controller.rb | 2 +- app/controllers/groups_controller.rb | 2 +- app/controllers/projects/incidents_controller.rb | 2 +- app/controllers/projects/issues_controller.rb | 4 ++-- app/controllers/projects/work_items_controller.rb | 2 +- app/controllers/projects_controller.rb | 2 +- app/models/group.rb | 4 ++-- app/models/project.rb | 4 ++-- config/feature_flags/beta/work_items_beta.yml | 9 +++++++++ doc/architecture/blueprints/work_items/index.md | 5 +++-- doc/user/okrs.md | 4 ++-- doc/user/tasks.md | 4 ++-- .../work_items/components/work_item_actions_spec.js | 2 +- .../components/work_item_attributes_wrapper_spec.js | 2 +- spec/models/group_spec.rb | 6 +++--- spec/models/project_spec.rb | 6 +++--- 18 files changed, 37 insertions(+), 27 deletions(-) create mode 100644 config/feature_flags/beta/work_items_beta.yml diff --git a/app/assets/javascripts/work_items/components/work_item_actions.vue b/app/assets/javascripts/work_items/components/work_item_actions.vue index 4880e7de9d2c1d..eed6eb2b6eefb4 100644 --- a/app/assets/javascripts/work_items/components/work_item_actions.vue +++ b/app/assets/javascripts/work_items/components/work_item_actions.vue @@ -185,7 +185,7 @@ export default { }; }, canLockWorkItem() { - return this.canUpdate && this.glFeatures.workItemsMvc; + return this.canUpdate && this.glFeatures.workItemsBeta; }, canPromoteToObjective() { return this.canUpdate && this.workItemType === WORK_ITEM_TYPE_VALUE_KEY_RESULT; diff --git a/app/assets/javascripts/work_items/components/work_item_attributes_wrapper.vue b/app/assets/javascripts/work_items/components/work_item_attributes_wrapper.vue index 662edda13f18e8..356ccf659da0c7 100644 --- a/app/assets/javascripts/work_items/components/work_item_attributes_wrapper.vue +++ b/app/assets/javascripts/work_items/components/work_item_attributes_wrapper.vue @@ -310,7 +310,7 @@ export default { @error="$emit('error', $event)" /> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/398649) in GitLab 16.9 [with a flag](../administration/feature_flags.md) named `work_items_mvc`. Disabled by default. +> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/398649) in GitLab 16.9 [with a flag](../administration/feature_flags.md) named `work_items_beta`. Disabled by default. FLAG: -On self-managed GitLab, by default this feature is not available. To make it available, an administrator can [enable the feature flag](../administration/feature_flags.md) named `work_items_mvc`. +On self-managed GitLab, by default this feature is not available. To make it available, an administrator can [enable the feature flag](../administration/feature_flags.md) named `work_items_beta`. On GitLab.com, this feature is not available. This feature is not ready for production use. diff --git a/doc/user/tasks.md b/doc/user/tasks.md index 86dd1b4a774157..3338c911202500 100644 --- a/doc/user/tasks.md +++ b/doc/user/tasks.md @@ -492,10 +492,10 @@ system note in the task's comments, for example: ## Lock discussion -> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/398649) in GitLab 16.9 [with a flag](../administration/feature_flags.md) named `work_items_mvc`. Disabled by default. +> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/398649) in GitLab 16.9 [with a flag](../administration/feature_flags.md) named `work_items_beta`. Disabled by default. FLAG: -On self-managed GitLab, by default this feature is not available. To make it available, an administrator can [enable the feature flag](../administration/feature_flags.md) named `work_items_mvc`. +On self-managed GitLab, by default this feature is not available. To make it available, an administrator can [enable the feature flag](../administration/feature_flags.md) named `work_items_beta`. On GitLab.com, this feature is not available. This feature is not ready for production use. diff --git a/spec/frontend/work_items/components/work_item_actions_spec.js b/spec/frontend/work_items/components/work_item_actions_spec.js index b838c9a6a2869d..f16960f2414507 100644 --- a/spec/frontend/work_items/components/work_item_actions_spec.js +++ b/spec/frontend/work_items/components/work_item_actions_spec.js @@ -140,7 +140,7 @@ describe('WorkItemActions component', () => { }, provide: { isGroup: false, - glFeatures: { workItemsMvc: true, workItemsMvc2: true }, + glFeatures: { workItemsBeta: true, workItemsMvc2: true }, }, mocks: { $toast, diff --git a/spec/frontend/work_items/components/work_item_attributes_wrapper_spec.js b/spec/frontend/work_items/components/work_item_attributes_wrapper_spec.js index 5dfe27c41817b7..e91c9cd0d5e131 100644 --- a/spec/frontend/work_items/components/work_item_attributes_wrapper_spec.js +++ b/spec/frontend/work_items/components/work_item_attributes_wrapper_spec.js @@ -50,7 +50,7 @@ describe('WorkItemAttributesWrapper component', () => { hasIssuableHealthStatusFeature: true, projectNamespace: 'namespace', glFeatures: { - workItemsMvc: true, + workItemsBeta: true, workItemsMvc2, }, }, diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb index 697235339435fb..9c3c990bdbdb32 100644 --- a/spec/models/group_spec.rb +++ b/spec/models/group_spec.rb @@ -3621,10 +3621,10 @@ def define_cache_expectations(cache_key) end end - describe '#work_items_mvc_feature_flag_enabled?' do + describe '#work_items_beta_feature_flag_enabled?' do it_behaves_like 'checks self and root ancestor feature flag' do - let(:feature_flag) { :work_items_mvc } - let(:feature_flag_method) { :work_items_mvc_feature_flag_enabled? } + let(:feature_flag) { :work_items_beta } + let(:feature_flag_method) { :work_items_beta_feature_flag_enabled? } end end diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 936303d0be60e4..192a46598e1540 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -8627,12 +8627,12 @@ def has_external_wiki end end - describe '#work_items_mvc_feature_flag_enabled?' do + describe '#work_items_beta_feature_flag_enabled?' do let_it_be(:group_project) { create(:project, :in_subgroup) } it_behaves_like 'checks parent group feature flag' do - let(:feature_flag_method) { :work_items_mvc_feature_flag_enabled? } - let(:feature_flag) { :work_items_mvc } + let(:feature_flag_method) { :work_items_beta_feature_flag_enabled? } + let(:feature_flag) { :work_items_beta } let(:subject_project) { group_project } end end -- GitLab From aaff49c80bf06224c8df7a678bf18ea1001aa649 Mon Sep 17 00:00:00 2001 From: Donald Cook Date: Thu, 8 Feb 2024 10:19:37 -0800 Subject: [PATCH 2/3] Removed unused yml file and fix doc link --- config/feature_flags/development/work_items_mvc.yml | 8 -------- doc/architecture/blueprints/work_items/index.md | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 config/feature_flags/development/work_items_mvc.yml diff --git a/config/feature_flags/development/work_items_mvc.yml b/config/feature_flags/development/work_items_mvc.yml deleted file mode 100644 index 928175c70bab03..00000000000000 --- a/config/feature_flags/development/work_items_mvc.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -name: work_items_mvc -introduced_by_url: "https://gitlab.com/gitlab-org/gitlab/-/merge_requests/101062" -rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/377912 -milestone: '15.5' -type: development -group: group::project management -default_enabled: false diff --git a/doc/architecture/blueprints/work_items/index.md b/doc/architecture/blueprints/work_items/index.md index 81ce81d59af637..e08ef1fc3d0dad 100644 --- a/doc/architecture/blueprints/work_items/index.md +++ b/doc/architecture/blueprints/work_items/index.md @@ -85,7 +85,7 @@ All Work Item types share the same pool of predefined widgets and are customized | [WorkItemWidgetStatus](../../../api/graphql/reference/index.md#workitemwidgetstatus) | Status of a work item when type is Requirement, with possible status types being `unverified`, `satisfied`, or `failed` | | |No| | [WorkItemWidgetTestReports](../../../api/graphql/reference/index.md#workitemwidgettestreports) | Test reports associated with a work item | | | | | [WorkItemWidgetWeight](../../../api/graphql/reference/index.md#workitemwidgetweight) | Set weight of a work item | |`Reporter`|No| -| [WorkItemWidgetLock](../../../api/graphql/reference/index.md#workitemwidgetlock) | Lock/Unlock a work item | |`Reporter`|No| +| WorkItemWidgetLock | Lock/Unlock a work item | |`Reporter`|No| #### Widget availability (updating) -- GitLab From 5168b93311144da1b6c7c54672cbe4cc15a084f9 Mon Sep 17 00:00:00 2001 From: Coung Ngo Date: Wed, 14 Feb 2024 15:58:06 +0000 Subject: [PATCH 3/3] Update feature flag yml file --- config/feature_flags/beta/work_items_beta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/feature_flags/beta/work_items_beta.yml b/config/feature_flags/beta/work_items_beta.yml index 6dbbe9ec2be9e6..22d79f0e38b1a0 100644 --- a/config/feature_flags/beta/work_items_beta.yml +++ b/config/feature_flags/beta/work_items_beta.yml @@ -1,9 +1,9 @@ --- name: work_items_beta -feature_issue_url: -introduced_by_url: +feature_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/377912 +introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/144141 rollout_issue_url: https://gitlab.com/gitlab-com/gl-infra/production/-/issues/17549 -milestone: '16.9' +milestone: '16.10' group: group::project management type: beta default_enabled: false -- GitLab