Skip to content

Commit 4dfedb9

Browse files
authored
Merge pull request #386 from qa-guru/QAGDEV-723
QAGDEV-723 - [FE] Прикрепления тестов к заданиям v2
2 parents 65c47ff + a7f5a77 commit 4dfedb9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+3910
-21
lines changed

src/api/graphql/lecture/lecture.graphql

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@ query lecture($id: ID!) {
1414
subject
1515
description
1616
content
17+
testGroup {
18+
id
19+
testName
20+
successThreshold
21+
testQuestions {
22+
id
23+
text
24+
testAnswers {
25+
id
26+
text
27+
}
28+
}
29+
}
1730
files {
1831
id
1932
homeWork

src/api/graphql/lecture/update-lecture.graphql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ mutation updateLecture($input: LectureInput!) {
55
description
66
content
77
contentHomeWork
8+
testGroup {
9+
id
10+
testName
11+
successThreshold
12+
}
813
speakers {
914
id
1015
firstName
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mutation deleteTestAnswer($id: ID!) {
2+
deleteTestAnswer(id: $id)
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mutation deleteTestGroup($id: ID!) {
2+
deleteTestGroup(id: $id)
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mutation deleteTestQuestion($id: ID!) {
2+
deleteTestQuestion(id: $id)
3+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
query lectureTest($lectureId: ID) {
2+
lectureTest(lectureId: $lectureId) {
3+
id
4+
testName
5+
}
6+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
mutation sendTestAnswerToReview($attemptId: ID!) {
2+
sendTestAnswerToReview(attemptId: $attemptId) {
3+
id
4+
status
5+
answer
6+
lecture {
7+
subject
8+
}
9+
training {
10+
name
11+
}
12+
student {
13+
firstName
14+
lastName
15+
}
16+
mentor {
17+
firstName
18+
lastName
19+
}
20+
creationDate
21+
testAttempts {
22+
id
23+
startTime
24+
endTime
25+
result
26+
}
27+
}
28+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
mutation sendTestAnswer(
2+
$questionId: ID!
3+
$attemptId: ID!
4+
$testAnswerIds: [ID]!
5+
) {
6+
sendTestAnswer(
7+
questionId: $questionId
8+
attemptId: $attemptId
9+
testAnswerIds: $testAnswerIds
10+
) {
11+
id
12+
startTime
13+
endTime
14+
successfulCount
15+
errorsCount
16+
result
17+
testAttemptQuestionResults {
18+
testQuestion {
19+
id
20+
text
21+
}
22+
result
23+
testAnswerResults {
24+
testAnswer {
25+
id
26+
text
27+
}
28+
result
29+
answer
30+
}
31+
}
32+
}
33+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
mutation startTest($lectureId: ID!, $trainingId: ID!) {
2+
startTest(lectureId: $lectureId, trainingId: $trainingId) {
3+
id
4+
startTime
5+
successfulCount
6+
errorsCount
7+
result
8+
}
9+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
query testAnswerByQuestion($questionId: ID) {
2+
testAnswerByQuestion(questionId: $questionId) {
3+
id
4+
text
5+
correct
6+
}
7+
}

0 commit comments

Comments
 (0)