Skip to content
Snippets Groups Projects
Commit 9802d0da authored by Eugenia Grieff's avatar Eugenia Grieff :two:
Browse files

Enable work items type quick action

As main feature is no longer behind a feature flag
when can enable the quick action too.

Changelog: added
parent aabe2df4
No related branches found
No related tags found
2 merge requests!120936Draft: Debugging commit to trigger pipeline (DO NOT MERGE),!120839Enable work items type quick action
......@@ -162,7 +162,7 @@ The following quick actions can be applied through the description field when ed
| `/clear_health_status` | **{check-circle}** Yes | **{dotted-circle}** Yes | **{dotted-circle}** Yes | Clear [health status](issues/managing_issues.md#health-status).
| `/weight <value>` | **{check-circle}** Yes | **{dotted-circle}** No | **{dotted-circle}** No | Set weight. Valid options for `<value>` include `0`, `1`, and `2`.
| `/clear_weight` | **{check-circle}** Yes | **{dotted-circle}** No | **{dotted-circle}** No | Clear weight.
| `/type` | **{check-circle}** Yes | **{dotted-circle}** Yes | **{dotted-circle}** Yes | Converts work item to specified type. Available options for `<type>` include `Issue`, `Task`, `Objective` and `Key Result`. [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/385227) in GitLab 16.0 [with a flag](../../administration/feature_flags.md) named `work_items_mvc_2`. Disabled by default.
| `/type` | **{check-circle}** Yes | **{dotted-circle}** Yes | **{dotted-circle}** Yes | Converts work item to specified type. Available options for `<type>` include `Issue`, `Task`, `Objective` and `Key Result`. [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/385227) in GitLab 16.0.
## Commit messages
......
......@@ -12,9 +12,6 @@ module WorkItemActions
format(_("Converts work item to %{type}. Widgets not supported in new type are removed."), type: target_type)
end
types WorkItem
condition do
quick_action_target&.project&.work_items_mvc_2_feature_flag_enabled?
end
params 'Task | Objective | Key Result | Issue'
command :type do |type_name|
work_item_type = ::WorkItems::Type.find_by_name(type_name)
......
......@@ -2875,18 +2875,6 @@
expect(explanations)
.to contain_exactly("Converts work item to Issue. Widgets not supported in new type are removed.")
end
context 'when feature flag work_items_mvc_2 is disabled' do
before do
stub_feature_flags(work_items_mvc_2: false)
end
it 'does not have the command available' do
_, explanations = service.explain(command, work_item)
expect(explanations).to be_empty
end
end
end
describe 'relate command' do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment