Canonical v5.5 Metadata Adapter & Extraction Engine#412
Open
brightyorcerf wants to merge 1 commit intoEAPD-DRB:mainfrom
Open
Canonical v5.5 Metadata Adapter & Extraction Engine#412brightyorcerf wants to merge 1 commit intoEAPD-DRB:mainfrom
brightyorcerf wants to merge 1 commit intoEAPD-DRB:mainfrom
Conversation
Contributor
Author
|
Note on the significant diff: Half of it is from the mock test suite (test_result_adapter.py) which proves dimension-agnosticism and verify security guardrails. To maintain the Stability Track standards, I’ve focused this PR strictly on the Backend Infrastructure. If this architectural foundation is reviewed/merged, I will submit a follow-up UI PR to bridge the frontend components to this resolver. This ensures a clean, two-stage transition that avoids 'half-ported' inconsistencies in the rendering layer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked issue
Existing related work reviewed
Overlap assessment
Why this PR should proceed
This PR provides the canonical backend implementation for #392. It successfully adopts the upstream Variables.json as the source of truth for result extraction and metadata resolution, fulfilling the core architectural requirements for the v5.5 stability track. By moving the 'knowledge' of result groups and units into a dynamic MetadataResolver, we eliminate local reinterpretation and prepare the codebase for consistent frontend rendering
Summary
What changed:
Why: To replace hardcoded variable dictionaries (technical debt) with a reactive system that automatically honors v5.5 metadata and dimensionality.
Validation
Documentation
Scope check
OSeMOSYS/MUIOdependencyEAPD-DRB/MUIOGO:main(not upstream)Exception rationale
blank