Standardizes boolean naming across the stack

This commit is contained in:
BinaryAlley committed 2026-09-26 10:12:12 +03:00
1 parent 6bd0cf6d42
commit 37dff6039d
78 files changed
+252 -252

No files matched your search

@@ -27,9 +27,9 @@ public interface IGetAllLiteRepositoryAction<TModel, TLiteRow> where TModel : IS
/// <param name="sortBy">The name of the field by which to sort the results.</param>
/// <param name="sortOrder">The direction in which to sort the results.</param>
/// <param name="filterModel">The model containing the parameters used to filter the results.</param>
/// <param name="includeNavigationProperties">Whether the navigation properties of the entities should be loaded together with the entities themselves. Pass <see langword="false"/> to retrieve only the data stored directly on the entity rows.</param>
/// <param name="shouldIncludeNavigationProperties">Whether the navigation properties of the entities should be loaded together with the entities themselves. Pass <see langword="false"/> to retrieve only the data stored directly on the entity rows.</param>
/// <param name="shouldTrackEntities">Whether the retrieved entities should be tracked by the persistence medium, so that changes to them can be saved. Pass <see langword="false"/> for read-only scenarios, to avoid the tracking overhead.</param>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
/// <returns>An <see cref="Result{TValue}"/> containing either a paginated result of type <typeparamref name="TLiteRow"/>, or an error.</returns>
Task<Result<PaginatedResultDto<TLiteRow>>> GetAllLiteAsync<TFilter>(PaginationDataDto? paginationData = null, string? sortBy = null, SortOrder? sortOrder = null, TFilter? filterModel = null, bool includeNavigationProperties = false, bool shouldTrackEntities = false, CancellationToken cancellationToken = default) where TFilter : BaseFilterDto;
Task<Result<PaginatedResultDto<TLiteRow>>> GetAllLiteAsync<TFilter>(PaginationDataDto? paginationData = null, string? sortBy = null, SortOrder? sortOrder = null, TFilter? filterModel = null, bool shouldIncludeNavigationProperties = false, bool shouldTrackEntities = false, CancellationToken cancellationToken = default) where TFilter : BaseFilterDto;
}
@@ -17,6 +17,6 @@ public static class GetDirectoriesRequestMapping
/// <returns>The converted query.</returns>
public static GetDirectoriesQuery ToQuery(this GetDirectoriesRequest request)
{
return new GetDirectoriesQuery(request.Path, request.IncludeHiddenElements);
return new GetDirectoriesQuery(request.Path, request.ShouldIncludeHiddenElements);
}
}
@@ -17,6 +17,6 @@ public static class GetFilesRequestMapping
/// <returns>The converted query.</returns>
public static GetFilesQuery ToQuery(this GetFilesRequest request)
{
return new GetFilesQuery(request.Path, request.IncludeHiddenElements);
return new GetFilesQuery(request.Path, request.ShouldIncludeHiddenElements);
}
}
@@ -17,6 +17,6 @@ public static class GetTreeFilesRequestMapping
/// <returns>The converted query.</returns>
public static GetTreeFilesQuery ToQuery(this GetTreeFilesRequest request)
{
return new GetTreeFilesQuery(request.Path, request.IncludeHiddenElements);
return new GetTreeFilesQuery(request.Path, request.ShouldIncludeHiddenElements);
}
}
@@ -19,7 +19,7 @@ public static class CheckPathExistsRequestMapping
{
return new CheckPathExistsQuery(
request.Path,
request.IncludeHiddenElements
request.ShouldIncludeHiddenElements
);
}
}
@@ -9,9 +9,9 @@ namespace Lumina.Application.Core.FileSystemManagement.Directories.Queries.GetDi
/// Query for retrieving the list of directories at a path.
/// </summary>
/// <param name="Path">The path for which to retrieve the list of directories.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden directories or not.</param>
/// <param name="ShouldIncludeHiddenElements">Whether to include hidden directories or not.</param>
[DebuggerDisplay("Path: {Path}")]
public record GetDirectoriesQuery(
string? Path,
bool IncludeHiddenElements
bool ShouldIncludeHiddenElements
) : IQuery;
@@ -46,7 +46,7 @@ public class GetDirectoriesQueryHandler : IQueryHandler<GetDirectoriesQuery, Res
if (validationResult.Count > 0)
return Task.FromResult<Result<IEnumerable<DirectoryResponse>>>(validationResult);
Result<IEnumerable<Directory>> getSubdirectoriesResult = _directoryService.GetSubdirectories(query.Path!, query.IncludeHiddenElements);
Result<IEnumerable<Directory>> getSubdirectoriesResult = _directoryService.GetSubdirectories(query.Path!, query.ShouldIncludeHiddenElements);
return Task.FromResult(getSubdirectoriesResult.Match(values => Result.From(values.ToResponses()), errors => errors));
}
}
@@ -9,9 +9,9 @@ namespace Lumina.Application.Core.FileSystemManagement.Files.Queries.GetFiles;
/// Query for retrieving the list of files at a path.
/// </summary>
/// <param name="Path">The path for which to retrieve the list of files.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden files and directories or not.</param>
/// <param name="ShouldIncludeHiddenElements">Whether to include hidden files and directories or not.</param>
[DebuggerDisplay("Path: {Path}")]
public record GetFilesQuery(
string? Path,
bool IncludeHiddenElements
bool ShouldIncludeHiddenElements
) : IQuery;
@@ -46,7 +46,7 @@ public class GetFilesQueryHandler : IQueryHandler<GetFilesQuery, Result<IEnumera
if (validationResult.Count > 0)
return Task.FromResult<Result<IEnumerable<FileResponse>>>(validationResult);
Result<IEnumerable<File>> getFilesResult = _fileService.GetFiles(query.Path!, query.IncludeHiddenElements);
Result<IEnumerable<File>> getFilesResult = _fileService.GetFiles(query.Path!, query.ShouldIncludeHiddenElements);
return Task.FromResult(getFilesResult.Match(values => Result.From(values.ToResponses()), errors => errors));
}
}
@@ -9,9 +9,9 @@ namespace Lumina.Application.Core.FileSystemManagement.Files.Queries.GetTreeFile
/// Query for retrieving the list of files at a path.
/// </summary>
/// <param name="Path">The path for which to retrieve the list of files.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden files and directories or not.</param>
/// <param name="ShouldIncludeHiddenElements">Whether to include hidden files and directories or not.</param>
[DebuggerDisplay("Path: {Path}")]
public record GetTreeFilesQuery(
string? Path,
bool IncludeHiddenElements
bool ShouldIncludeHiddenElements
) : IQuery;
@@ -46,7 +46,7 @@ public class GetTreeFilesQueryHandler : IQueryHandler<GetTreeFilesQuery, Result<
if (validationResult.Count > 0)
return Task.FromResult<Result<IEnumerable<FileSystemTreeNodeResponse>>>(validationResult);
Result<IEnumerable<File>> getFilesResult = _fileService.GetFiles(query.Path!, query.IncludeHiddenElements);
Result<IEnumerable<File>> getFilesResult = _fileService.GetFiles(query.Path!, query.ShouldIncludeHiddenElements);
return Task.FromResult(getFilesResult.Match(values => Result.From(values.ToFileSystemTreeNodeResponses()), errors => errors));
}
}
@@ -9,9 +9,9 @@ namespace Lumina.Application.Core.FileSystemManagement.Paths.Queries.CheckPathEx
/// Query for checking the existence of a file system path.
/// </summary>
/// <param name="Path">The path for which to check the existence of.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not.</param>
[DebuggerDisplay("Path: {Path}, IncludeHiddenElements: {IncludeHiddenElements}")]
/// <param name="ShouldIncludeHiddenElements">Whether to include hidden file system elements or not.</param>
[DebuggerDisplay("Path: {Path}, ShouldIncludeHiddenElements: {ShouldIncludeHiddenElements}")]
public record CheckPathExistsQuery(
string? Path,
bool IncludeHiddenElements
bool ShouldIncludeHiddenElements
) : IQuery;
@@ -44,6 +44,6 @@ public class CheckPathExistsQueryHandler : IQueryHandler<CheckPathExistsQuery, R
if (validationResult.Count > 0)
return Task.FromResult<Result<PathExistsResponse>>(validationResult);
return Task.FromResult(Result.From(new PathExistsResponse(_pathService.Exists(query.Path!, query.IncludeHiddenElements))));
return Task.FromResult(Result.From(new PathExistsResponse(_pathService.Exists(query.Path!, query.ShouldIncludeHiddenElements))));
}
}