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
- User wants to add custom subject not in predefined list
- Check available subjects
- Custom subject not present
- Administrator must modify code
- 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
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
Environment Information
Expected Behavior
Actual Behavior
Code Reference
src/constants/subjects.jsSTUDY_SUBJECTS- hardcoded arrayAdditional Context
This is a Level 3 maintainability issue. Fix requires:
Suggested Labels
feature-request,maintainability,configuration,flexibility,scalability