Commit 054afda3 authored by Illya Klymov's avatar Illya Klymov Committed by Jacques Erasmus

Introduce last_import_target field for bulk imports

* Save last target of import to this field
parent 518de54a
...@@ -30,6 +30,7 @@ type ClientBulkImportSourceGroup { ...@@ -30,6 +30,7 @@ type ClientBulkImportSourceGroup {
full_name: String! full_name: String!
progress: ClientBulkImportProgress! progress: ClientBulkImportProgress!
import_target: ClientBulkImportTarget! import_target: ClientBulkImportTarget!
last_import_target: ClientBulkImportTarget
validation_errors: [ClientBulkImportValidationError!]! validation_errors: [ClientBulkImportValidationError!]!
} }
...@@ -50,11 +51,21 @@ extend type Query { ...@@ -50,11 +51,21 @@ extend type Query {
availableNamespaces: [ClientBulkImportAvailableNamespace!]! availableNamespaces: [ClientBulkImportAvailableNamespace!]!
} }
input InputTargetInput {
target_namespace: String!
new_name: String!
}
extend type Mutation { extend type Mutation {
setNewName(newName: String, sourceGroupId: ID!): ClientBulkImportSourceGroup! setNewName(newName: String, sourceGroupId: ID!): ClientBulkImportSourceGroup!
setTargetNamespace(targetNamespace: String, sourceGroupId: ID!): ClientBulkImportSourceGroup! setTargetNamespace(targetNamespace: String, sourceGroupId: ID!): ClientBulkImportSourceGroup!
importGroups(sourceGroupIds: [ID!]!): [ClientBulkImportSourceGroup!]! importGroups(sourceGroupIds: [ID!]!): [ClientBulkImportSourceGroup!]!
setImportProgress(id: ID, status: String!): ClientBulkImportSourceGroup! setImportProgress(
id: ID
status: String!
jobId: String
importTarget: ImportTargetInput!
): ClientBulkImportSourceGroup!
updateImportProgress(id: ID, status: String!): ClientBulkImportProgress updateImportProgress(id: ID, status: String!): ClientBulkImportProgress
addValidationError( addValidationError(
sourceGroupId: ID! sourceGroupId: ID!
......
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