Commit Graph

202 Commits

Author SHA1 Message Date
AnasZakarneh
aaedf7a684
stop excluding null values when filtering using notEqual (#114)
* stop excluding null values when filtering using notEqual
* add IgnoreNullsOnNotEqual config field, to enable/disable the new feature

Co-authored-by: AnasZakarneh <a.zakarneh@foothillsolutions.com>
2021-05-24 19:24:18 +02:00
ITDancer13
7542ec0fbf
Make ApplyFiltering, ApplySorting and ApplyPagination protected virtual #139 (#144) 2021-05-17 07:58:42 +02:00
alicak
ec6c310bf1
pass filter values as parameters (#112)
make GetClosureOverConstant really work
2021-05-17 07:51:37 +02:00
Hasan Manzak
7a48ba8d61
reverting fix (#142)
* Revert to _mapper assignment in constructor.

* reverting fix
2021-05-16 18:42:41 +02:00
Hasan Manzak
cc9c2b0a9a
Revert to _mapper assignment in constructor. (#140) 2021-05-16 18:20:16 +03:00
Hasan Manzak
a5b9e5757e
SieveProcessor.Options made protected property (#134)
Mapper assignment in constructor is moved to a null-coalescing member pair (a field and a property)
"IncludeScopes" switch is removed from appSettings.{env}.json files
2021-05-15 20:57:18 +03:00
Clayton Andersen
285468522c
#80 added support for escaping pipe control characters (#113)
* #80 added support for escaping comma and pipe control characters

* Update SieveModel.cs

Fix build. Accidentally broken by resolving conflicts.

* Migrate UnitTests to xUnit

Co-authored-by: Clayton Andersen <candersen@restaurant365.com>
Co-authored-by: ITDancer13 <kevin@ksommer.eu>
Co-authored-by: ITDancer139 <kevinitdancersommer@gmail.com>
2021-05-15 14:50:12 +03:00
Keivn Sommer
7ced211758 Setup release 2.5.0 with automated build and pre-releases 2021-05-15 01:13:47 +02:00
Keivn Sommer
20c264be58 Clear GitVersion.yml 2021-05-14 22:50:34 +02:00
ITDancer139
6607d95c14 Update LICENSE 2021-05-14 18:43:41 +02:00
ITDancer13
108f20f956
Merge pull request #127 from Biarity/fix-pipeline
Trigger GitAction on pull requests
2021-05-14 13:46:45 +02:00
Kevin Sommer
bbfdb47de2 * Execute pipeline on pull requests
* Restore and build before running the tests
2021-05-14 11:35:39 +02:00
Biarity
d513b108ba
Merge pull request #126 from Biarity/sieve-3-based-on-pagr-fork
Merge changes from Pagr fork and prepare CI / CD
2021-05-14 09:09:37 +00:00
ITDancer139
871d80bc52 Add GitHubActions 2021-05-13 14:37:43 +02:00
ITDancer139
3e858fd7e6 Update Authors 2021-05-13 14:28:50 +02:00
ITDancer139
a193de422b fix authors 2021-05-13 14:27:27 +02:00
ITDancer139
b791c73dd5 * Update license 2021-05-13 14:22:16 +02:00
ITDancer139
95282baecf * Add build pipeline based on nuke 2021-05-13 14:15:27 +02:00
ITDancer139
428acd7558 * Migrate tests to xunit
* Update sample project to dotnetcore3.1
* Use Sqlite in sample project to run it everywhere
* Fix: Filter with escaped comma
* Fix: Filter "null" does not work with Contains or StartsWith
* Code cleanup: Adjust namespaces, adjust usings
2021-05-13 14:04:18 +02:00
Ashish Patel
18eedf2e1a
Merge pull request #116 from TilmannBach/master
fix: AND operator uses wrong bitwise operator instead of AndAlso expression
2021-03-21 00:37:52 +05:30
Tilmann Bach
11938c9b8a fix(processor): fixes OR combination from bitwise or to sql query OR
fixes #101
2021-02-13 13:19:57 +01:00
Tilmann Bach
cbf6759274 fix(processor): fixes AND expression when combining multiple conditions via outer expression
fixes #115, ref #101
2021-02-13 13:16:00 +01:00
Ashish Patel
803055029e
Merge pull request #98 from hasanmanzak/master
OrderByDynamic is modified to be able to handle inherited members...
2020-12-18 13:32:30 +05:30
Hasan
a4509bb8f0
OrderByDynamic is modified to be able to handle inherited members, such as interface members.
SieveProcessor is modified to pass propertyInfo to OrderByDynamic to avoid reattainment of propertyInfo required in Expression.MakeMemberAccess.
SieveProcessor is modified to be able to handle possible multiple incompatible customMethods via AggregateException.
Corresponding interfaces are generated for entities with related inheritance.
ApplicationSieveProcessor is modified to include interface members.
SieveCustomFilterMethods and SieveCustomSortMethod are modified to include interface related custom method modifications.
Interface accessed unit tests are added.
2020-11-03 12:42:41 +03:00
Ashish Patel
51b5356ec7
Merge pull request #96 from kevindost/feature/filter-on-nulls
Add filtering on null.
2020-10-23 23:39:54 +05:30
Kevin Dost
f39944d0e4 Add filtering on null. 2020-10-23 18:15:58 +02:00
Ashish Patel
b47ed62f77
Merge pull request #95 from kevindost/fix/accessing-null-members
Fix issue where sorting or filtering a collection fails on accesssing null members.
2020-10-23 02:00:48 +05:30
Kevin Dost
b8f92bccfc Add unit tests for filtering and sorting null members. 2020-10-22 22:21:05 +02:00
Ashish Patel
cada68a83b
Merge pull request #89 from awegg/master
Fix issue with spaces after comma and or filters
2020-10-23 00:43:05 +05:30
Ashish Patel
9bbc09898e
Merge pull request #90 from awegg/fix_filter_ordering
Fix issue where the order of Filter expressions changed the result.
2020-10-23 00:28:14 +05:30
Kevin Dost
7a24bc8f27 Fix grammar errors 2020-10-21 18:51:15 +02:00
Kevin Dost
5c2ef3773e Fix issue where sorting or filtering a collection fails on accesssing null members. 2020-10-21 17:50:03 +02:00
Alexander Weggerle
4cac27c22d Fix issue where the order of Filter expressions changed the result.
The following filter criteria should result in the same output, but
does not:
"CategoryId==1,(CategoryId|LikeCount)==50"
"(CategoryId|LikeCount)==50,CategoryId==1"

Cause is an optimization which removes or statements if one term
was already added in another statement. This optimization causes
a wrong result.
2020-07-06 22:03:45 +02:00
Alexander Weggerle
6684524fcd Fix issue with spaces after comma and or filters
Combined filters separated with comma and a space resulted in an error. 
Example: 
Title==D, (Title|LikeCount)==3
Caused the error: "(Title not found"

Extended regex to allow whitespaces after the comma as documented.
2020-07-04 21:16:54 +02:00
Biarity
d86e35f77c v2.3.3 2019-11-17 09:15:07 +10:00
Biarity
0dae8c8beb Merge branch 'master' of https://github.com/Biarity/Sieve 2019-11-17 08:58:12 +10:00
Biarity
6652ada702 Style fixes 2019-11-17 08:51:13 +10:00
Biarity
0637912098
Merge pull request #63 from janverley/master
Only Skip when pageSize > 0
2019-11-16 10:56:04 +10:00
Biarity
c04d94d22a
Merge pull request #60 from skolmer/generics
Added support for generic filter and sort methods
2019-11-16 10:55:18 +10:00
Biarity
ee10db4baa
Merge pull request #74 from skolmer/caseinsensitive-unequal
Case insensitive not-equal operator
2019-11-06 09:04:42 +10:00
Steffen Kolmer
cfd380d93f Allow case insensitive not equals operator 2019-11-05 15:10:44 +01:00
Steffen Kolmer
a643b29491
Merge pull request #1 from Biarity/master
Update master
2019-11-05 15:01:00 +01:00
Biarity
1dc9e7b783
Delete FUNDING.yml 2019-10-27 17:37:19 +10:00
Biarity
5be798ded0
Create FUNDING.yml 2019-10-27 17:28:17 +10:00
Jan Verley
567cd67c7f Only Skip when pageSize > 0 2019-05-09 11:29:39 +02:00
Biarity
9f6163d318
Merge pull request #59 from BrendanLouis1223/patch-1
fix: dont process when filterTerm.Values is null
2019-04-14 08:50:34 +10:00
Steffen Kolmer
e1bb069253 Added support for generic filter and sort methods 2019-03-24 19:45:23 +01:00
Brendan
dcde97af91
fix: dont process when filterTerm.Values is null 2019-03-20 14:04:33 -04:00
Biarity
a582c6be06 Use Comment.Text instead of ValueObjects.Name 2019-03-18 08:23:37 +10:00
Biarity
d4b85b6bbc
Merge pull request #54 from radeanurazvan/master
Allowed configuring properties with identical name & type
2019-03-18 08:04:49 +10:00