-
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
Feature/1030 sync devices between iot hub and portal #1279
Feature/1030 sync devices between iot hub and portal #1279
Conversation
Codecov ReportBase: 88.29% // Head: 88.51% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1279 +/- ##
==========================================
+ Coverage 88.29% 88.51% +0.21%
==========================================
Files 226 232 +6
Lines 6828 7024 +196
==========================================
+ Hits 6029 6217 +188
- Misses 799 807 +8
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
0fc82c2
to
ee1cc5d
Compare
.ReturnsAsync(expectedDeviceModel); | ||
|
||
_ = this.mockDeviceRepository.Setup(repository => repository.GetByIdAsync(expectedTwinDevice.DeviceId)) | ||
.ReturnsAsync((Device)null); |
Check warning
Code scanning / CodeQL
Useless upcast
.ReturnsAsync(expectedDeviceModel); | ||
|
||
_ = this.mockLorawanDeviceRepository.Setup(repository => repository.GetByIdAsync(expectedTwinDevice.DeviceId)) | ||
.ReturnsAsync((LorawanDevice)null); |
Check warning
Code scanning / CodeQL
Useless upcast
catch (Exception e) | ||
{ | ||
this.logger.LogError(e, "Sync devices job has failed"); | ||
} |
Check notice
Code scanning / CodeQL
Generic catch clause
eabb6d5
to
0d21d7e
Compare
src/AzureIoTHub.Portal.Infrastructure/DevelopmentConfigHandler.cs
Outdated
Show resolved
Hide resolved
src/AzureIoTHub.Portal.Infrastructure/ProductionConfigHandler.cs
Outdated
Show resolved
Hide resolved
src/AzureIoTHub.Portal.Tests.Unit/Infrastructure/DevelopmentConfigHandlerTests.cs
Outdated
Show resolved
Hide resolved
src/AzureIoTHub.Portal.Tests.Unit/Infrastructure/ProductionConfigHandlerTests.cs
Outdated
Show resolved
Hide resolved
0d21d7e
to
1b333f4
Compare
Description
What's new?
Remark: @Sben65, this PR replaces #1276 due an issue on the branch name that prevent git to see it.
What kind of change does this PR introduce?