Evaluator Session Creation
Overview
To facilitate the evaluator, evaluate the answer scripts within the bundles by creating evaluation sessions.
Feature Description
Create Evaluation Session
-
Purpose: The primary purpose of the API is to capture evaluator information at the beginning of each evaluation session.
-
Key Functions:
- Image Capture: Capture the evaluator's image to record information each time they initiate the evaluation of a bundle.
- Session Creation: Creating a new evaluation session for the evaluator.
-
Output: The API provides a session id upon successful creation of session.
Process Flow
Development Steps
-
Inputs:
bundleId
,file
- captured image -
Check the presence of an Evaluator Image file.
-
Validate the existence of the bundle with
bundleId
exists. -
Validate if the bundle is assigned to the evaluator
evaluatorId
or not. -
Create Evaluation Session:
- If all checks pass, create a new evaluator session in the
BundleEvaluationSession
entity with providedbundleId
,evaluatorId
- Upload the image captured to the AWS S3
- Link the uploaded image media object to the
BundleEvaluationSession
entity.
- If all checks pass, create a new evaluator session in the
Schema
src/domain/entities/bundle-evaluation-session.entity.ts
export class BundleEvaluationSession {
@PrimaryGeneratedColumn()
id: number;
@Column()
bundleId: number;
@Column()
evaluatorId: number;
image: MediaObject;
@UpdateDateColumn()
updatedAt: string;
@CreateDateColumn()
createdAt: string;
@ManyToOne(() => Evaluator)
evaluator: Evaluator;
}
Functions with individual test cases
- createEvaluationSession
- creates an evaluation session and return id.
Dependent Modules
- BundleEvaluationSession Entity
- Bundle Entity
- Evaluator Entity
- ExamGroup Entity
- StudExternal Entity
- Media Object Entity
Conclusion
The API is used for creation of evaluation session for evaluator.
References
- Postman Link
- Create Evaluator Session API: