Skip to content

Clean up grade input processing and remove outdated templates#1927

Merged
vikrantwiz02 merged 2 commits into
FusionIIIT:prod/acad-reactfrom
vikrantwiz02:prod/acad-react
Jul 3, 2026
Merged

Clean up grade input processing and remove outdated templates#1927
vikrantwiz02 merged 2 commits into
FusionIIIT:prod/acad-reactfrom
vikrantwiz02:prod/acad-react

Conversation

@vikrantwiz02

Copy link
Copy Markdown
Member

This pull request primarily focuses on improving grade data handling and cleaning up unused or outdated code in the examination module. The most significant changes ensure that grade values are consistently stripped of whitespace and safely handled when null, preventing potential bugs in grade processing and calculations. Additionally, the pull request removes obsolete forms, updates URL routing to modern Django conventions, and deletes unused or outdated template files.

Grade Handling Improvements:

  • All places where grades are read from input (CSV uploads, forms, database queries) now use (grade or "").strip() to ensure grades are never None and have no leading/trailing whitespace. This change applies to grade assignment, comparison, and when converting grades to points using the grade_conversion mapping. [1] [2] [3] [4] [5] [6] [7] [8] [9]

Code Cleanup and Modernization:

  • Removed the unused StudentGradeForm class from forms.py.
  • Updated urls.py to use path() instead of deprecated url(), removed commented and unused routes, and cleaned up imports for clarity and maintainability.

Template Removal:

  • Deleted several unused or outdated HTML templates: all_course_grade_filled.html, announcement_req.html, and authenticate.html, likely to reduce clutter and avoid confusion with obsolete UI. [1] [2] [3]

- Deleted the following templates related to examination functionalities:
  - timetable.html
  - updateEntergrades.html
  - updateEntergradesDean.html
  - validation.html
  - validationSubmit.html
  - verify.html
  - verifygrades.html

- Updated publish.html to remove links to non-existent pages and adjusted the active state for the Publish menu item.
@vikrantwiz02
vikrantwiz02 merged commit 87f9b6e into FusionIIIT:prod/acad-react Jul 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant