diff --git a/indico/queries/submission.py b/indico/queries/submission.py index be899cbf..847138bc 100644 --- a/indico/queries/submission.py +++ b/indico/queries/submission.py @@ -55,6 +55,7 @@ class ListSubmissions(GraphQLRequest): inputFile inputFilename resultFile + deleted retrieved errors } @@ -113,6 +114,7 @@ class GetSubmission(GraphQLRequest): inputFilename resultFile retrieved + deleted errors } } @@ -152,6 +154,7 @@ class WaitForSubmissions(RequestChain): inputFilename resultFile retrieved + deleted errors } } @@ -210,6 +213,7 @@ class UpdateSubmission(GraphQLRequest): inputFilename resultFile retrieved + deleted errors } } diff --git a/indico/types/submission.py b/indico/types/submission.py index d17dad14..39060112 100644 --- a/indico/types/submission.py +++ b/indico/types/submission.py @@ -54,9 +54,9 @@ class Submission(BaseType): result_file (str): URL of the result datafile within the Indico Platform retrieved (bool): Whether the submission has been retrieved by a user This flag is set manually by users. + deleted (bool): Whether the submission result has been deleted from the server errors (str): Any errors raised while processing the submission retries (List[SubmissionRetries]): If requested, information about previous retries of this submission. - """ id: int @@ -68,5 +68,6 @@ class Submission(BaseType): input_filename: str result_file: str retrieved: bool + deleted: bool errors: str retries: List[SubmissionRetries] diff --git a/tests/integration/queries/test_workflow.py b/tests/integration/queries/test_workflow.py index 82df1024..02aabff9 100644 --- a/tests/integration/queries/test_workflow.py +++ b/tests/integration/queries/test_workflow.py @@ -3,6 +3,7 @@ from indico.queries.workflow import GetWorkflow import pytest from pathlib import Path +import time from indico.client import IndicoClient from indico.errors import IndicoError, IndicoInputError @@ -93,9 +94,12 @@ def test_workflow_submission( assert isinstance(result, dict) assert result["submission_id"] == submission_id assert result["file_version"] == 1 - client.call(UpdateSubmission(submission_id, retrieved=True)) sub = client.call(GetSubmission(submission_id)) assert isinstance(sub, Submission) + assert sub.retrieved is False + assert sub.deleted is False + client.call(UpdateSubmission(submission_id, retrieved=True)) + sub = client.call(GetSubmission(submission_id)) assert sub.retrieved is True def test_workflow_submission_with_streams(