-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement course and exercise selection with real data
- Loading branch information
artemis_admin
committed
Nov 30, 2024
1 parent
1d04322
commit 2c2bedb
Showing
45 changed files
with
592 additions
and
688 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/exercise/exercise.model.ts → shared/models/exercise.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { TestCase } from "./testcase.model"; | ||
|
||
export enum FeedbackType { | ||
MANUAL = "MANUAL", | ||
MANUAL_UNREFERENCED = "MANUAL_UNREFERENCED", | ||
AUTOMATIC_ADAPTED = "AUTOMATIC_ADAPTED", | ||
AUTOMATIC = "AUTOMATIC", | ||
} | ||
|
||
export enum Visibility { | ||
ALWAYS = "ALWAYS", | ||
AFTER_DUE_DATE = "AFTER_DUE_DATE", | ||
NEVER = "NEVER", | ||
} | ||
|
||
export type Feedback = { | ||
id: number, | ||
detailText: string, | ||
testCase: TestCase, | ||
credits: number, | ||
positive: boolean, | ||
type: FeedbackType, | ||
visibility: Visibility, | ||
} |
9 changes: 2 additions & 7 deletions
9
src/participation/participation.model.ts → shared/models/participation.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
import { Result } from "./result.model" | ||
|
||
export type Participation = { | ||
type: string, | ||
id: number, | ||
repositoryUri: string, | ||
userIndependentRepositoryUri: string, | ||
participantIdentifier: string, | ||
results: Result[] | undefined | ||
} | ||
|
||
export type Result = { | ||
id: number, | ||
completionDate: Date, | ||
score: number, | ||
rated: boolean, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export type Result = { | ||
id: number, | ||
completionDate: Date, | ||
score: number, | ||
rated: boolean, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Visibility } from "./feedback.model" | ||
|
||
export enum TestCaseType { | ||
STRUCTURAL = 'STRUCTURAL', | ||
BEHAVIORAL = 'BEHAVIORAL', | ||
DEFAULT = 'DEFAULT', | ||
} | ||
|
||
export type TestCase = { | ||
id: number, | ||
testName: string, | ||
weight: number, | ||
active: boolean, | ||
visibility: Visibility | ||
bonusMultiplier: number | ||
bonusPoints: number | ||
type: TestCaseType | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export enum CommandFromWebview { | ||
INFO = "info", | ||
ERROR = "error", | ||
LOGIN = "login", | ||
GET_COURSE_OPTIONS = "getCourseOptions", | ||
GET_EXERCISE_OPTIONS = "getExerciseOptions", | ||
GET_EXERCISE_DETAILS = "getExerciseDetails", | ||
CLONE_REPOSITORY = "cloneRepository", | ||
SUBMIT = "submit", | ||
SET_COURSE_AND_EXERCISE = "setCourseAndExercise", | ||
GET_FEEDBACK = "getFeedback", | ||
} | ||
|
||
export enum CommandFromExtension { | ||
SHOW_LOGIN = "showLogin", | ||
SHOW_COURSE_SELECTION = "showCourseSelection", | ||
SHOW_EXERCISE_SELECTION = "showExerciseSelection", | ||
SHOW_PROBLEM_STATEMENT = "showProblemStatement", | ||
SEND_COURSE_OPTIONS = "sendCourseOptions", | ||
SEND_EXERCISE_OPTIONS = "sendExerciseOptions", | ||
SEND_COURSE_AND_EXERCISE = "sendCourseAndExercise", | ||
SEND_FEEDBACK = "sendFeedback", | ||
EASTER_EGG = "easterEgg", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.