Skip to content

Commit

Permalink
[SNC-14] add: input files to Submissions (#287)
Browse files Browse the repository at this point in the history
* add: filterable and pageable datasets

* add: unit test

* fix: happy path

* fix: import fixture

* add: input files to fetched submissions

---------

Co-authored-by: micah cahill <[email protected]>
  • Loading branch information
thearchitector and goatrocks authored Feb 28, 2024
1 parent dbfa802 commit 2fc2dd4
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
32 changes: 32 additions & 0 deletions indico/queries/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ class ListSubmissions(PagedRequest):
datasetId
workflowId
status
inputFiles {
id
filename
filepath
filetype
fileSize
numPages
}
inputFile
inputFilename
resultFile
Expand Down Expand Up @@ -128,6 +136,14 @@ class GetSubmission(GraphQLRequest):
datasetId
workflowId
status
inputFiles {
id
filename
filepath
filetype
fileSize
numPages
}
inputFile
inputFilename
resultFile
Expand Down Expand Up @@ -171,6 +187,14 @@ class WaitForSubmissions(RequestChain):
datasetId
workflowId
status
inputFiles {
id
filename
filepath
filetype
fileSize
numPages
}
inputFile
inputFilename
resultFile
Expand Down Expand Up @@ -231,6 +255,14 @@ class UpdateSubmission(GraphQLRequest):
datasetId
workflowId
status
inputFiles {
id
filename
filepath
filetype
fileSize
numPages
}
inputFile
inputFilename
resultFile
Expand Down
10 changes: 6 additions & 4 deletions indico/types/submission_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ class SubmissionFile(BaseType):
Attributes:
id (int): The Submission file id
filepath (str): URL of the input datafile within the Indico Platform.
filename (str): Name of the original file
submission_id (int): The parent Submission id
filename (str): Name of the original file
filepath (str): URL of the input datafile within the Indico Platform.
filetype (str): The file type of the original file; most likely, this is "PDF".
file_size (int): Size of file, in bytes
num_pages (int): Number of pages in file
"""

id: int
filepath: str
filename: str
submission_id: int
filename: str
filepath: str
filetype: str
file_size: int
num_pages: int

0 comments on commit 2fc2dd4

Please sign in to comment.