Skip to content

[Feature] Subject Categories Hardcoded - No Dynamic Subject Management #1058

@anshul23102

Description

@anshul23102

Description

Subject categories are hardcoded in the application. Adding new subjects requires code changes and redeployment. No dynamic subject management system exists.

Steps to Reproduce

  1. User wants to add custom subject not in predefined list
  2. Check available subjects
  3. Custom subject not present
  4. Administrator must modify code
  5. Redeployment required for change

Environment Information

  • Categories: Hardcoded array in JavaScript
  • Configuration: No database table
  • Admin interface: None
  • Flexibility: Minimal

Expected Behavior

  • Subjects stored in database
  • Admin interface to manage subjects
  • Users can create custom subjects
  • Changes take effect immediately without redeployment

Actual Behavior

  • Subjects hardcoded
  • Adding subjects requires code changes
  • Redeployment necessary
  • No admin interface

Code Reference

  • File: src/constants/subjects.js
  • Variable: STUDY_SUBJECTS - hardcoded array
  • Missing: Database schema for subjects
  • Missing: Admin management interface

Additional Context

This is a Level 3 maintainability issue. Fix requires:

  • Creating subjects table in database
  • Building admin interface
  • Loading subjects dynamically
  • Caching with invalidation

Suggested Labels

feature-request, maintainability, configuration, flexibility, scalability

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions