Blitzapps / blitz-orm

GNU Affero General Public License v3.0
23 stars 9 forks source link

Sweep: Add comprehensive query tests #70

Closed sweep-ai[bot] closed 5 months ago

sweep-ai[bot] commented 5 months ago

Purpose

This pull request adds a comprehensive set of query tests to the Blitz ORM project. The tests cover a wide range of query features and scenarios to ensure the correct functioning of the query engine.

Description

The changes in this pull request include:

  1. Adding new test cases for retrieving all attributes of an entity using the $fields parameter.
  2. Adding tests for retrieving a subset of attributes using the $fields parameter.
  3. Adding tests for retrieving an entity by its unique identifier using the $id parameter.
  4. Adding tests for retrieving multiple entities by their unique identifiers using the $id parameter with an array.
  5. Adding tests for retrieving entities based on specific attribute values using the $filter parameter, including tests for $and and $or operators.
  6. Adding tests for retrieving entities with specific role field values.
  7. Adding tests for retrieving entities with specific link field values targeting roles and relations.
  8. Adding tests for retrieving entities sorted by a specific attribute in ascending and descending order using the $sort parameter.
  9. Adding tests for retrieving a paginated subset of entities using the $offset and $limit parameters.
  10. Adding tests for retrieving entities with nested link fields, traversing multiple levels of relationships.
  11. Adding tests for retrieving entities with nested role fields, traversing multiple levels of relationships.
  12. Adding a test that combines multiple query features in a single query.

Summary

The changes in this pull request include:

Fixes #69.


[!TIP] To get Sweep to edit this pull request, you can:

  • Comment below, and Sweep can edit the entire PR
  • Comment on a file, Sweep will only modify the commented file
  • Edit the original issue to get Sweep to recreate the PR from scratch

This is an automated message generated by Sweep AI.