Skip to content
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

Add Filters #357

Merged
merged 90 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
ac57fd4
Enable sorting when batching is enabled
PaulSchweizer Jul 23, 2022
6417061
Deprecate UnsortedSQLAlchemyConnectionField and resetting Relationshi…
PaulSchweizer Jul 31, 2022
535afbe
Use field_name instead of column.key to build sort enum names to ensu…
PaulSchweizer Jul 31, 2022
b91fede
Adjust batching test to honor different selet in query structure in s…
PaulSchweizer Aug 6, 2022
5b8d068
add filter tests for discussion
sabard Jul 25, 2022
861613e
add typing for custom filter
sabard Aug 2, 2022
1f47f92
update 1:n and n:m filter tests to use RelationshipFilter syntax
sabard Aug 2, 2022
e0cd465
add models and mark tests to fail
sabard Aug 2, 2022
32254b6
make filter tests run
sabard Aug 2, 2022
172985c
Added draft methods & classes for filter registry
erikwrede Aug 11, 2022
6319278
Drafted abstract filters, generation of filter fields from methods.
erikwrede Aug 11, 2022
69680a9
Prototype: Filter Schema generation
erikwrede Aug 12, 2022
c31bbac
use re sub instead of removesuffix for python<3.9 support
sabard Aug 12, 2022
f532857
fix syntax for python<3.9 support
sabard Aug 12, 2022
7e2bf6e
field-level filtering working for equals and not equals
sabard Aug 12, 2022
b21e449
Made filter query generation modular & fix flake8
erikwrede Aug 13, 2022
4fbbe81
Fixed variable name in execute_filters
erikwrede Aug 13, 2022
675a264
Drafted :1 and :many relationship filter construction
erikwrede Aug 13, 2022
60bfd3b
Prototype: :1 relationship filtering is working
erikwrede Aug 13, 2022
a30d77d
error on simple filter test
sabard Aug 16, 2022
fcce1f7
get simple and 1:1 filter tests passing
sabard Oct 5, 2022
4862737
fix a couple errors to get basic, incomplete 1:n test working
sabard Oct 24, 2022
15cfbd7
revert scalar_subquery to as_scalar for sqlalchemy<1.4 tests
sabard Oct 24, 2022
122d182
initial implementation of and/or logic
sabard Nov 21, 2022
11f7d91
revert filter logic so 1:n test passes
sabard Nov 21, 2022
c187c11
replicated tox error in CI
sabard Nov 21, 2022
6263540
partial: support custom filter fields, custom types of filter inputs
erikwrede Dec 1, 2022
4c7efb8
chore: add missing workflow setting
erikwrede Dec 1, 2022
c16ccf6
chore: change workflows back to the original setting
erikwrede Dec 1, 2022
9b86332
fix: 3.7 type hints
erikwrede Dec 1, 2022
ae28fe6
fix: relationship contains filters for n:m working
erikwrede Dec 19, 2022
d334593
test: add nested filter test and reverse relationship tests
sabard Dec 19, 2022
a4621e2
fix: chain or/and in contains
sabard Dec 19, 2022
0f34c05
test: try filtering ids on each containsExactly subquery
sabard Jan 1, 2023
7f7e98a
test: working group_by/having clause for specific case
sabard Jan 1, 2023
98db652
fix: group_by/having working for all tests but containsExactly 2
sabard Jan 1, 2023
ca1b498
chore: remove some debugging statements
sabard Jan 2, 2023
8f012f4
test: cover additional filter types
sabard Jan 2, 2023
14c657c
fix: use notin_
sabard Jan 2, 2023
2e321e9
chore: prepare for sqlalchemy2.0 adjustments
erikwrede Dec 4, 2022
e4b1a7f
update envlist for tox,reduce number of python versions
erikwrede Dec 4, 2022
812b28b
fix: set sqlalchemy max version to 2.1
erikwrede Dec 4, 2022
7288117
fix: all unit tests running
erikwrede Jan 2, 2023
e562cc2
fix: corrected sql version check for batching
erikwrede Jan 2, 2023
e525a8d
fix: added pragma no cover to version checks
erikwrede Jan 2, 2023
b84aa9f
chore: test with all python versions
erikwrede Jan 2, 2023
b832fff
wip: test: add hybrid_prop tests
sabard Jan 2, 2023
5fc1be3
test: fix hybrid_prop converter test
sabard Jan 3, 2023
156fb68
test: fix hybrid_prop test by using string typevars
sabard Jan 3, 2023
5d81991
test: revert test models
sabard Jan 5, 2023
b5c9054
Merge branch 'master' into add-filters
sabard Jan 9, 2023
ec62082
fix: filters support interfaces with BaseType
sabard Jan 16, 2023
b88280d
test: fix basic tests for async
sabard Jan 16, 2023
8e45a3a
fix: remove print statements
sabard Jan 16, 2023
ca23083
Merge branch 'master' into add-filters
sabard Jan 16, 2023
2495448
chore: cleanup
sabard Jan 16, 2023
f37dd8b
fix: make converter tests work
sabard Jan 16, 2023
5942291
fix: revert ci
sabard Jan 16, 2023
acfd97d
Merge branch 'master' into add-filters
erikwrede Jan 27, 2023
ace0aba
add initial filter docs
sabard Feb 13, 2023
fa0eecc
fix: typo
sabard Feb 13, 2023
3db7411
fix: test nits
sabard Feb 15, 2023
5662015
add basic filter example app
sabard Feb 27, 2023
9e8f1a5
add like methods to StringFilter
sabard Feb 27, 2023
d2360a1
raise errors in filters tests
sabard Feb 28, 2023
589c7d7
remove contains_exactly logic
sabard Mar 27, 2023
68194cc
Merge branch 'master' into add-filters
sabard Apr 10, 2023
48b1c6c
fix lint
sabard Apr 10, 2023
cab376a
fix: sqla 1.4 async filter tests passing with distinct
sabard Apr 24, 2023
db9f794
cleanup: automatically register field filters
sabard Apr 24, 2023
21eba2e
fix: convert type vars in converter.py
erikwrede Apr 24, 2023
39834ed
chore: fix review comments
erikwrede May 14, 2023
a9915d6
chore: update dependencies and fix test
erikwrede May 14, 2023
4712e10
chore: update sqa-utils fix
erikwrede May 14, 2023
cf0ba76
Merge branch 'master' into sqa-2.0
erikwrede May 14, 2023
a0abf8a
fix: adjust test after sqlalchemy 2.0 update
erikwrede May 14, 2023
474f6fa
Merge branch 'sqa-2.0' into add-filters
erikwrede May 31, 2023
1052b52
fix: keep aliases during and + or filtering
erikwrede Jun 4, 2023
0fb1db3
chore: make flake8 happy
erikwrede Jun 4, 2023
87bbd6f
test: breaking tests on enums
sabard Jun 5, 2023
06c90cb
fix: create special enum filters. Code pending refactor.
erikwrede Jul 28, 2023
4e34a79
fix: use typing extensions
erikwrede Jul 28, 2023
c38ebb3
refactor: cleanup filter type generation
erikwrede Oct 6, 2023
064adc7
feat(filters): support filter aliasing (PR #378)
erikwrede Oct 6, 2023
1aef748
chore: remove print statements
erikwrede Oct 6, 2023
18a7c54
chore: move base filter creation
erikwrede Oct 6, 2023
4063ea6
Merge branch 'master' into add-filters
erikwrede Oct 6, 2023
a2b8a9b
chore: run pre commit on PR (hook update due to incompatible hooks wi…
erikwrede Oct 6, 2023
ad9c1aa
Merge branch 'master' into add-filters
erikwrede Nov 20, 2023
e698d7c
chore: fix newly added merge conflict due to association proxies
erikwrede Dec 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update envlist for tox,reduce number of python versions
  • Loading branch information
erikwrede committed Jan 2, 2023
commit e4b1a7f08bfd23cba56e2f456a15e0e651ba8488
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
max-parallel: 10
matrix:
sql-alchemy: [ "1.2", "1.3", "1.4", "2.0" ]
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
python-version: ["3.9", "3.10" ]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = pre-commit,py{37,38,39,310}-sql{12,13,14}
envlist = pre-commit,py{37,38,39,310}-sql{12,13,14,20}
skipsdist = true
minversion = 3.7.0

Expand Down