fastcrud
fastcrud copied to clipboard
Add sorting for nested list structures
Add sorting functionality for nested items in one-to-many and many-to-many relationships.
- Add
sort_columnsandsort_ordersattributes toJoinConfigclass infastcrud/crud/helper.py. - Validate
sort_columnsandsort_ordersinJoinConfigclass. - Update
_prepare_and_apply_joinsmethod infastcrud/crud/fast_crud.pyto handle sorting of nested items. - Add test cases for sorting nested items in one-to-many and many-to-many relationships in
tests/sqlalchemy/crud/test_get_multi_joined.py. - Add test cases for sorting nested items in one-to-many and many-to-many relationships in
tests/sqlmodel/crud/test_get_multi_joined.py.
For more details, open the Copilot Workspace session.
@bantoinese83 can you please fix the checks?