Skip to content

implementing sort for nested fields #217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

doubledare704
Copy link
Contributor

Pull Request Template for FastCRUD

Description

Extended crud helper to suport sorting by some fields and with order pick. Added test cases and updated existing tests.

Changes

Solving: #171
sort_columns and sort_orders added to joinconfig
added _sort_nested_list to crud/helper.py
updated _nest_join_data to use new logic
updated conftests
updated tests/sqlalchemy/core/test_nest_multi_join_data.py

Tests

added tests/sqlalchemy/crud/test_sort_nested_relationships.py

Checklist

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • I have added necessary documentation (if appropriate).
  • I have added tests that cover my changes (if applicable).
  • All new and existing tests passed.

Additional Notes

Include any additional information that you think is important for reviewers to know.

@igorbenav igorbenav merged commit 52d1896 into benavlabs:main Apr 21, 2025
7 checks passed
@doubledare704 doubledare704 deleted the feature/sort-nested-relationships branch April 23, 2025 14:43
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.

2 participants