Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d506a4fb
Commit
d506a4fb
authored
Nov 05, 2020
by
Brett Walker
Committed by
Eulyeon Ko
Nov 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply review suggestions
and update graphql docs
parent
f3571f65
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
app/graphql/types/issue_type.rb
app/graphql/types/issue_type.rb
+5
-3
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+2
-2
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+2
-2
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+2
-2
spec/presenters/issue_presenter_spec.rb
spec/presenters/issue_presenter_spec.rb
+2
-4
No files found.
app/graphql/types/issue_type.rb
View file @
d506a4fb
...
...
@@ -73,10 +73,12 @@ module Types
field
:participants
,
Types
::
UserType
.
connection_type
,
null:
true
,
complexity:
5
,
description:
'List of participants in the issue'
field
:emails_disabled
,
GraphQL
::
BOOLEAN_TYPE
,
method: :project_emails_disabled?
,
null:
false
,
complexity:
5
,
field
:emails_disabled
,
GraphQL
::
BOOLEAN_TYPE
,
null:
false
,
complexity:
5
,
method: :project_emails_disabled?
,
description:
'Indicates if a project has email notifications disabled'
field
:subscribe_disabled_description
,
GraphQL
::
STRING_TYPE
,
method: :subscribe_disabled_description
,
null:
false
,
description:
'The message to display when a project has emails notifications disabled'
field
:subscribe_disabled_description
,
GraphQL
::
STRING_TYPE
,
null:
false
,
method: :subscribe_disabled_description
,
description:
'Message to display when the project has email notifications disabled'
field
:subscribed
,
GraphQL
::
BOOLEAN_TYPE
,
method: :subscribed?
,
null:
false
,
complexity:
5
,
description:
'Indicates the currently logged in user is subscribed to the issue'
field
:time_estimate
,
GraphQL
::
INT_TYPE
,
null:
false
,
...
...
doc/api/graphql/reference/gitlab_schema.graphql
View file @
d506a4fb
...
...
@@ -7526,7 +7526,7 @@ type EpicIssue implements CurrentUserTodos & Noteable {
statusPagePublishedIncident
:
Boolean
"""
The
message
to
display
when
a
project
has
emails
notifications
disabled
Message
to
display
when
the
project
has
email
notifications
disabled
"""
subscribeDisabledDescription
:
String
!
...
...
@@ -10045,7 +10045,7 @@ type Issue implements CurrentUserTodos & Noteable {
statusPagePublishedIncident
:
Boolean
"""
The
message
to
display
when
a
project
has
emails
notifications
disabled
Message
to
display
when
the
project
has
email
notifications
disabled
"""
subscribeDisabledDescription
:
String
!
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
d506a4fb
...
...
@@ -20748,7 +20748,7 @@
},
{
"name": "subscribeDisabledDescription",
"description": "
The message to display when a project has emails
notifications disabled",
"description": "
Message to display when the project has email
notifications disabled",
"args": [
],
...
...
@@ -27395,7 +27395,7 @@
},
{
"name": "subscribeDisabledDescription",
"description": "
The message to display when a project has emails
notifications disabled",
"description": "
Message to display when the project has email
notifications disabled",
"args": [
],
doc/api/graphql/reference/index.md
View file @
d506a4fb
...
...
@@ -1234,7 +1234,7 @@ Relationship between an epic and an issue.
|
`slaDueAt`
| Time | Timestamp of when the issue SLA expires. |
|
`state`
| IssueState! | State of the issue |
|
`statusPagePublishedIncident`
| Boolean | Indicates whether an issue is published to the status page |
|
`subscribeDisabledDescription`
| String! |
The message to display when a project has emails
notifications disabled |
|
`subscribeDisabledDescription`
| String! |
Message to display when the project has email
notifications disabled |
|
`subscribed`
| Boolean! | Indicates the currently logged in user is subscribed to the issue |
|
`taskCompletionStatus`
| TaskCompletionStatus! | Task completion status of the issue |
|
`timeEstimate`
| Int! | Time estimate of the issue |
...
...
@@ -1500,7 +1500,7 @@ Represents a recorded measurement (object count) for the Admins.
|
`slaDueAt`
| Time | Timestamp of when the issue SLA expires. |
|
`state`
| IssueState! | State of the issue |
|
`statusPagePublishedIncident`
| Boolean | Indicates whether an issue is published to the status page |
|
`subscribeDisabledDescription`
| String! |
The message to display when a project has emails
notifications disabled |
|
`subscribeDisabledDescription`
| String! |
Message to display when the project has email
notifications disabled |
|
`subscribed`
| Boolean! | Indicates the currently logged in user is subscribed to the issue |
|
`taskCompletionStatus`
| TaskCompletionStatus! | Task completion status of the issue |
|
`timeEstimate`
| Int! | Time estimate of the issue |
...
...
spec/presenters/issue_presenter_spec.rb
View file @
d506a4fb
...
...
@@ -35,7 +35,7 @@ RSpec.describe IssuePresenter do
end
end
describe
'#project_emails_disabled'
do
describe
'#project_emails_disabled
?
'
do
subject
{
presenter
.
project_emails_disabled?
}
it
'returns false when emails notifications is enabled for project'
do
...
...
@@ -47,9 +47,7 @@ RSpec.describe IssuePresenter do
allow
(
project
).
to
receive
(
:emails_disabled?
).
and_return
(
true
)
end
it
'returns true'
do
is_expected
.
to
be
(
true
)
end
it
{
is_expected
.
to
be
(
true
)
}
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment