Class: Types::Namespaces::LinkPaths::GroupNamespaceLinksType

Inherits:
BaseObject
  • Object
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

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#calendar_pathObject



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_pathObject



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_listObject



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_pathObject



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_manageObject



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_pathObject



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

#new_comment_templateObject



28
29
30
# File 'app/graphql/types/namespaces/link_paths/group_namespace_links_type.rb', line 28

def new_comment_template
  url_helpers.new_comment_template_paths(group)
end

#new_projectObject



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_abuseObject



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

#rss_pathObject



32
33
34
35
# File 'app/graphql/types/namespaces/link_paths/group_namespace_links_type.rb', line 32

def rss_path
  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