Skip to content

Conversation

@RakeshBobba03
Copy link
Collaborator

#791 Implements define_dataset_variable_order metadata variable that returns dataset variables ordered by OrderNumber when present in Define XML, otherwise falls back to XML document order. This adds the new field to extract_dataset_metadata() and extract_domain_metadata() methods in BaseDefineXMLReader, updates all relevant dataset builders to include the field in their output, adds schema validation in MetaVariables.json, and includes comprehensive unit tests. The sorting logic is centralized in _get_ordered_dataset_variables() method following DRY principles.

@RakeshBobba03 RakeshBobba03 marked this pull request as ready for review January 2, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

define dataset variables for Dataset Metadata Check against Define XML

4 participants