Block features based on issue type
Follow up of: !41575 (merged)
!41575 (merged) blocks /promote
quick action for incident
issue type by checking if epics are supported. Maybe we need something more generic and reusable to check whether or not a feature is available for a issue type. This is something that also needs to be done for test_case
issue type.
The proposal is to have a list of blocked features by type somewhere in the code, like:
Class Issue
def supports_feature?(feature:)
blocked_actions_by_type(self.type).include?(action.to_sym)
end
def blocked_features_by_type
{
'incident': %i(promote),
'test_case': %i(confidential promote todo),
...
...
}
end
end
We could also use this to hide not allowed components for an issue type on UI and other checks.
For more information check: !41575 (comment 407553038)
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.