~sircmpwn/todo.sr.ht#274: 
Server error if sending ImportInput when adding a comment to a ticket

Creation time and author of comments on a todo.sr.ht ticket (ImportInput) cannot be set. When trying, I get some "internal server error" back. Removing ImportInput from the request works.

Example mutation:

mutation submitComment(
	$trackerId: Int!
	$ticketId: Int!
	$ticketStatus: TicketStatus
	$resolution: TicketResolution
	$commentText: String!
	$importInput: ImportInput
) {
	submitComment(
		trackerId: $trackerId
		ticketId: $ticketId
		input: {
			status: $ticketStatus
			text: $commentText
			resolution: $resolution
			import: $importInput
		}
	) {
		id
	}
}

With variables:

{
	"trackerId": 1234,
	"ticketId": 16,
	"trackerName": "test-tracker",
	"labelId": 1,
	"ticketStatus": "RESOLVED",
	"resolution": "CLOSED",
	"commentText": "Ticket comment text",
	"importInput": {
		"created": "1970-01-01T12:00:00Z",
		"externalId": "github:ghost",
		"externalUrl": "https://github.com/ghost"
	}
}

Server response

{
	"errors": [
		{
			"message": "internal system error",
			"path": [
				"submitComment"
			]
		}
	],
	"data": null
}

ref in this discussion

Status
REPORTED
Submitter
~jman
Assigned to
No-one
Submitted
15 days ago
Updated
15 days ago
Labels
No labels applied.