Class: Types::Namespaces::AvailableFeaturesType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::Namespaces::AvailableFeaturesType
show all
- Includes:
- IssuesHelper
- Defined in:
- app/graphql/types/namespaces/available_features_type.rb
Overview
rubocop:disable Graphql/AuthorizeTypes – parent is already authorized
Instance Method Summary
collapse
#award_emoji_issue_api_path, #award_state_class, #award_user_list, #awards_sort, #can_create_confidential_merge_request?, #common_issues_list_data, #confidential_icon, #dashboard_issues_list_data, #has_issue_date_filter_feature?, #has_subepics_feature?, #issue_header_actions_data, #issue_hidden?, #issue_repositioning_disabled?, #link_to_discussions_to_resolve, #project_issues_list_data, #scoped_labels_available?, #show_moved_service_desk_issue_warning?, #show_new_branch_button?, #show_new_issue_link?, #show_timeline_view_toggle?
#create_issue_type_allowed?
Methods inherited from BaseObject
accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id
#present, #unpresented
Instance Method Details
#blocked_issues_enabled? ⇒ Boolean
122
123
124
|
# File 'app/graphql/types/namespaces/available_features_type.rb', line 122
def blocked_issues_enabled?
object.licensed_feature_available?(:blocked_issues)
end
|
#custom_fields_enabled? ⇒ Boolean
126
127
128
|
# File 'app/graphql/types/namespaces/available_features_type.rb', line 126
def custom_fields_enabled?
object.licensed_feature_available?(:custom_fields)
end
|
#design_management_enabled? ⇒ Boolean
130
131
132
133
134
|
# File 'app/graphql/types/namespaces/available_features_type.rb', line 130
def design_management_enabled?
return false unless object.project_namespace?
object.project.design_management_enabled?
end
|
#epics_enabled? ⇒ Boolean
136
137
138
|
# File 'app/graphql/types/namespaces/available_features_type.rb', line 136
def epics_enabled?
object.licensed_feature_available?(:epics)
end
|
#group_bulk_edit_enabled? ⇒ Boolean
140
141
142
|
# File 'app/graphql/types/namespaces/available_features_type.rb', line 140
def group_bulk_edit_enabled?
object.licensed_feature_available?(:group_bulk_edit)
end
|
#has_duo_remote_flows_feature_enabled? ⇒ Boolean
184
185
186
|
# File 'app/graphql/types/namespaces/available_features_type.rb', line 184
def has_duo_remote_flows_feature_enabled?
object.owner_entity.try(:duo_remote_flows_enabled) || false
end
|
#issuable_health_status_enabled? ⇒ Boolean
144
145
146
|
# File 'app/graphql/types/namespaces/available_features_type.rb', line 144
def issuable_health_status_enabled?
object.licensed_feature_available?(:issuable_health_status)
end
|
#issue_date_filter_enabled? ⇒ Boolean
148
149
150
|
# File 'app/graphql/types/namespaces/available_features_type.rb', line 148
def issue_date_filter_enabled?
has_issue_date_filter_feature?(object, current_user)
end
|
#issue_weights_enabled? ⇒ Boolean
152
153
154
|
# File 'app/graphql/types/namespaces/available_features_type.rb', line 152
def issue_weights_enabled?
object.licensed_feature_available?(:issue_weights)
end
|
#iterations_enabled? ⇒ Boolean
156
157
158
|
# File 'app/graphql/types/namespaces/available_features_type.rb', line 156
def iterations_enabled?
object.licensed_feature_available?(:iterations)
end
|
#linked_items_epics_enabled? ⇒ Boolean
160
161
162
|
# File 'app/graphql/types/namespaces/available_features_type.rb', line 160
def linked_items_epics_enabled?
object.licensed_feature_available?(:linked_items_epics)
end
|
#okrs_enabled? ⇒ Boolean
164
165
166
|
# File 'app/graphql/types/namespaces/available_features_type.rb', line 164
def okrs_enabled?
object.licensed_feature_available?(:okrs)
end
|
#quality_management_enabled? ⇒ Boolean
168
169
170
|
# File 'app/graphql/types/namespaces/available_features_type.rb', line 168
def quality_management_enabled?
object.licensed_feature_available?(:quality_management)
end
|
#scoped_labels_enabled? ⇒ Boolean
172
173
174
|
# File 'app/graphql/types/namespaces/available_features_type.rb', line 172
def scoped_labels_enabled?
object.licensed_feature_available?(:scoped_labels)
end
|
#subepics_enabled? ⇒ Boolean
176
177
178
|
# File 'app/graphql/types/namespaces/available_features_type.rb', line 176
def subepics_enabled?
object.licensed_feature_available?(:subepics)
end
|
#work_item_status_enabled? ⇒ Boolean
180
181
182
|
# File 'app/graphql/types/namespaces/available_features_type.rb', line 180
def work_item_status_enabled?
object.licensed_feature_available?(:work_item_status)
end
|