group_adjusters#
- adjust_batch_groups_and_comparisons(view: Mapping[str, Any], ctx: AdjustmentContext) Dict[str, Any][source]#
Normalize batch groups and validate comparisons.
Performs two main operations:
Normalize groups using the same logic as group_analysis.
- Validate and de-duplicate comparisons:
Each comparison must be a 2-sequence of distinct group names.
Both groups must exist in the groups configuration.
De-duplicates comparisons while preserving order.
Note
No lexicographic canonicalization applied; [“A”,”B”] and [“B”,”A”] remain distinct.
- Parameters:
view (ConfigView) – Configuration view providing access to current configuration state.
ctx (AdjustmentContext) – Adjustment context containing metadata and state for this operation.
Returns
- ConfigPatch
Patch containing normalized groups and validated, de-duplicated comparisons.
- adjust_group_analysis_groups(view: Mapping[str, Any], ctx: AdjustmentContext) Dict[str, Any][source]#
Normalize group lists: make lists, drop falsy items, and de-dupe while preserving order.