-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: PythonSpring/pyspring-model
base: main
head repository: PythonSpring/pyspring-model
compare: feat/in-operator
- 8 commits
- 9 files changed
- 1 contributor
Commits on Jul 18, 2025
-
feat: Enhance query handling with IN operator support and related tests
- Updated `CrudRepositoryImplementationService` to support IN operations in query filtering, including validation for parameter types and handling of empty lists. - Modified `_Query` class to include `field_operations` for mapping field names to their respective operations. - Enhanced `_MetodQueryBuilder` to parse method names with IN operations and generate appropriate query structures. - Added comprehensive unit tests for IN operator functionality, including cases for single fields, multiple fields with AND/OR conditions, and error handling for invalid types and empty lists. - Updated existing tests to reflect changes in query structure and ensure correct SQL statement generation.
Configuration menu - View commit details
-
Copy full SHA for 583aa98 - Browse repository at this point
Copy the full SHA 583aa98View commit details -
feat: Introduce comprehensive field operations support for dynamic qu…
…eries - Added a new documentation file detailing supported field operations for dynamic query generation, including EQUALS, IN, GREATER_THAN, and others. - Enhanced `CrudRepositoryImplementationService` to handle various field operations, including validation and edge case management. - Updated `_Query` and `_MetodQueryBuilder` to incorporate field operation parsing and handling. - Implemented unit tests for field operations, ensuring correct functionality and validation for different query scenarios. - Improved method naming conventions and added examples for better clarity in usage.
Configuration menu - View commit details
-
Copy full SHA for 3ba28d5 - Browse repository at this point
Copy the full SHA 3ba28d5View commit details -
refactor: Improve field operation detection in query builder
- Refactored `_detect_field_operation` method in `_MetodQueryBuilder` to streamline the detection of field operations. - Ensured that the `_not_in` suffix is prioritized to prevent false positives when matching with `_in`. - Cleaned up unnecessary comments and improved code clarity for better maintainability.
Configuration menu - View commit details
-
Copy full SHA for 592291d - Browse repository at this point
Copy the full SHA 592291dView commit details -
feat: Implement parameter to field mapping for improved API design
- Added a new method `_create_parameter_field_mapping` to facilitate mapping between parameter names and field names, enhancing API readability. - Updated `create_implementation_wrapper` to utilize the new mapping method, ensuring correct handling of keyword arguments in queries. - Introduced comprehensive unit tests for the new mapping functionality, covering various scenarios including order independence, validation, and edge cases.
Configuration menu - View commit details
-
Copy full SHA for dc27eba - Browse repository at this point
Copy the full SHA dc27ebaView commit details -
refactor: Enhance parameter field mapping logic for improved validati…
…on and support - Refined the `_create_parameter_field_mapping` method to support exact matching and plural-to-singular mapping, improving API design clarity. - Updated error handling to provide clearer messages for unmatched parameters and added rules to prevent ambiguity in parameter names. - Enhanced unit tests to cover various mapping scenarios, including order independence, validation, and edge cases, ensuring robust functionality.
Configuration menu - View commit details
-
Copy full SHA for 8f77245 - Browse repository at this point
Copy the full SHA 8f77245View commit details -
refactor: Extract plural-to-singular mapping logic into a dedicated m…
…ethod - Moved the plural-to-singular conversion logic from `_create_parameter_field_mapping` to a new method `_cast_plural_to_singular`, improving code readability and maintainability. - This change enhances the clarity of the mapping process and prepares the code for potential future extensions.
Configuration menu - View commit details
-
Copy full SHA for 9c1137d - Browse repository at this point
Copy the full SHA 9c1137dView commit details -
feat: Add support for various field operations in dynamic queries
- Introduced new field operations such as IN, GREATER_THAN, LESS_THAN, and LIKE to enhance dynamic query generation capabilities. - Updated the documentation to include detailed descriptions and examples of supported field operations. - Modified the `UserRepository` and `ProductRepository` classes to implement new methods for these operations, ensuring consistent usage across repositories. - Enhanced return types for query methods to use `Optional` for better handling of potential null results.
Configuration menu - View commit details
-
Copy full SHA for 7cbfe2c - Browse repository at this point
Copy the full SHA 7cbfe2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b74052e - Browse repository at this point
Copy the full SHA b74052eView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...feat/in-operator