Commit 40d56412 authored by Sean Arnold's avatar Sean Arnold

Update wording, memoize states

Update docs
parent 14af1a8a
...@@ -15,10 +15,10 @@ module IssueResolverFields ...@@ -15,10 +15,10 @@ module IssueResolverFields
description: 'Labels applied to this issue' description: 'Labels applied to this issue'
argument :milestone_title, GraphQL::STRING_TYPE.to_list_type, argument :milestone_title, GraphQL::STRING_TYPE.to_list_type,
required: false, required: false,
description: 'Milestones applied to this issue' description: 'Milestone applied to this issue'
argument :assignee_username, GraphQL::STRING_TYPE, argument :assignee_username, GraphQL::STRING_TYPE,
required: false, required: false,
description: 'Username of a user assigned to the issues' description: 'Username of a user assigned to the issue'
argument :assignee_id, GraphQL::STRING_TYPE, argument :assignee_id, GraphQL::STRING_TYPE,
required: false, required: false,
description: 'ID of a user assigned to the issues, "none" and "any" values supported' description: 'ID of a user assigned to the issues, "none" and "any" values supported'
...@@ -56,7 +56,7 @@ module IssueResolverFields ...@@ -56,7 +56,7 @@ module IssueResolverFields
parent = object.respond_to?(:sync) ? object.sync : object parent = object.respond_to?(:sync) ? object.sync : object
return Issue.none if parent.nil? return Issue.none if parent.nil?
# Will need to be be made group & namespace aware with # Will need to be made group & namespace aware with
# https://gitlab.com/gitlab-org/gitlab-foss/issues/54520 # https://gitlab.com/gitlab-org/gitlab-foss/issues/54520
args[:iids] ||= [args.delete(:iid)].compact if args[:iid] args[:iids] ||= [args.delete(:iid)].compact if args[:iid]
args[:attempt_project_search_optimizations] = true if args[:search].present? args[:attempt_project_search_optimizations] = true if args[:search].present?
......
...@@ -7,8 +7,12 @@ module Types ...@@ -7,8 +7,12 @@ module Types
authorize :read_issue authorize :read_issue
def self.available_issue_states
@available_issue_states ||= Issue.available_states.keys.push('all')
end
::Gitlab::IssuablesCountForState::STATES.each do |state| ::Gitlab::IssuablesCountForState::STATES.each do |state|
next unless Issue.available_states.keys.push('all').include?(state) next unless available_issue_states.include?(state.downcase)
field state, field state,
GraphQL::INT_TYPE, GraphQL::INT_TYPE,
......
...@@ -5606,7 +5606,7 @@ type Group { ...@@ -5606,7 +5606,7 @@ type Group {
assigneeId: String assigneeId: String
""" """
Username of a user assigned to the issues Username of a user assigned to the issue
""" """
assigneeUsername: String assigneeUsername: String
...@@ -5666,7 +5666,7 @@ type Group { ...@@ -5666,7 +5666,7 @@ type Group {
last: Int last: Int
""" """
Milestones applied to this issue Milestone applied to this issue
""" """
milestoneTitle: [String] milestoneTitle: [String]
...@@ -10213,7 +10213,7 @@ type Project { ...@@ -10213,7 +10213,7 @@ type Project {
assigneeId: String assigneeId: String
""" """
Username of a user assigned to the issues Username of a user assigned to the issue
""" """
assigneeUsername: String assigneeUsername: String
...@@ -10258,7 +10258,7 @@ type Project { ...@@ -10258,7 +10258,7 @@ type Project {
labelName: [String] labelName: [String]
""" """
Milestones applied to this issue Milestone applied to this issue
""" """
milestoneTitle: [String] milestoneTitle: [String]
...@@ -10303,7 +10303,7 @@ type Project { ...@@ -10303,7 +10303,7 @@ type Project {
assigneeId: String assigneeId: String
""" """
Username of a user assigned to the issues Username of a user assigned to the issue
""" """
assigneeUsername: String assigneeUsername: String
...@@ -10343,7 +10343,7 @@ type Project { ...@@ -10343,7 +10343,7 @@ type Project {
labelName: [String] labelName: [String]
""" """
Milestones applied to this issue Milestone applied to this issue
""" """
milestoneTitle: [String] milestoneTitle: [String]
...@@ -10383,7 +10383,7 @@ type Project { ...@@ -10383,7 +10383,7 @@ type Project {
assigneeId: String assigneeId: String
""" """
Username of a user assigned to the issues Username of a user assigned to the issue
""" """
assigneeUsername: String assigneeUsername: String
...@@ -10443,7 +10443,7 @@ type Project { ...@@ -10443,7 +10443,7 @@ type Project {
last: Int last: Int
""" """
Milestones applied to this issue Milestone applied to this issue
""" """
milestoneTitle: [String] milestoneTitle: [String]
......
...@@ -15615,7 +15615,7 @@ ...@@ -15615,7 +15615,7 @@
}, },
{ {
"name": "milestoneTitle", "name": "milestoneTitle",
"description": "Milestones applied to this issue", "description": "Milestone applied to this issue",
"type": { "type": {
"kind": "LIST", "kind": "LIST",
"name": null, "name": null,
...@@ -15629,7 +15629,7 @@ ...@@ -15629,7 +15629,7 @@
}, },
{ {
"name": "assigneeUsername", "name": "assigneeUsername",
"description": "Username of a user assigned to the issues", "description": "Username of a user assigned to the issue",
"type": { "type": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "String", "name": "String",
...@@ -30531,7 +30531,7 @@ ...@@ -30531,7 +30531,7 @@
}, },
{ {
"name": "milestoneTitle", "name": "milestoneTitle",
"description": "Milestones applied to this issue", "description": "Milestone applied to this issue",
"type": { "type": {
"kind": "LIST", "kind": "LIST",
"name": null, "name": null,
...@@ -30545,7 +30545,7 @@ ...@@ -30545,7 +30545,7 @@
}, },
{ {
"name": "assigneeUsername", "name": "assigneeUsername",
"description": "Username of a user assigned to the issues", "description": "Username of a user assigned to the issue",
"type": { "type": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "String", "name": "String",
...@@ -30742,7 +30742,7 @@ ...@@ -30742,7 +30742,7 @@
}, },
{ {
"name": "milestoneTitle", "name": "milestoneTitle",
"description": "Milestones applied to this issue", "description": "Milestone applied to this issue",
"type": { "type": {
"kind": "LIST", "kind": "LIST",
"name": null, "name": null,
...@@ -30756,7 +30756,7 @@ ...@@ -30756,7 +30756,7 @@
}, },
{ {
"name": "assigneeUsername", "name": "assigneeUsername",
"description": "Username of a user assigned to the issues", "description": "Username of a user assigned to the issue",
"type": { "type": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "String", "name": "String",
...@@ -30919,7 +30919,7 @@ ...@@ -30919,7 +30919,7 @@
}, },
{ {
"name": "milestoneTitle", "name": "milestoneTitle",
"description": "Milestones applied to this issue", "description": "Milestone applied to this issue",
"type": { "type": {
"kind": "LIST", "kind": "LIST",
"name": null, "name": null,
...@@ -30933,7 +30933,7 @@ ...@@ -30933,7 +30933,7 @@
}, },
{ {
"name": "assigneeUsername", "name": "assigneeUsername",
"description": "Username of a user assigned to the issues", "description": "Username of a user assigned to the issue",
"type": { "type": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "String", "name": "String",
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment