[PR #6] [CLOSED] Add query operators. #97

Closed
opened 2026-02-26 01:33:12 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jeffknupp/sandman2/pull/6
Author: @jmcarp
Created: 8/10/2015
Status: Closed

Base: masterHead: add-operators


📝 Commits (8)

  • 188d7fb Fix failing admin test.
  • 59d3cad Install on Travis with setuptools.
  • 6dd763a Add query operators.
  • 91fad8f Add not equal operator.
  • 72cd4e2 Handle filtering on repeated query parameters.
  • 3ca05c2 Test case insensitive setting.
  • f6bc4ca Allow custom query delimiters.
  • ecf5829 Use WebTest for more concise tests.

📊 Changes

12 files changed (+376 additions, -185 deletions)

View changed files

📝 .travis.yml (+9 -10)
📝 requirements.txt (+3 -0)
sandman2/operators.py (+114 -0)
📝 sandman2/service.py (+17 -4)
sandman2/utils.py (+15 -0)
📝 setup.py (+3 -1)
📝 tests/automap_models.py (+6 -3)
📝 tests/conftest.py (+8 -2)
📝 tests/test_automap_base_models.py (+4 -10)
📝 tests/test_extended_functionality.py (+4 -7)
📝 tests/test_sandman2.py (+156 -97)
📝 tests/test_user_models.py (+37 -51)

📄 Description

Support less than, greater than, like and other operators, using query
parameters of the format "field__operator=value". Based on
https://github.com/jeffknupp/sandman/pull/115.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jeffknupp/sandman2/pull/6 **Author:** [@jmcarp](https://github.com/jmcarp) **Created:** 8/10/2015 **Status:** ❌ Closed **Base:** `master` ← **Head:** `add-operators` --- ### 📝 Commits (8) - [`188d7fb`](https://github.com/jeffknupp/sandman2/commit/188d7fb92a61a4cf7e716917fb3ae9cb36c07769) Fix failing admin test. - [`59d3cad`](https://github.com/jeffknupp/sandman2/commit/59d3cad1549c30c289a018262ae5c86887aaa45b) Install on Travis with setuptools. - [`6dd763a`](https://github.com/jeffknupp/sandman2/commit/6dd763a636099fec508d418fbdec6c5e74480ca8) Add query operators. - [`91fad8f`](https://github.com/jeffknupp/sandman2/commit/91fad8f6dd8494e903e445a9ab0a364b666b15f0) Add not equal operator. - [`72cd4e2`](https://github.com/jeffknupp/sandman2/commit/72cd4e2da7cc35b385a56c0f2ee09fbcde8cd505) Handle filtering on repeated query parameters. - [`3ca05c2`](https://github.com/jeffknupp/sandman2/commit/3ca05c2c8c38b7a95f41b27fcc948929691cb4f2) Test case insensitive setting. - [`f6bc4ca`](https://github.com/jeffknupp/sandman2/commit/f6bc4cade9a1e802aabb4a828fc97581285ea805) Allow custom query delimiters. - [`ecf5829`](https://github.com/jeffknupp/sandman2/commit/ecf5829044990221cfcc20510f679cec4cda252e) Use WebTest for more concise tests. ### 📊 Changes **12 files changed** (+376 additions, -185 deletions) <details> <summary>View changed files</summary> 📝 `.travis.yml` (+9 -10) 📝 `requirements.txt` (+3 -0) ➕ `sandman2/operators.py` (+114 -0) 📝 `sandman2/service.py` (+17 -4) ➕ `sandman2/utils.py` (+15 -0) 📝 `setup.py` (+3 -1) 📝 `tests/automap_models.py` (+6 -3) 📝 `tests/conftest.py` (+8 -2) 📝 `tests/test_automap_base_models.py` (+4 -10) 📝 `tests/test_extended_functionality.py` (+4 -7) 📝 `tests/test_sandman2.py` (+156 -97) 📝 `tests/test_user_models.py` (+37 -51) </details> ### 📄 Description Support less than, greater than, like and other operators, using query parameters of the format "field__operator=value". Based on https://github.com/jeffknupp/sandman/pull/115. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 01:33:12 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/sandman2-jeffknupp#97
No description provided.