Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: PythonSpring/pyspring-model
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: PythonSpring/pyspring-model
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: feat/in-operator
Choose a head ref
  • 8 commits
  • 9 files changed
  • 1 contributor

Commits on Jul 18, 2025

  1. 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.
    William-W-Chen committed Jul 18, 2025
    Configuration menu
    Copy the full SHA
    583aa98 View commit details
    Browse the repository at this point in the history
  2. 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.
    William-W-Chen committed Jul 18, 2025
    Configuration menu
    Copy the full SHA
    3ba28d5 View commit details
    Browse the repository at this point in the history
  3. 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.
    William-W-Chen committed Jul 18, 2025
    Configuration menu
    Copy the full SHA
    592291d View commit details
    Browse the repository at this point in the history
  4. 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.
    William-W-Chen committed Jul 18, 2025
    Configuration menu
    Copy the full SHA
    dc27eba View commit details
    Browse the repository at this point in the history
  5. 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.
    William-W-Chen committed Jul 18, 2025
    Configuration menu
    Copy the full SHA
    8f77245 View commit details
    Browse the repository at this point in the history
  6. 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.
    William-W-Chen committed Jul 18, 2025
    Configuration menu
    Copy the full SHA
    9c1137d View commit details
    Browse the repository at this point in the history
  7. 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.
    William-W-Chen committed Jul 18, 2025
    Configuration menu
    Copy the full SHA
    7cbfe2c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b74052e View commit details
    Browse the repository at this point in the history
Loading