Skip to main content

Update Exam Notification

Overview

The Update Exam feature allows Master Institution to modify the details of an existing exam notification.

Feature Description

Purpose

The purpose of the Update Exam Notification is to update an existing exam notification while maintaining data integrity and preventing unauthorized changes.

Key functions

  • Update specific exam notification:
    • If the exam is published, user can only change the names in the exam notification. They are
      • group name
      • regular exam name
      • supply exam name.
    • If the exam is not published, user can change various fields like:
      • subject types
      • exam type
      • batches
      • evaluation type

Output

Successfully updating exam notification or throw exceptions with error messages

Process Flow

Development Steps

  • Check Permission: Validate that user attempting to update exam details possess the 'end_semester_examinations_edit' permission.
  • Check Authorization: Only Master Institution can update the exam notification.
  • Check Existence Verify the existence of the exam notification.
  • Check Publish Status: Check whether the exam notification is published.
  • Validate exam type and batches: It is essential to prevent the creation of exam notification allowing a particular batch to write both regular exam and supplementary exam.
  • Validate Removing a subject type: We have to ensure that there are no student registrations for a particular subject type before removing the subject type from the notification
  • Validate Removing a supplementary batch: We have to ensure that there are no student registrations for the supplementary exam in this notification before removing the batch from the notification.
  • Validate Removing a regular batch: We have to ensure that there are no student registrations for the regular exam in this notification before removing the batch from the notification.
  • Check Duplicate: Validate if an exam notification with specific input details is already created.
  • Update exam notification: save the changes to 'ExamGroup' entity.

Functions with individual test cases

  • updateExamGroupDetails
    • Updates exam notification details with the checks and validations as mentioned above and returns a success message.

Dependent Modules

  • Subject Entity
  • Course Entity
  • Subject Type Entity
  • Exam Group Entity
  • Stud External Entity

Conclusion

The update exam feature in ExamX provides a robust mechanism for modifying exam notification details while ensuring data consistency and integrity. Through a series of validations and checks, the backend implementation guarantees that only authorized and valid updates are processed, contributing to the overall reliability of the ExamX system.

References

  • API Postman Link: