Skip to content

Fix crash when getting measurements #193

Fix crash when getting measurements

Fix crash when getting measurements #193

Triggered via pull request December 7, 2023 08:16
Status Success
Total duration 2m 46s
Artifacts 3

main.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

12 warnings
build (ubuntu-latest): CentralHub.Api/Services/LocalizationService.cs#L107
Change return type of method 'FilterMeasurements' from 'System.Collections.Generic.IEnumerable<CentralHub.Api.Model.Measurement>' to 'System.Collections.Generic.Dictionary<CentralHub.Api.Services.LocalizationService.FilterCriteria, CentralHub.Api.Model.Measurement>.ValueCollection' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
build (ubuntu-latest): CentralHub.WebUI/Data/TrackerService.cs#L34
Possible null reference argument for parameter 'source' in 'Tracker[] Enumerable.ToArray<Tracker>(IEnumerable<Tracker> source)'.
build (ubuntu-latest): CentralHub.Api/Services/LocalizationService.cs#L107
Change return type of method 'FilterMeasurements' from 'System.Collections.Generic.IEnumerable<CentralHub.Api.Model.Measurement>' to 'System.Collections.Generic.Dictionary<CentralHub.Api.Services.LocalizationService.FilterCriteria, CentralHub.Api.Model.Measurement>.ValueCollection' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
build (ubuntu-latest): CentralHub.WebUI/Data/TrackerService.cs#L34
Possible null reference argument for parameter 'source' in 'Tracker[] Enumerable.ToArray<Tracker>(IEnumerable<Tracker> source)'.
build (macos-latest): CentralHub.Api/Services/LocalizationService.cs#L107
Change return type of method 'FilterMeasurements' from 'System.Collections.Generic.IEnumerable<CentralHub.Api.Model.Measurement>' to 'System.Collections.Generic.Dictionary<CentralHub.Api.Services.LocalizationService.FilterCriteria, CentralHub.Api.Model.Measurement>.ValueCollection' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
build (macos-latest): CentralHub.WebUI/Data/TrackerService.cs#L34
Possible null reference argument for parameter 'source' in 'Tracker[] Enumerable.ToArray<Tracker>(IEnumerable<Tracker> source)'.
build (macos-latest): CentralHub.Api/Services/LocalizationService.cs#L107
Change return type of method 'FilterMeasurements' from 'System.Collections.Generic.IEnumerable<CentralHub.Api.Model.Measurement>' to 'System.Collections.Generic.Dictionary<CentralHub.Api.Services.LocalizationService.FilterCriteria, CentralHub.Api.Model.Measurement>.ValueCollection' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
build (macos-latest): CentralHub.WebUI/Data/TrackerService.cs#L34
Possible null reference argument for parameter 'source' in 'Tracker[] Enumerable.ToArray<Tracker>(IEnumerable<Tracker> source)'.
build (windows-latest): CentralHub.Api/Services/LocalizationService.cs#L107
Change return type of method 'FilterMeasurements' from 'System.Collections.Generic.IEnumerable<CentralHub.Api.Model.Measurement>' to 'System.Collections.Generic.Dictionary<CentralHub.Api.Services.LocalizationService.FilterCriteria, CentralHub.Api.Model.Measurement>.ValueCollection' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
build (windows-latest): CentralHub.WebUI/Data/TrackerService.cs#L34
Possible null reference argument for parameter 'source' in 'Tracker[] Enumerable.ToArray<Tracker>(IEnumerable<Tracker> source)'.
build (windows-latest): CentralHub.Api/Services/LocalizationService.cs#L107
Change return type of method 'FilterMeasurements' from 'System.Collections.Generic.IEnumerable<CentralHub.Api.Model.Measurement>' to 'System.Collections.Generic.Dictionary<CentralHub.Api.Services.LocalizationService.FilterCriteria, CentralHub.Api.Model.Measurement>.ValueCollection' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
build (windows-latest): CentralHub.WebUI/Data/TrackerService.cs#L34
Possible null reference argument for parameter 'source' in 'Tracker[] Enumerable.ToArray<Tracker>(IEnumerable<Tracker> source)'.

Artifacts

Produced during runtime
Name Size
Build macos-latest Expired
70.6 MB
Build ubuntu-latest Expired
72.7 MB
Build windows-latest Expired
70.8 MB