Skip to content

Commit 79d65a5

Browse files
authored
Merge pull request #34 from PandaTechAM/development
For encripted data returned empty result if no filter is given
2 parents 5c48ab3 + c4f5cc7 commit 79d65a5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/GridifyExtensions/Extensions/QueryableExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public static async Task<PagedResponse<object>> ColumnDistinctValuesAsync<TEntit
118118
.Select(CreateSelector<TEntity>(model.PropertyName))
119119
.FirstOrDefaultAsync(cancellationToken);
120120

121-
if (item is null)
121+
if (item is null || model.Filter is null)
122122
{
123123
return new PagedResponse<object>([], 1, 1, 0);
124124
}
@@ -154,7 +154,7 @@ public static async Task<CursoredResponse<object>> ColumnDistinctValuesAsync<TEn
154154
.Select(CreateSelector<TEntity>(model.PropertyName))
155155
.FirstOrDefaultAsync(cancellationToken);
156156

157-
if (item is null)
157+
if (item is null || model.Filter is null)
158158
{
159159
return new CursoredResponse<object>([], model.PageSize);
160160
}

src/GridifyExtensions/GridifyExtensions.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
<PackageReadmeFile>Readme.md</PackageReadmeFile>
99
<Authors>Pandatech</Authors>
1010
<Copyright>MIT</Copyright>
11-
<Version>1.6.2</Version>
11+
<Version>1.6.3</Version>
1212
<PackageId>Pandatech.GridifyExtensions</PackageId>
1313
<Title>Pandatech.Gridify.Extensions</Title>
1414
<PackageTags>Pandatech, library, Gridify, Pagination, Filters</PackageTags>
1515
<Description>Pandatech.Gridify.Extensions simplifies and extends the functionality of the Gridify NuGet package. It provides additional extension methods and functionality to streamline data filtering and pagination, making it more intuitive and powerful to use in .NET applications. Our enhancements ensure more flexibility, reduce boilerplate code, and improve overall developer productivity when working with Gridify.</Description>
1616
<RepositoryUrl>https://github.com/PandaTechAM/be-lib-gridify-extensions</RepositoryUrl>
17-
<PackageReleaseNotes>Bug fix on query model</PackageReleaseNotes>
17+
<PackageReleaseNotes>For encripted data returned empty result if no filter is given</PackageReleaseNotes>
1818
</PropertyGroup>
1919

2020
<ItemGroup>

0 commit comments

Comments
 (0)