Skip to content

Add pagination and fix search to doctor review #24

Add pagination and fix search to doctor review

Add pagination and fix search to doctor review #24

Triggered via pull request June 29, 2024 11:42
Status Failure
Total duration 32s
Artifacts

dotnet.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 10 warnings
build: CheckDrive.Web/CheckDrive.Web/Controllers/MechanicAcceptancesController.cs#L287
There is no argument given that corresponds to the required parameter 'roleId' of 'IOperatorReviewDataStore.GetOperatorReviews(int?, string?, DateTime?, int?)'
build: CheckDrive.Web/CheckDrive.Web/Controllers/MechanicAcceptancesController.cs#L287
There is no argument given that corresponds to the required parameter 'roleId' of 'IOperatorReviewDataStore.GetOperatorReviews(int?, string?, DateTime?, int?)'
build
Process completed with exit code 1.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorsController.cs#L22
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L41
Possible null reference argument for parameter 'source' in 'IEnumerable<<anonymous type: int Id, string OperatorName, string DriverName, double? OilAmount, DateTime? Date, string Comments, string Status>> Enumerable.Select<OperatorReviewDto, <anonymous type: int Id, string OperatorName, string DriverName, double? OilAmount, DateTime? Date, string Comments, string Status>>(IEnumerable<OperatorReviewDto> source, Func<OperatorReviewDto, <anonymous type: int Id, string OperatorName, string DriverName, double? OilAmount, DateTime? Date, string Comments, string Status>> selector)'.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L93
Possible null reference argument for parameter 'source' in 'OperatorDto? Enumerable.FirstOrDefault<OperatorDto>(IEnumerable<OperatorDto> source)'.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L97
Dereference of a possibly null reference.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L104
Possible null reference argument for parameter 'source' in 'IEnumerable<MechanicHandoverDto> Enumerable.Where<MechanicHandoverDto>(IEnumerable<MechanicHandoverDto> source, Func<MechanicHandoverDto, bool> predicate)'.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L109
Possible null reference argument for parameter 'source' in 'IEnumerable<OperatorReviewDto> Enumerable.Where<OperatorReviewDto>(IEnumerable<OperatorReviewDto> source, Func<OperatorReviewDto, bool> predicate)'.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L168
Possible null reference argument for parameter 'source' in 'MechanicHandoverDto? Enumerable.FirstOrDefault<MechanicHandoverDto>(IEnumerable<MechanicHandoverDto> source, Func<MechanicHandoverDto, bool> predicate)'.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L222
Possible null reference argument for parameter 'source' in 'IEnumerable<OilMarksForDto?> Enumerable.Select<OperatorReviewDto, OilMarksForDto?>(IEnumerable<OperatorReviewDto> source, Func<OperatorReviewDto, OilMarksForDto?> selector)'.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L299
Possible null reference argument for parameter 'source' in 'IEnumerable<SelectListItem> Enumerable.Select<DriverDto, SelectListItem>(IEnumerable<DriverDto> source, Func<DriverDto, SelectListItem> selector)'.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L312
Possible null reference argument for parameter 'source' in 'IEnumerable<SelectListItem> Enumerable.Select<OperatorDto, SelectListItem>(IEnumerable<OperatorDto> source, Func<OperatorDto, SelectListItem> selector)'.