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
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,
......
......@@ -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
"""
......
......@@ -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",
......
......@@ -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 |
......
......@@ -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
......@@ -18,6 +18,7 @@ describe 'query Jira import data' do
jiraImports {
nodes {
jiraProjectKey
createdAt
scheduledAt
scheduledBy {
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