Score Computation framework
Score Computation — Feature Design Document
1. Overview
2. Scope and Constraints
3. Design Across Repositories
Repository
What changes
4. Data Model
4.1 G2PRegisterScoreDefinition
G2PRegisterScoreDefinition4.2 G2PScoreComputeQueue
G2PScoreComputeQueue4.3 G2PRegisterScore
G2PRegisterScore4.4 G2PRegisterScoreHistory (recommended)
G2PRegisterScoreHistory (recommended)5. Trigger: Change Request Approval
Trigger Logic
_enqueue_score_computations logic
_enqueue_score_computations logic6. Interface and Factory
6.1 G2PScoreComputeInterface
G2PScoreComputeInterface6.2 G2PScoreComputeFactory
G2PScoreComputeFactory7. Celery Beat Producer and Worker
7.1 Beat Producer
7.2 Worker
7.3 Workers constants update
Workers constants update7.4 Beat schedule and config
8. Core Service
9. Controller Service and API Endpoint
9.1 Controller Service
9.2 Staff Portal API Controller
10. Extension Implementation
Directory structure in openg2p-registry-gen2-extensions
openg2p-registry-gen2-extensionsExample PMT Score implementation
Namespace packaging (pyproject.toml)
pyproject.toml)11. UI — Scores Display
11.1 New widget: scores-display
scores-displayScore Type
Score
Computed At
Triggered by CR
11.2 Core Section in UI Schema
12. End-to-End Data Flow
13. Migration Checklist
14. Summary of All New Artifacts
openg2p-registry-gen2-core
openg2p-registry-gen2-coreType
File
Description
openg2p-registry-gen2-celery
openg2p-registry-gen2-celeryType
File
Description
openg2p-registry-gen2-apis
openg2p-registry-gen2-apisType
File
Description
openg2p-registry-gen2-ui-widgets
openg2p-registry-gen2-ui-widgetsType
File
Description
openg2p-registry-gen2-extensions
openg2p-registry-gen2-extensionsType
File
Description
Last updated
Was this helpful?