-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scheduler and plannings management #3247
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3247 +/- ##
==========================================
+ Coverage 83.12% 84.70% +1.57%
==========================================
Files 327 328 +1
Lines 12428 12525 +97
Branches 980 993 +13
==========================================
+ Hits 10331 10609 +278
+ Misses 1807 1606 -201
- Partials 290 310 +20 ☔ View full report in Codecov by Sentry. |
foreach (var layer in Layers.Where(layer => layer.Planning == planningId)) | ||
{ | ||
var updatedLayer = FindLayer(layer.Id); | ||
updatedLayer.Planning = null; | ||
await LayerClientService.UpdateLayer(updatedLayer); | ||
} |
Check notice
Code scanning / CodeQL
Missed opportunity to use Select Note
maps its iteration variable to another variable
src/IoTHub.Portal.Infrastructure/Jobs/SendPlanningCommandJob.cs
Dismissed
Show dismissed
Hide dismissed
foreach (var schedule in schedules) | ||
{ | ||
// Add schedules to the planning | ||
if (schedule.PlanningId == planningCommand.planningId) addSchedule(schedule, planningCommand); | ||
} |
Check notice
Code scanning / CodeQL
Missed opportunity to use Where Note
implicitly filters its target sequence
|
||
var mockScheduleList = Fixture.CreateMany<ScheduleDto>(2).ToList(); | ||
|
||
var deviceModels = Fixture.CreateMany<DeviceModelDto>(2).ToList(); |
Check warning
Code scanning / CodeQL
Useless assignment to local variable Warning
deviceModels
var expectedPaginatedDeviceModels = new PaginationResult<DeviceModelDto>() | ||
{ | ||
Items = mockDeviceModel.ToList(), | ||
TotalItems = mockDeviceModel.Count | ||
}; |
Check warning
Code scanning / CodeQL
Useless assignment to local variable Warning
expectedPaginatedDeviceModels
public async Task LinkDeviceLayerDialog_Search_RendersCorrectlyAsync() | ||
{ | ||
// Arrange | ||
var searchedDevices = Fixture.CreateMany<TableData<DeviceListItem>>(3).ToList(); |
Check warning
Code scanning / CodeQL
Useless assignment to local variable Warning
searchedDevices
public async Task LinkDeviceLayerDialog_Search_ShouldDisplayDevicesAsync() | ||
{ | ||
// Arrange | ||
var searchedDevices = Fixture.CreateMany<TableData<DeviceListItem>>(3).ToList(); |
Check warning
Code scanning / CodeQL
Useless assignment to local variable Warning
searchedDevices
public async Task LinkDeviceLayerDialog_Save_UpdatesDevices() | ||
{ | ||
// Arrange | ||
var searchedDevices = Fixture.CreateMany<TableData<DeviceListItem>>(3).ToList(); |
Check warning
Code scanning / CodeQL
Useless assignment to local variable Warning
searchedDevices
src/IoTHub.Portal.Infrastructure/Jobs/SendPlanningCommandJob.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Kevin BEAUGRAND <[email protected]>
@judramos I'll close this PR to move it to another branch for vnext, don't worry. |
Description
What's new?
What kind of change does this PR introduce?