Skip to content

Commit

Permalink
Merge pull request #7 from programme-lv/dev
Browse files Browse the repository at this point in the history
detailed submission view support
  • Loading branch information
KrisjanisP committed Nov 30, 2023
2 parents e732ad6 + 54934c4 commit 2c60731
Show file tree
Hide file tree
Showing 4 changed files with 1,371 additions and 363 deletions.
52 changes: 42 additions & 10 deletions api/submission.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ extend type Query {
An example of a hidden submission is a submission made by an admin for testing purposes.
"""
listPublicSubmissions: [Submission!]!

getSubmission(id: ID!): Submission!
}

extend type Mutation {
Expand All @@ -21,21 +23,51 @@ type Submission {
createdAt: String!
}

type TestVerdictStatistic {
verdict: String!
count: Int!
}

type Evaluation {
id: ID!
status: String!

totalScore: Int!
possibleScore: Int
avgTimeMs: Int
maxTimeMs: Int
avgMemoryKb: Int
maxMemoryKb: Int
testVerdictStatistics: [TestVerdictStatistic!]!

runtimeStatistics: RuntimeStatistics

"""Some programming languages do not support compilation, so this field may be null."""
compilation: CompilationDetails
testResults: [TestResult!]!
}

type RuntimeStatistics {
avgTimeMs: Int!
maxTimeMs: Int!
avgMemoryKb: Int!
maxMemoryKb: Int!
}

type CompilationDetails {
timeMs: Int!
memoryKb: Int!
exitCode: Int!
stdout: String!
stderr: String!
}

type TestResult {
timeMs: Int!
memoryKb: Int!
result: TestResultType!
}

enum TestResultType {
AC,
PT,
WA,
PE,
TLE,
MLE,
ILE,
IG,
RE,
SV,
ISE
}
Loading

0 comments on commit 2c60731

Please sign in to comment.