Commit ea90cf7c authored by Coung Ngo's avatar Coung Ngo

Fix JiraImportUsersInput startAt field

startAt is not a required field but threw an error when
no provided in the GraphQL mutation
parent 8614e246
......@@ -104,7 +104,6 @@ export default {
variables: {
input: {
projectPath: this.projectPath,
startAt: 1,
},
},
})
......
......@@ -19,7 +19,7 @@ module Mutations
required: false,
description: 'The index of the record the import should started at, default 0 (50 records returned)'
def resolve(project_path:, start_at:)
def resolve(project_path:, start_at: 0)
project = authorized_find!(full_path: project_path)
service_response = ::JiraImport::UsersImporter.new(context[:current_user], project, start_at).execute
......
---
title: Fix JiraImportUsersInput startAt field
merge_request: 37492
author:
type: fixed
......@@ -306,7 +306,6 @@ describe('JiraImportApp', () => {
variables: {
input: {
projectPath: 'gitlab-org/gitlab-test',
startAt: 1,
},
},
};
......
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