Class: Types::Namespaces::LinkPaths::GroupNamespaceLinksType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::Namespaces::LinkPaths::GroupNamespaceLinksType
show all
- Defined in:
- app/graphql/types/namespaces/link_paths/group_namespace_links_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
#calendar_path ⇒ Object
37
38
39
40
|
# File 'app/graphql/types/namespaces/link_paths/group_namespace_links_type.rb', line 37
def calendar_path
base_path = url_helpers.group_work_items_path(group)
url_helpers.group_work_items_path(group, url_helpers.feed_url_options(:ics, base_path))
end
|
#group_path ⇒ Object
46
47
48
|
# File 'app/graphql/types/namespaces/link_paths/group_namespace_links_type.rb', line 46
def group_path
group.full_path
end
|
#issues_list ⇒ Object
12
13
14
|
# File 'app/graphql/types/namespaces/link_paths/group_namespace_links_type.rb', line 12
def issues_list
url_helpers.issues_group_path(group)
end
|
#issues_list_path ⇒ Object
50
51
52
|
# File 'app/graphql/types/namespaces/link_paths/group_namespace_links_type.rb', line 50
def issues_list_path
url_helpers.issues_group_path(group)
end
|
#labels_manage ⇒ Object
16
17
18
|
# File 'app/graphql/types/namespaces/link_paths/group_namespace_links_type.rb', line 16
def labels_manage
url_helpers.group_labels_path(group)
end
|
#namespace_full_path ⇒ Object
42
43
44
|
# File 'app/graphql/types/namespaces/link_paths/group_namespace_links_type.rb', line 42
def namespace_full_path
group.full_path
end
|
28
29
30
|
# File 'app/graphql/types/namespaces/link_paths/group_namespace_links_type.rb', line 28
def
url_helpers.(group)
end
|
#new_project ⇒ Object
20
21
22
|
# File 'app/graphql/types/namespaces/link_paths/group_namespace_links_type.rb', line 20
def new_project
url_helpers.new_project_path(namespace_id: group&.id)
end
|
#report_abuse ⇒ Object
24
25
26
|
# File 'app/graphql/types/namespaces/link_paths/group_namespace_links_type.rb', line 24
def report_abuse
url_helpers.add_category_abuse_reports_path
end
|
32
33
34
35
|
# File 'app/graphql/types/namespaces/link_paths/group_namespace_links_type.rb', line 32
def
base_path = url_helpers.group_work_items_path(group)
url_helpers.group_work_items_path(group, url_helpers.feed_url_options(:atom, base_path))
end
|