Create a weight configuration page accessible to senior engineers
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Currently, the Multi-Criteria Analysis (MCA) scoring logic is hardcoded within the management commands. This issue tracks the creation of a dedicated administrative interface to allow policy-makers to adjust weighting parameters dynamically.
Tasks:
- Backend (Models): Create model to store global weights (Condition vs. Criticality) and sub-weights (Population, Health, Education, Isolation).
- Backend (API): Implement a POST endpoint that updates the settings and triggers a full network re-calculation across all 1,555 segments.
- Frontend (UI): Build a "Configuration" page featuring linked sliders for weight balancing.
- Validation: Implement logic to ensure sub-weights always sum to 1.0 (100%) before allowing a save.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the management commands containing the MCA scoring logic, then inspect the existing model, API, and frontend entry points. Define how global and sub-weights are stored, updated, validated, and exposed in the configuration page. Done means policy-makers can adjust weights, invalid sub-weight totals cannot be saved, and a valid update triggers recalculation across all 1,555 segments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, backend, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100