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
455083c2
Commit
455083c2
authored
Apr 24, 2020
by
Eugenia Grieff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add createdAt field to JiraImportType
- Add fields to specs - Update schema and docs
parent
8e15b611
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
1 deletion
+24
-1
app/graphql/types/jira_import_type.rb
app/graphql/types/jira_import_type.rb
+2
-0
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+5
-0
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+14
-0
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+1
-0
spec/graphql/types/jira_import_type_spec.rb
spec/graphql/types/jira_import_type_spec.rb
+1
-1
spec/requests/api/graphql/project/jira_import_spec.rb
spec/requests/api/graphql/project/jira_import_spec.rb
+1
-0
No files found.
app/graphql/types/jira_import_type.rb
View file @
455083c2
...
...
@@ -7,6 +7,8 @@ module Types
class
JiraImportType
<
BaseObject
graphql_name
'JiraImport'
field
:created_at
,
Types
::
TimeType
,
null:
true
,
description:
'Timestamp of when the Jira import was created'
field
:scheduled_at
,
Types
::
TimeType
,
null:
true
,
description:
'Timestamp of when the Jira import was scheduled'
field
:scheduled_by
,
Types
::
UserType
,
null:
true
,
...
...
doc/api/graphql/reference/gitlab_schema.graphql
View file @
455083c2
...
...
@@ -4459,6 +4459,11 @@ Represents untyped JSON
scalar
JSON
type
JiraImport
{
"""
Timestamp
of
when
the
Jira
import
was
created
"""
createdAt
:
Time
"""
Project
key
for
the
imported
Jira
project
"""
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
455083c2
...
...
@@ -12635,6 +12635,20 @@
"name"
:
"JiraImport"
,
"description"
:
null
,
"fields"
:
[
{
"name"
:
"createdAt"
,
"description"
:
"Timestamp of when the Jira import was created"
,
"args"
:
[
],
"type"
:
{
"kind"
:
"SCALAR"
,
"name"
:
"Time"
,
"ofType"
:
null
},
"isDeprecated"
:
false
,
"deprecationReason"
:
null
},
{
"name"
:
"jiraProjectKey"
,
"description"
:
"Project key for the imported Jira project"
,
...
...
doc/api/graphql/reference/index.md
View file @
455083c2
...
...
@@ -667,6 +667,7 @@ Autogenerated return type of IssueSetWeight
| Name | Type | Description |
| --- | ---- | ---------- |
|
`createdAt`
| Time | Timestamp of when the Jira import was created |
|
`jiraProjectKey`
| String! | Project key for the imported Jira project |
|
`scheduledAt`
| Time | Timestamp of when the Jira import was scheduled |
|
`scheduledBy`
| User | User that started the Jira import |
...
...
spec/graphql/types/jira_import_type_spec.rb
View file @
455083c2
...
...
@@ -6,6 +6,6 @@ describe GitlabSchema.types['JiraImport'] do
it
{
expect
(
described_class
.
graphql_name
).
to
eq
(
'JiraImport'
)
}
it
'has the expected fields'
do
expect
(
described_class
).
to
have_graphql_fields
(
:jira_project_key
,
:scheduled_at
,
:scheduled_by
)
expect
(
described_class
).
to
have_graphql_fields
(
:jira_project_key
,
:
createdAt
,
:
scheduled_at
,
:scheduled_by
)
end
end
spec/requests/api/graphql/project/jira_import_spec.rb
View file @
455083c2
...
...
@@ -18,6 +18,7 @@ describe 'query Jira import data' do
jiraImports {
nodes {
jiraProjectKey
createdAt
scheduledAt
scheduledBy {
username
...
...
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