[YANGTOOLS-1399] Add OrderedByAwareEffectiveStatement Created: 11/Feb/22 Updated: 12/Feb/22 Resolved: 12/Feb/22 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | model-api |
| Affects Version/s: | None |
| Fix Version/s: | 8.0.0 |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
A number of downstream users end up inquiring ordering of a leaf-list and list nodes. To make their life easier, provide a common OrderedByAwareEffectiveStatement, exposing an ordering() method, which performs the search. This will allow us to remove centralize the definition of (Leaf)ListSchemaNode.isUserOrdered() and define a default implementation – and remove UserOrderedMixin in future, once we do not rely on isUserOrdered() being fast. |