Class: Types::Namespaces::MarkdownPaths::GroupNamespaceMarkdownPathsType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::Namespaces::MarkdownPaths::GroupNamespaceMarkdownPathsType
show all
- Defined in:
- app/graphql/types/namespaces/markdown_paths/group_namespace_markdown_paths_type.rb
Overview
rubocop:disable Graphql/AuthorizeTypes – parent is already authorized
Instance Method Summary
collapse
Methods inherited from BaseObject
accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id
#present, #unpresented
Instance Method Details
#autocomplete_sources_path(iid: nil, work_item_type_id: nil) ⇒ Object
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'app/graphql/types/namespaces/markdown_paths/group_namespace_markdown_paths_type.rb', line 20
def autocomplete_sources_path(iid: nil, work_item_type_id: nil)
params = build_autocomplete_params(iid: iid, work_item_type_id: work_item_type_id)
{
members: url_helpers.members_group_autocomplete_sources_path(group, params),
issues: url_helpers.issues_group_autocomplete_sources_path(group, params),
mergeRequests: url_helpers.merge_requests_group_autocomplete_sources_path(group, params),
labels: url_helpers.labels_group_autocomplete_sources_path(group, params),
milestones: url_helpers.milestones_group_autocomplete_sources_path(group, params),
commands: url_helpers.commands_group_autocomplete_sources_path(group, params)
}
end
|
#markdown_preview_path(iid: nil) ⇒ Object
16
17
18
|
# File 'app/graphql/types/namespaces/markdown_paths/group_namespace_markdown_paths_type.rb', line 16
def markdown_preview_path(iid: nil)
url_helpers.group_preview_markdown_path(group, target_type: 'WorkItem', target_id: iid)
end
|
#uploads_path ⇒ Object
12
13
14
|
# File 'app/graphql/types/namespaces/markdown_paths/group_namespace_markdown_paths_type.rb', line 12
def uploads_path
url_helpers.group_uploads_path(group)
end
|