Commit 455083c2 authored by Eugenia Grieff's avatar Eugenia Grieff

Add createdAt field to JiraImportType

- Add fields to specs
- Update schema and docs
parent 8e15b611
...@@ -7,6 +7,8 @@ module Types ...@@ -7,6 +7,8 @@ module Types
class JiraImportType < BaseObject class JiraImportType < BaseObject
graphql_name 'JiraImport' 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, field :scheduled_at, Types::TimeType, null: true,
description: 'Timestamp of when the Jira import was scheduled' description: 'Timestamp of when the Jira import was scheduled'
field :scheduled_by, Types::UserType, null: true, field :scheduled_by, Types::UserType, null: true,
......
...@@ -4459,6 +4459,11 @@ Represents untyped JSON ...@@ -4459,6 +4459,11 @@ Represents untyped JSON
scalar JSON scalar JSON
type JiraImport { type JiraImport {
"""
Timestamp of when the Jira import was created
"""
createdAt: Time
""" """
Project key for the imported Jira project Project key for the imported Jira project
""" """
......
...@@ -12635,6 +12635,20 @@ ...@@ -12635,6 +12635,20 @@
"name": "JiraImport", "name": "JiraImport",
"description": null, "description": null,
"fields": [ "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", "name": "jiraProjectKey",
"description": "Project key for the imported Jira project", "description": "Project key for the imported Jira project",
......
...@@ -667,6 +667,7 @@ Autogenerated return type of IssueSetWeight ...@@ -667,6 +667,7 @@ Autogenerated return type of IssueSetWeight
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
| `createdAt` | Time | Timestamp of when the Jira import was created |
| `jiraProjectKey` | String! | Project key for the imported Jira project | | `jiraProjectKey` | String! | Project key for the imported Jira project |
| `scheduledAt` | Time | Timestamp of when the Jira import was scheduled | | `scheduledAt` | Time | Timestamp of when the Jira import was scheduled |
| `scheduledBy` | User | User that started the Jira import | | `scheduledBy` | User | User that started the Jira import |
......
...@@ -6,6 +6,6 @@ describe GitlabSchema.types['JiraImport'] do ...@@ -6,6 +6,6 @@ describe GitlabSchema.types['JiraImport'] do
it { expect(described_class.graphql_name).to eq('JiraImport') } it { expect(described_class.graphql_name).to eq('JiraImport') }
it 'has the expected fields' do 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
end end
...@@ -18,6 +18,7 @@ describe 'query Jira import data' do ...@@ -18,6 +18,7 @@ describe 'query Jira import data' do
jiraImports { jiraImports {
nodes { nodes {
jiraProjectKey jiraProjectKey
createdAt
scheduledAt scheduledAt
scheduledBy { scheduledBy {
username username
......
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